|
RF24Ethernet - TCP/IP over RF24Network v2.0.1
TMRh20 - Pushing the practical limits of RF24 modules
|
#include <Dns.h>
Public Member Functions | |
| void | begin (const IPAddress &aDNSServer) |
| int | inet_aton (const char *aIPAddrString, IPAddress &aResult) |
| int | getHostByName (const char *aHostname, IPAddress &aResult) |
Protected Member Functions | |
| uint16_t | BuildRequest (const char *aName) |
| uint16_t | ProcessResponse (uint16_t aTimeout, IPAddress &aAddress) |
Protected Attributes | |
| IPAddress | iDNSServer |
| uint16_t | iRequestId |
| RF24UDP | iUdp |
| void DNSClient::begin | ( | const IPAddress & | aDNSServer | ) |
Definition at line 45 of file Dns.cpp.
References iDNSServer, and iRequestId.
Referenced by RF24UDP::beginPacket(), and RF24Client::connect().
| int DNSClient::inet_aton | ( | const char * | aIPAddrString, |
| IPAddress & | aResult ) |
Convert a numeric IP address string into a four-byte IP address.
| aIPAddrString | IP address to convert |
| aResult | IPAddress structure to store the returned IP address |
Definition at line 51 of file Dns.cpp.
Referenced by getHostByName().
| int DNSClient::getHostByName | ( | const char * | aHostname, |
| IPAddress & | aResult ) |
Resolve the given hostname to an IP address.
| aHostname | Name to be resolved |
| aResult | IPAddress structure to store the returned IP address |
Definition at line 110 of file Dns.cpp.
References BuildRequest(), DNS_PORT, iDNSServer, IF_RF24ETHERNET_DEBUG_DNS, inet_aton(), INVALID_SERVER, iUdp, ProcessResponse(), and TIMED_OUT.
Referenced by RF24UDP::beginPacket(), and RF24Client::connect().
|
protected |
Definition at line 168 of file Dns.cpp.
References CLASS_IN, iRequestId, iUdp, OPCODE_STANDARD_QUERY, QUERY_FLAG, RECURSION_DESIRED_FLAG, and TYPE_A.
Referenced by getHostByName().
|
protected |
Definition at line 247 of file Dns.cpp.
References CLASS_IN, DNS_HEADER_SIZE, DNS_PORT, HTONS, iDNSServer, IF_RF24ETHERNET_DEBUG_DNS, INVALID_RESPONSE, INVALID_SERVER, iRequestId, iUdp, LABEL_COMPRESSION_MASK, QUERY_RESPONSE_MASK, RESP_MASK, RESPONSE_FLAG, SUCCESS, TIMED_OUT, TRUNCATED, TRUNCATION_FLAG, TTL_SIZE, and TYPE_A.
Referenced by getHostByName().
|
protected |
Definition at line 39 of file Dns.h.
Referenced by begin(), getHostByName(), and ProcessResponse().
|
protected |
Definition at line 40 of file Dns.h.
Referenced by begin(), BuildRequest(), and ProcessResponse().
|
protected |
Definition at line 41 of file Dns.h.
Referenced by BuildRequest(), getHostByName(), and ProcessResponse().