 |
Kea
1.5.0
|
Go to the documentation of this file.
146 const uint16_t ns_port,
148 const unsigned int wait,
158 #endif // DNS_CLIENT_H
@ IO_STOPPED
IO was stopped.
virtual ~Callback()
Virtual destructor.
The DNSClient class handles communication with the DNS server.
static unsigned int getMaxTimeout()
Returns maximal allowed timeout value accepted by DNSClient::doUpdate.
The IOAddress class represents an IP addresses (version agnostic)
DNSClient(D2UpdateMessagePtr &response_placeholder, Callback *callback, const Protocol proto=UDP)
Constructor.
boost::shared_ptr< TSIGKey > TSIGKeyPtr
The IOService class is a wrapper for the ASIO io_service class.
virtual void operator()(DNSClient::Status status)=0
Function operator implementing a callback.
Status
A status code of the DNSClient.
~DNSClient()
Virtual destructor, does nothing.
Protocol
Transport layer protocol used by a DNS Client to communicate with a server.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void doUpdate(asiolink::IOService &io_service, const asiolink::IOAddress &ns_addr, const uint16_t ns_port, D2UpdateMessage &update, const unsigned int wait, const dns::TSIGKeyPtr &tsig_key=dns::TSIGKeyPtr())
Start asynchronous DNS Update with TSIG.
@ OTHER
Other, unclassified error.
@ INVALID_RESPONSE
Response received but invalid.
@ SUCCESS
Response received and is ok.
Callback for the DNSClient class.
@ TIMEOUT
No response, timeout.
The D2UpdateMessage encapsulates a DNS Update message.
boost::shared_ptr< DNSClient > DNSClientPtr
boost::shared_ptr< D2UpdateMessage > D2UpdateMessagePtr
Pointer to the DNS Update Message.