Classes | |
| struct | AnyAddress |
| struct | Error |
| struct | Ipv4Only |
| struct | Ipv6Only |
| class | Resolver |
Typedefs | |
| typedef boost::asio::ip::udp::endpoint | EndPoint |
| typedef boost::asio::ip::basic_resolver< boost::asio::ip::udp > | BoostResolver |
| typedef function< bool(const boost::asio::ip::address &address)> | AddressSelector |
| typedef boost::asio::ip::address | IpAddress |
| typedef function< void(const IpAddress &address)> | SuccessCallback |
| typedef function< void(const std::string &reason)> | ErrorCallback |
Functions | |
| void | asyncResolve (const std::string &host, const SuccessCallback &onSuccess, const ErrorCallback &onError, boost::asio::io_service &ioService, const ndn::dns::AddressSelector &addressSelector=ndn::dns::AnyAddress(), const time::nanoseconds &timeout=time::seconds(4)) |
| Asynchronously resolve host. More... | |
| IpAddress | syncResolve (const std::string &host, boost::asio::io_service &ioService, const ndn::dns::AddressSelector &addressSelector=ndn::dns::AnyAddress()) |
| Synchronously resolve host. More... | |
| typedef boost::asio::ip::udp::endpoint ndn::dns::EndPoint |
| typedef boost::asio::ip::basic_resolver<boost::asio::ip::udp> ndn::dns::BoostResolver |
| typedef function<bool (const boost::asio::ip::address& address)> ndn::dns::AddressSelector |
| typedef boost::asio::ip::address ndn::dns::IpAddress |
| typedef function<void (const IpAddress& address)> ndn::dns::SuccessCallback |
| typedef function<void (const std::string& reason)> ndn::dns::ErrorCallback |
| void ndn::dns::asyncResolve | ( | const std::string & | host, |
| const SuccessCallback & | onSuccess, | ||
| const ErrorCallback & | onError, | ||
| boost::asio::io_service & | ioService, | ||
| const ndn::dns::AddressSelector & | addressSelector = ndn::dns::AnyAddress(), |
||
| const time::nanoseconds & | timeout = time::seconds(4) |
||
| ) |
Asynchronously resolve host.
If an address selector predicate is specified, then each resolved IP address is checked against the predicate.
Available address selector predicates:
Definition at line 123 of file dns.cpp.
Referenced by ndn::util::IpHostCanonizeProvider< boost::asio::ip::udp >::canonize().
| IpAddress ndn::dns::syncResolve | ( | const std::string & | host, |
| boost::asio::io_service & | ioService, | ||
| const ndn::dns::AddressSelector & | addressSelector = ndn::dns::AnyAddress() |
||
| ) |
Synchronously resolve host.
If an address selector predicate is specified, then each resolved IP address is checked against the predicate.
Available address selector predicates:
Definition at line 137 of file dns.cpp.
References ndn::dns::Resolver::syncResolve().