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:
32
libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp
Executable file → Normal file
32
libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp
Executable file → Normal 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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user