mdns.c File Reference
Detailed Description
Multicast Domain Name System (MDNS) implementation file for the
Netzer application.
- Software License
- See the MBCSL for details.
- Author:
- Sven Schlender (kontakt at mobacon dot de)
- Date:
- 2008-09-26
|
Functions |
| static void | _CheckForQueryResponse (WORD_VAL u16Type, WORD_VAL *pu16Length, BYTE u8Startlabel) |
| BOOL | bInitMDNSResponder (WORD HTTPPort) |
| | Note: Important: First call this function after got the IP address and checked the validness.
|
| 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.
|
| MDNS_STATE | eGetMDNSState (void) |
| | The function retrieves the state of the MDNS responder.
|
| void | MDNSResponder () |
| | 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.
|
| BOOL | bMDNSNameIsResolved (IP_ADDR *pIP) |
| | After calling MDNSResolveName the application should check periodically the resolvation progress with a call of this function.
|
| 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.
|
| void | MDNSStopResolving (void) |
| | A pending resolvation process will be stopped.
|
| void | MDNSResolveName (char *pName) |
| | The function resolves a hostname record via MDNS to an IP address.
|
| void | MDNSResolveService (char *pName, ROM char *pServiceName) |
| | The function resolves a service record via MDNS.
|
Function Documentation
| static void _CheckForQueryResponse |
( |
WORD_VAL |
u16Type, |
|
|
WORD_VAL * |
pu16Length, |
|
|
BYTE |
u8Startlabel | |
|
) |
| | [static] |
- Todo:
- Message compression.