dns.hpp File Reference
#include "ndn-cxx/detail/asio-fwd.hpp"
#include "ndn-cxx/util/time.hpp"
#include <boost/asio/ip/address.hpp>
+ Include dependency graph for dns.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ndn::dns::AnyAddress
 
class  ndn::dns::Error
 
struct  ndn::dns::Ipv4Only
 
struct  ndn::dns::Ipv6Only
 

Namespaces

 ndn
 
 ndn::dns
 

Typedefs

typedef function< bool(const IpAddress &address)> ndn::dns::AddressSelector
 
typedef function< void(const std::string &reason)> ndn::dns::ErrorCallback
 
typedef boost::asio::ip::address ndn::dns::IpAddress
 
typedef function< void(const IpAddress &address)> ndn::dns::SuccessCallback
 

Functions

void ndn::dns::asyncResolve (const std::string &host, const SuccessCallback &onSuccess, const ErrorCallback &onError, boost::asio::io_service &ioService, const AddressSelector &addressSelector=AnyAddress(), time::nanoseconds timeout=4_s)
 Asynchronously resolve host. More...
 
IpAddress ndn::dns::syncResolve (const std::string &host, boost::asio::io_service &ioService, const AddressSelector &addressSelector=AnyAddress())
 Synchronously resolve host. More...