mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +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:
12
libraries/ESP8266mDNS/src/LEAmDNS_Transfer.cpp
Executable file → Normal file
12
libraries/ESP8266mDNS/src/LEAmDNS_Transfer.cpp
Executable file → Normal file
@ -30,10 +30,12 @@ extern "C" {
|
||||
#include "LEAmDNS_Priv.h"
|
||||
|
||||
|
||||
namespace esp8266 {
|
||||
|
||||
/*
|
||||
* namespace LEAmDNS
|
||||
* LEAmDNS
|
||||
*/
|
||||
namespace LEAmDNS {
|
||||
namespace MDNSImplementation {
|
||||
|
||||
/**
|
||||
* CONST STRINGS
|
||||
@ -154,7 +156,7 @@ bool MDNSResponder::_prepareMDNSMessage(MDNSResponder::stcMDNSSendParameter& p_r
|
||||
bool bResult = true;
|
||||
|
||||
// Prepare header; count answers
|
||||
_stcMDNS_MsgHeader msgHeader(0, p_rSendParameter.m_bResponse, 0, p_rSendParameter.m_bAuthorative);
|
||||
stcMDNS_MsgHeader msgHeader(0, p_rSendParameter.m_bResponse, 0, p_rSendParameter.m_bAuthorative);
|
||||
// If this is a response, the answers are anwers,
|
||||
// else this is a query or probe and the answers go into auth section
|
||||
uint16_t& ru16Answers = (p_rSendParameter.m_bResponse
|
||||
@ -1627,7 +1629,9 @@ bool MDNSResponder::_writeMDNSAnswer_SRV(MDNSResponder::stcMDNSService& p_rServi
|
||||
return bResult;
|
||||
}
|
||||
|
||||
} // namespace LEAmDNS
|
||||
} // namespace MDNSImplementation
|
||||
|
||||
} // namespace esp8266
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user