tfMdnsStart
Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)
| #include <trsocket.h> |
| int tfMdnsStart | ( |
| ttMdnsServerPtr TM_FAR * mdRefPtr, | |
| const ttMdnsConfig TM_FAR * scfg, | |
| ttMdnsUserFunc user | |
| ); |
Function Description
Use this function to prepare your Multicast DNS (mDNS) server. A hostname that is unique on the link is a requirement. If you have one or more daemon services, you can configure the server to advertise those to the mDNS community.
Use the descriptor handle returned by this function when calling other mDNS API functions.
The first call to tfMdnsExecute() will start the mDNS server. Use tfMdnsStop() to stop the mDNS server.
Parameters
- mdRefPtr
- A pointer to a ttMdnsServerPtr variable to receive the new descriptor handle.
- scfg
- A pointer to the ttMdnsConfig configuration information.
- user
- A pointer to a callback function.
Returns
- TM_ENOERROR
- The mDNS server is ready but not yet started; you must call tfMdnsExecute() to start the server and, periodically, to service I/O and timing events.
- TM_EINVAL
- A parameter was NULL or the configuration was invalid.
- TM_ENOBUFS
- A memory allocation failed.
Table of Contents >> Application Reference >> Multicast_DNS_(mDNS)