NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::dns::Resolver Class Reference
Inheritance diagram for ndn::dns::Resolver:
Collaboration diagram for ndn::dns::Resolver:

Public Member Functions

 Resolver (const SuccessCallback &onSuccess, const ErrorCallback &onError, const ndn::dns::AddressSelector &addressSelector, boost::asio::io_service &ioService)
 
void asyncResolve (const std::string &host, const time::nanoseconds &timeout, const shared_ptr< Resolver > &self)
 
BoostResolver::iterator syncResolve (BoostResolver::query query)
 
void onResolveSuccess (const boost::system::error_code &error, BoostResolver::iterator remoteEndpoint, const shared_ptr< Resolver > &self)
 
void onResolveError (const std::string &errorInfo, const shared_ptr< Resolver > &self)
 

Static Public Attributes

static const std::string NULL_PORT = ""
 

Detailed Description

Definition at line 32 of file dns.cpp.

Constructor & Destructor Documentation

ndn::dns::Resolver::Resolver ( const SuccessCallback onSuccess,
const ErrorCallback onError,
const ndn::dns::AddressSelector addressSelector,
boost::asio::io_service &  ioService 
)
inline

Definition at line 35 of file dns.cpp.

Member Function Documentation

void ndn::dns::Resolver::asyncResolve ( const std::string &  host,
const time::nanoseconds &  timeout,
const shared_ptr< Resolver > &  self 
)
inline

Definition at line 48 of file dns.cpp.

References NULL_PORT, onResolveError(), and onResolveSuccess().

BoostResolver::iterator ndn::dns::Resolver::syncResolve ( BoostResolver::query  query)
inline

Definition at line 62 of file dns.cpp.

Referenced by ndn::dns::syncResolve().

void ndn::dns::Resolver::onResolveSuccess ( const boost::system::error_code &  error,
BoostResolver::iterator  remoteEndpoint,
const shared_ptr< Resolver > &  self 
)
inline

Definition at line 68 of file dns.cpp.

Referenced by asyncResolve().

void ndn::dns::Resolver::onResolveError ( const std::string &  errorInfo,
const shared_ptr< Resolver > &  self 
)
inline

Definition at line 100 of file dns.cpp.

Referenced by asyncResolve().

Member Data Documentation

const std::string ndn::dns::Resolver::NULL_PORT = ""
static

Definition at line 107 of file dns.cpp.

Referenced by asyncResolve().


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