Kea  1.9.9-git
isc::d2::DNSClientImpl Class Reference
+ Inheritance diagram for isc::d2::DNSClientImpl:

Public Member Functions

 DNSClientImpl (D2UpdateMessagePtr &response_placeholder, DNSClient::Callback *callback, const DNSClient::Protocol proto)
 
virtual ~DNSClientImpl ()
 
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)
 
DNSClient::Status getStatus (const asiodns::IOFetch::Result)
 
virtual void operator() (asiodns::IOFetch::Result result)
 Callback method. More...
 
- Public Member Functions inherited from isc::asiodns::IOFetch::Callback
 Callback ()
 Default Constructor. More...
 
virtual ~Callback ()
 Virtual Destructor. More...
 

Public Attributes

DNSClient::Callbackcallback_
 
util::OutputBufferPtr in_buf_
 
DNSClient::Protocol proto_
 
D2UpdateMessagePtrresponse_
 
dns::TSIGContextPtr tsig_context_
 

Detailed Description

Definition at line 36 of file dns_client.cc.

Constructor & Destructor Documentation

isc::d2::DNSClientImpl::DNSClientImpl ( D2UpdateMessagePtr response_placeholder,
DNSClient::Callback callback,
const DNSClient::Protocol  proto 
)
isc::d2::DNSClientImpl::~DNSClientImpl ( )
virtual

Definition at line 120 of file dns_client.cc.

Member Function Documentation

void isc::d2::DNSClientImpl::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 
)
void isc::d2::DNSClientImpl::operator() ( asiodns::IOFetch::Result  result)
virtual

Callback method.

This is the method called when the fetch completes.

Parameters
resultResult of the fetch

Implements isc::asiodns::IOFetch::Callback.

Definition at line 124 of file dns_client.cc.

References callback_, isc::d2::d2_to_dns_logger, isc::log::DBGLVL_TRACE_DETAIL, isc::d2::DHCP_DDNS_INVALID_RESPONSE, getStatus(), in_buf_, isc::d2::D2UpdateMessage::INBOUND, isc::d2::DNSClient::INVALID_RESPONSE, LOG_DEBUG, response_, isc::d2::DNSClient::SUCCESS, tsig_context_, and isc::Exception::what().

+ Here is the call graph for this function:

Member Data Documentation

DNSClient::Callback* isc::d2::DNSClientImpl::callback_

Definition at line 53 of file dns_client.cc.

Referenced by operator()().

util::OutputBufferPtr isc::d2::DNSClientImpl::in_buf_

Definition at line 39 of file dns_client.cc.

Referenced by doUpdate(), and operator()().

DNSClient::Protocol isc::d2::DNSClientImpl::proto_

Definition at line 55 of file dns_client.cc.

Referenced by DNSClientImpl().

D2UpdateMessagePtr& isc::d2::DNSClientImpl::response_

Definition at line 50 of file dns_client.cc.

Referenced by DNSClientImpl(), and operator()().

dns::TSIGContextPtr isc::d2::DNSClientImpl::tsig_context_

Definition at line 57 of file dns_client.cc.

Referenced by doUpdate(), and operator()().


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