tfMdnsStop
Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)
| #include <trsocket.h> |
| int tfMdnsStop | (ttMdnsServerPtr mdPtr); |
Function Description
Use this function to signal your mDNS server to shutdown. A flag will be set that will be serviced in a subsequent call to tfMdnsExecute(). This function may be called asynchronously to other API functions as long as there is no chance of the descriptor being deleted while the function is executing, e.g. by a concurrent tfMdnsStop() and tfMdnsExecute() sequence.
Parameters
- mdPtr
- The mDNS server handle returned by a previous tfMdnsStart() call.
Returns
- TM_ENOERROR
- The mDNS server is scheduled for shutdown and deletion; you must continue to call tfMdnsExecute() until it returns TM_ESHUTDOWN.
- TM_EINVAL
- The mDNS server handle is invalid (no such entry in the global list of mDNS servers).
Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)