MCPcopy Create free account
hub / github.com/SmingHub/Sming / start

Method start

Sming/Components/Network/src/Network/DnsServer.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65} // namespace
66
67bool DnsServer::start(uint16_t port, const String& domainName, const IpAddress& resolvedIP)
68{
69 this->port = port;
70 this->domainName = domainName;
71 this->resolvedIP = resolvedIP;
72 downcaseAndRemoveWwwPrefix(this->domainName);
73 return listen(this->port) == 1;
74}
75
76void DnsServer::onReceive(pbuf* buf, IpAddress remoteIP, uint16_t remotePort)
77{

Callers 4

sendMethod · 0.45
onTcpReceiveMethod · 0.45
onReadyToSendDataMethod · 0.45
__init__Method · 0.45

Calls 1

Tested by

no test coverage detected