1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-14 13:41:23 +03:00

formalization of LEA's mdns rewrite (#5450)

* formalization of LEA's mdns rewrite (code), minor changes to polledTimeout

* fix typo

* Fix mdns examples
This commit is contained in:
Develo
2018-12-08 19:36:20 -03:00
committed by GitHub
parent e4c6030e48
commit 4d15590096
15 changed files with 593 additions and 565 deletions

32
libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp Executable file → Normal file
View File

@ -27,14 +27,8 @@
#include "LEAmDNS_lwIPdefs.h"
#include "LEAmDNS_Priv.h"
/*
* namespace LEAmDNS
*/
namespace LEAmDNS {
/**
* HELPERS
*/
namespace {
/*
* strrstr (static)
@ -43,7 +37,7 @@ namespace LEAmDNS {
* Based on: https://stackoverflow.com/a/1634398/2778898
*
*/
static const char* strrstr(const char*__restrict p_pcString, const char*__restrict p_pcPattern) {
const char* strrstr(const char*__restrict p_pcString, const char*__restrict p_pcPattern) {
const char* pcResult = 0;
@ -65,6 +59,24 @@ static const char* strrstr(const char*__restrict p_pcString, const char*__restri
return pcResult;
}
} // anonymous
namespace esp8266 {
/*
* LEAmDNS
*/
namespace MDNSImplementation {
/**
* HELPERS
*/
/*
* MDNSResponder::indexDomain (static)
*
@ -722,7 +734,9 @@ bool MDNSResponder::_releaseTempServiceTxts(MDNSResponder::stcMDNSService& p_rSe
}
#endif
} // namespace LEAmDNS
} // namespace MDNSImplementation
} // namespace esp8266