![]() |
Kea
1.9.9-git
|
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::Callback * | callback_ |
| util::OutputBufferPtr | in_buf_ |
| DNSClient::Protocol | proto_ |
| D2UpdateMessagePtr & | response_ |
| dns::TSIGContextPtr | tsig_context_ |
Definition at line 36 of file dns_client.cc.
| isc::d2::DNSClientImpl::DNSClientImpl | ( | D2UpdateMessagePtr & | response_placeholder, |
| DNSClient::Callback * | callback, | ||
| const DNSClient::Protocol | proto | ||
| ) |
Definition at line 83 of file dns_client.cc.
References isc_throw, proto_, response_, isc::d2::DNSClient::TCP, and isc::d2::DNSClient::UDP.
|
virtual |
Definition at line 120 of file dns_client.cc.
| 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 | ||
| ) |
Definition at line 178 of file dns_client.cc.
References isc::d2::DNSClient::getMaxTimeout(), in_buf_, isc_throw, isc::asiolink::IOService::post(), isc::dns::AbstractMessageRenderer::setBuffer(), isc::d2::D2UpdateMessage::toWire(), tsig_context_, and isc::asiodns::IOFetch::UDP.
Referenced by isc::d2::DNSClient::doUpdate().
Here is the call graph for this function:| DNSClient::Status isc::d2::DNSClientImpl::getStatus | ( | const asiodns::IOFetch::Result | result | ) |
Definition at line 161 of file dns_client.cc.
References isc::d2::DNSClient::IO_STOPPED, isc::d2::DNSClient::OTHER, isc::asiodns::IOFetch::STOPPED, isc::d2::DNSClient::SUCCESS, isc::asiodns::IOFetch::SUCCESS, isc::asiodns::IOFetch::TIME_OUT, and isc::d2::DNSClient::TIMEOUT.
Referenced by operator()().
|
virtual |
Callback method.
This is the method called when the fetch completes.
| result | Result 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:| 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()().