dns.hpp File Reference
#include "ndn-cxx/detail/asio-fwd.hpp"
#include "ndn-cxx/util/time.hpp"
#include <boost/asio/ip/address.hpp>
#include <functional>
#include <string>
+ 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
 
struct  ndn::dns::Ipv4Only
 
struct  ndn::dns::Ipv6Only
 

Namespaces

 ndn
 
 ndn::dns
 

Typedefs

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

Functions

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