Go to the documentation of this file.
31 #ifndef _MDNS_CLIENT_H
32 #define _MDNS_CLIENT_H
42 #ifndef MDNS_CLIENT_SUPPORT
43 #define MDNS_CLIENT_SUPPORT DISABLED
44 #elif (MDNS_CLIENT_SUPPORT != ENABLED && MDNS_CLIENT_SUPPORT != DISABLED)
45 #error MDNS_CLIENT_SUPPORT parameter is not valid
49 #ifndef MDNS_CLIENT_MAX_RETRIES
50 #define MDNS_CLIENT_MAX_RETRIES 3
51 #elif (MDNS_CLIENT_MAX_RETRIES < 1)
52 #error MDNS_CLIENT_MAX_RETRIES parameter is not valid
56 #ifndef MDNS_CLIENT_INIT_TIMEOUT
57 #define MDNS_CLIENT_INIT_TIMEOUT 1000
58 #elif (MDNS_CLIENT_INIT_TIMEOUT < 1000)
59 #error MDNS_CLIENT_INIT_TIMEOUT parameter is not valid
63 #ifndef MDNS_CLIENT_MAX_TIMEOUT
64 #define MDNS_CLIENT_MAX_TIMEOUT 1000
65 #elif (MDNS_CLIENT_MAX_TIMEOUT < 1000)
66 #error MDNS_CLIENT_MAX_TIMEOUT parameter is not valid
70 #ifndef MDNS_MAX_LIFETIME
71 #define MDNS_MAX_LIFETIME 60000
72 #elif (MDNS_MAX_LIFETIME < 1000)
73 #error MDNS_MAX_LIFETIME parameter is not valid
77 #ifndef MDNS_ADDITIONAL_RECORDS_SUPPORT
78 #define MDNS_ADDITIONAL_RECORDS_SUPPORT ENABLED
79 #elif (MDNS_ADDITIONAL_RECORDS_SUPPORT != ENABLED && MDNS_ADDITIONAL_RECORDS_SUPPORT != DISABLED)
80 #error MDNS_ADDITIONAL_RECORDS_SUPPORT parameter is not valid
error_t mdnsClientSendQuery(DnsCacheEntry *entry)
Send a mDNS query message.
void mdnsClientParseAnRecord(NetInterface *interface, const MdnsMessage *message, size_t offset, const DnsResourceRecord *record)
Parse a resource record from the Answer Section.
UDP (User Datagram Protocol)
error_t mdnsClientResolve(NetInterface *interface, const char_t *name, HostType type, IpAddr *ipAddr)
Resolve a host name using mDNS.