EXPORT_SPEC int UpnpSubscribeAsync

( IN UpnpClient_Handle Hnd,
  IN const char* PublisherUrl,
  IN int TimeOut,
  IN Upnp_FunPtr Fun,
  IN const void* Cookie )

UpnpSubscribeAsync performs the same operation as UpnpSubscribe, but returns immediately and calls the registered callback function when the operation is complete.

Documentation

UpnpSubscribeAsync performs the same operation as UpnpSubscribe, but returns immediately and calls the registered callback function when the operation is complete.

Note that many of the error codes for this function are returned in the Upnp_Event_Subscribe structure. In those cases, the function returns UPNP_E_SUCCESS and the appropriate error code will be in the Upnp_Event_Subscribe.ErrCode field in the Event structure passed to the callback.

Parameters:
Hnd - The handle of the control point that is subscribing.
- PublisherUrl The URL of the service to subscribe to.
- TimeOut The requested subscription time. Upon return, it contains the actual subscription time returned from the service.
Fun - Pointer to the callback function for this subscribe request.
Cookie - A user data value passed to the callback function when invoked.
Returns:
[int] An integer representing one of the following:

Alphabetic index



This page was generated with the help of DOC++.