Asynchronous Searching (Windows CE 5.0)
The IUPnPDeviceFinder interface enables both synchronous and asynchronous searches. Asynchronous searches return control to the calling application immediately. The application is notified about each individual device as it is found, using a callback interface registered by the application.
Asynchronous searches are best used for graphical user interfaces and applications that perform continuous monitoring.
Because an asynchronous search runs in the background until you cancel it, it will find devices that are on the network at the time of the search and any devices that appear at a later time.
To perform an asynchronous search:
- Create an IUPnPDeviceFinder instance, as explained in Device Finder Creation.
- Create an asynchronous search operation using IUPnPDeviceFinder::CreateAsyncFind.
- Start the asynchronous search operation using IUPnPDeviceFinder::StartAsyncFind.
- Receive callback notifications and take the appropriate processing steps.
- When the search is no longer needed, cancel the search and release the associated objects.
See Also
Device Location | Synchronous Searching
Send Feedback on this topic to the authors