mdns.c File Reference


Detailed Description

Multicast Domain Name System (MDNS) implementation file for the eWicht application.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2008-09-26

Definition in file mdns.c.

Go to the source code of this file.

Functions

void _CheckForQueryResponse (WORD_VAL u16Type, WORD_VAL *pu16Length, BYTE u8Startlabel)
BOOL bInitMDNSResponder (void)
 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 resolving 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

void _CheckForQueryResponse ( WORD_VAL  u16Type,
WORD_VAL *  pu16Length,
BYTE  u8Startlabel 
)

Todo:
Message compression.

Definition at line 1043 of file mdns.c.


Generated on Sun Nov 27 20:02:39 2011 for eWicht by  doxygen 1.5.5