Defines | |
#define | MDNS_PORT 5353u |
The MDNS UDP port. | |
#define | DNS_PORT 53u |
The DNS UDP port. | |
#define | DNS_TYPE_A (0x0001u) |
DNS type for hostnames. | |
#define | DNS_TYPE_PTR (0x000cu) |
DNS type for pointer records. | |
#define | DNS_TYPE_MX (0x000fu) |
DNS type for mailbox records. | |
#define | DNS_TYPE_SRV (0x0021u) |
DNS type for service records. | |
#define | DNS_TYPE_TXT (0x0010u) |
DNS type for text records. | |
#define | DNS_TYPE_ANY (0x00FFu) |
DNS type for all records. | |
Enumerations | |
enum | _MDNS_STATE { MDNS_HAS_STOPPED = 0, MDNS_IS_STARTING_UP, MDNS_IS_RUNNING } |
Possible states of the MDNS responder service. More... | |
Functions | |
BOOL | bInitMDNSResponder (WORD HTTPPort) |
The function initializes the MDNS service. | |
void | StartMDNSResponder (void) |
The service is started by a call of this function. | |
void | StopMDNSResponder (void) |
The service is stopped by a call of this function. | |
void | MDNSResponder (void) |
The function implements the state machine of the MDNS responder. | |
void | MDNSProcessFrame (NODE_INFO *remoteNode, IP_ADDR *localIP) |
In the MDNS module the state machine and the receiption of frames are divorced. | |
MDNS_STATE | eGetMDNSState (void) |
The function retrieves the state of the MDNS responder. | |
void | MDNSResolveService (char *pName, ROM char *pServiceName) |
The function resolves a service record via MDNS. | |
void | MDNSResolveName (char *pName) |
The function resolves a hostname record via MDNS to an IP address. | |
void | MDNSStopResolving (void) |
A pending resolvation process will be stopped. | |
BOOL | bMDNSServiceIsResolved (IP_ADDR *pIP, WORD_VAL *pu16Port) |
After calling MDNSResolveService the application should check periodically the resolvation progress with a call of this function. | |
BOOL | bMDNSNameIsResolved (IP_ADDR *pIP) |
After calling MDNSResolveName the application should check periodically the resolvation progress with a call of this function. |