#include <DnsServer.h>

Inheritance diagram for DnsServer:
[legend]
Collaboration diagram for DnsServer:
[legend]

Public Member Functions

 DnsServer ()
 
void setErrorReplyCode (DnsReplyCode replyCode)
 
void setTTL (uint32_t ttl)
 
bool start (uint16_t port, const String &domainName, const IpAddress &resolvedIP)
 
void stop ()
 
- Public Member Functions inherited from UdpConnection
 UdpConnection ()
 
 UdpConnection (UdpConnectionDataDelegate dataHandler)
 
virtual ~UdpConnection ()
 
virtual bool listen (int port)
 
virtual bool connect (IpAddress ip, uint16_t port)
 
virtual void close ()
 
virtual bool send (const char *data, int length)
 
bool sendString (const char *data)
 
bool sendString (const String &data)
 
virtual bool sendTo (IpAddress remoteIP, uint16_t remotePort, const char *data, int length)
 
bool sendStringTo (IpAddress remoteIP, uint16_t remotePort, const char *data)
 
bool sendStringTo (IpAddress remoteIP, uint16_t remotePort, const String &data)
 
bool setMulticast (IpAddress ip)
 Sets the UDP multicast IP. More...
 
bool setMulticastTtl (size_t ttl)
 Sets the UDP multicast Time-To-Live(TTL). More...
 
- Public Member Functions inherited from IpConnection
bool joinMulticastGroup (IpAddress localIp, IpAddress multicastIp)
 Uses IGMP to add a local network interface to multicast group. More...
 
bool joinMulticastGroup (IpAddress multicastIp)
 Uses IGMP to add all local network interfaces to multicast group. More...
 
bool leaveMulticastGroup (IpAddress localIp, IpAddress multicastIp)
 Uses IGMP to remove a local network interface from multicast group. More...
 
bool leaveMulticastGroup (IpAddress multicastIp)
 Uses IGMP to remove all local network interfaces from multicast group. More...
 

Protected Member Functions

void onReceive (pbuf *buf, IpAddress remoteIP, uint16_t remotePort) override
 
- Protected Member Functions inherited from UdpConnection
bool initialize (udp_pcb *pcb=nullptr)
 

Additional Inherited Members

- Static Protected Member Functions inherited from UdpConnection
static void staticOnReceive (void *arg, struct udp_pcb *pcb, struct pbuf *p, LWIP_IP_ADDR_T *addr, u16_t port)
 
- Protected Attributes inherited from UdpConnection
udp_pcb * udp = nullptr
 
UdpConnectionDataDelegate onDataCallback = nullptr
 

Constructor & Destructor Documentation

◆ DnsServer()

DnsServer::DnsServer ( )
inline

Member Function Documentation

◆ onReceive()

void DnsServer::onReceive ( pbuf *  buf,
IpAddress  remoteIP,
uint16_t  remotePort 
)
overrideprotectedvirtual

Reimplemented from UdpConnection.

◆ setErrorReplyCode()

void DnsServer::setErrorReplyCode ( DnsReplyCode  replyCode)
inline

◆ setTTL()

void DnsServer::setTTL ( uint32_t  ttl)
inline

◆ start()

bool DnsServer::start ( uint16_t  port,
const String domainName,
const IpAddress resolvedIP 
)

◆ stop()

void DnsServer::stop ( )

The documentation for this class was generated from the following file: