ESP8266
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MDNSResponder Class Reference

Public Member Functions

 MDNSResponder ()
 
 ~MDNSResponder ()
 
bool begin (const char *hostName)
 
bool begin (const char *hostName, IPAddress ip, uint32_t ttl=120)
 
void update ()
 
void addService (char *service, char *proto, uint16_t port)
 
void addService (const char *service, const char *proto, uint16_t port)
 
void addService (String service, String proto, uint16_t port)
 
bool addServiceTxt (char *name, char *proto, char *key, char *value)
 
void addServiceTxt (const char *name, const char *proto, const char *key, const char *value)
 
void addServiceTxt (String name, String proto, String key, String value)
 
void enableArduino (uint16_t port, bool auth=false)
 
void setInstanceName (String name)
 
void setInstanceName (const char *name)
 
void setInstanceName (char *name)
 

Private Member Functions

uint32_t _getOurIp ()
 
uint16_t _getServicePort (char *service, char *proto)
 
MDNSTxt_getServiceTxt (char *name, char *proto)
 
uint16_t _getServiceTxtLen (char *name, char *proto)
 
void _parsePacket ()
 
void _reply (uint8_t replyMask, char *service, char *proto, uint16_t port)
 

Private Attributes

struct MDNSService_services
 
UdpContext_conn
 
String _hostName
 
String _instanceName
 

Constructor & Destructor Documentation

MDNSResponder::MDNSResponder ( )
MDNSResponder::~MDNSResponder ( )

Member Function Documentation

uint32_t MDNSResponder::_getOurIp ( )
private
uint16_t MDNSResponder::_getServicePort ( char *  service,
char *  proto 
)
private
MDNSTxt * MDNSResponder::_getServiceTxt ( char *  name,
char *  proto 
)
private
uint16_t MDNSResponder::_getServiceTxtLen ( char *  name,
char *  proto 
)
private
void MDNSResponder::_parsePacket ( )
private
void MDNSResponder::_reply ( uint8_t  replyMask,
char *  service,
char *  proto,
uint16_t  port 
)
private
void MDNSResponder::addService ( char *  service,
char *  proto,
uint16_t  port 
)
void MDNSResponder::addService ( const char *  service,
const char *  proto,
uint16_t  port 
)
void MDNSResponder::addService ( String  service,
String  proto,
uint16_t  port 
)
bool MDNSResponder::addServiceTxt ( char *  name,
char *  proto,
char *  key,
char *  value 
)
void MDNSResponder::addServiceTxt ( const char *  name,
const char *  proto,
const char *  key,
const char *  value 
)
void MDNSResponder::addServiceTxt ( String  name,
String  proto,
String  key,
String  value 
)
bool MDNSResponder::begin ( const char *  hostName)
bool MDNSResponder::begin ( const char *  hostName,
IPAddress  ip,
uint32_t  ttl = 120 
)
void MDNSResponder::enableArduino ( uint16_t  port,
bool  auth = false 
)
void MDNSResponder::setInstanceName ( String  name)
void MDNSResponder::setInstanceName ( const char *  name)
void MDNSResponder::setInstanceName ( char *  name)
void MDNSResponder::update ( )

Member Data Documentation

UdpContext* MDNSResponder::_conn
private
String MDNSResponder::_hostName
private
String MDNSResponder::_instanceName
private
struct MDNSService* MDNSResponder::_services
private