Asynchronous Searching
The Device Finder object enables both synchronous and asynchronous searches. Asynchronous searches return control to the calling application immediately. Then, the application is notified about each individual device as it is found, using a callback interface that the application has registered.
Asynchronous searching is best used for graphical user interfaces, and applications that perform continuous monitoring.
The following lists outlines the general structure of an asynchronous search:
Create UpnPDeviceFinder.
Create async find using CreateAsyncFind.
Start async find using 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.
**Note **Asynchronous searches will find devices that are on the network at the time of the search as well as any devices that appear at a later time.
See Also
IUPnPDeviceFinder:IDispatch | Device Location
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.