ESP8266
|
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 |
MDNSResponder::MDNSResponder | ( | ) |
MDNSResponder::~MDNSResponder | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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 | ( | ) |
|
private |
|
private |
|
private |
|
private |