Download Manual

Transcript
UPnP Device SDK Manual
2.7 UPnP_StopDaemon
FUNCTION
Kill the UPnP Daemon thread.
SUMMARY
int UPnP_StopDaemon ( UPnPRuntime* rt, UPNP_INT32 secTimeout )
UPnPRuntime* rt
Device runtime to stop
UPNP_INT32 secTimeout
Time in seconds time to wait for daemon to stop.
DESCRIPTION
This function stops the UPnP daemon from executing. It will wait for at most secTimeout seconds for all
helper threads to terminate. If this function returns negative error code, it means the timeout expired without
the successful termination of one or more helper threads. In this case, calling UPnP_RuntimeDestroy may
cause a fault since there are still helper threads running that may try to access the data structures pointed to
by the UPnPRuntime.
RETURNS
0
Operation was a success
-1
Operation failed
47