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:

  1. Create UpnPDeviceFinder.

  2. Create async find using CreateAsyncFind.

  3. Start async find using StartAsyncFind.

  4. Receive callback notifications and take the appropriate processing steps.

  5. 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.