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