Device Discovery
Device discovery enables clients to discover other OBEX devices that are in range, regardless of their protocol. To obtain a list of available devices, clients call the IObex::EnumDevices method.
Another and probably preferred method for device discovery is using the IConnectionPointContainer interface and the IObexSink interface. To make device discovery notifications go to IObexSink, you should do the following:
- IObex->QueryInterface for an IConnectionPointContainer (pCPContainer)
- pCPContainer->FindConnectionPoint(&pCP)
- pCP->Advise(pSink) where pSink is an IObexSink
- pObex->StartDeviceEnum
See Also
Device Discovery | Object Exchange Interfaces | Connection Points | Use of Streams | Object Exchange Protocol | IObex::EnumDevices | Client Support
Last updated on Friday, April 09, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.