| 150 * |
150 * |
| 151 * @param fd The file descriptor of a pre-established socket to |
151 * @param fd The file descriptor of a pre-established socket to |
| 152 * be used for sending the outgoing mDNS datagram. |
152 * be used for sending the outgoing mDNS datagram. |
| 153 * @param domain This is the domain name you wish to query. It should |
153 * @param domain This is the domain name you wish to query. It should |
| 154 * be of the format "_presence._tcp.local" for example. |
154 * be of the format "_presence._tcp.local" for example. |
| 155 * @return 0 if sucessful. |
155 * @return 0 if successful. |
| 156 */ |
156 */ |
| 157 int mdns_query(int fd, const char *domain, unsigned short type); |
157 int mdns_query(int fd, const char *domain, unsigned short type); |
| 158 |
158 |
| 159 int mdns_advertise_null(int fd, const char *name, const char *data, unsigned short rdlength); |
159 int mdns_advertise_null(int fd, const char *name, const char *data, unsigned short rdlength); |
| 160 int mdns_advertise_ptr(int fd, const char *name, const char *domain); |
160 int mdns_advertise_ptr(int fd, const char *name, const char *domain); |