Public Types | |
| typedef std::shared_ptr< DNS > | shared |
| typedef DNS * | ptr |
Public Member Functions | |
| DNS (const std::vector< std::string > &nameservers=empty, const std::vector< std::string > &searches=empty) throw (DNSException) | |
| DNS (sella::util::ThreadPool *pool, const std::vector< std::string > &nameservers=empty, const std::vector< std::string > &searches=empty) throw (DNSException) | |
| DNSCallback * | resolve (DNSCallback *callback, const std::string &name, int protocol=IPv4Preferred) throw (DNSException) |
| bool | receive (time_t delay=0, time_t now=0) throw () |
| void | setInterval (uint64_t usec) throw () |
| void | setNoSearch (bool on=true) throw () |
| void | setNoRecursion (bool on=true) throw () |
| void | setAuthoritativeOnly (bool on=true) throw () |
| void | setTimeout (int seconds=5) throw () |
| void | setRetries (int retries=2) throw () |
| void | setDots (int ndots=1) throw () |
| void | setUDPSize (int bytes=4096) throw () |
| void | setUDPPort (short port=53) throw () |
| int | getActive () throw () |
| int | getSocket () throw () |
Static Public Member Functions | |
| static std::vector< IPAddress > | resolve (const std::string &name, int protocol=IPv4Preferred) throw (DNSException) |
| static const DNS::shared | shared_ptr () throw () |
Static Public Attributes | |
| static const uint64_t | DefaultInterval = 5000 |
| static const int | AnyProtocol = 0x00 |
| static const int | IPv4Preferred = 0x01 |
| static const int | IPv4Required = 0x03 |
| static const int | IPv6Preferred = 0x04 |
| static const int | IPv6Required = 0x12 |
|
static const std::vector < std::string > | empty |
Static Protected Member Functions | |
| static void | callback_a (struct dns_ctx *context, void *result, void *argument) |
| static void | callback_aaaa (struct dns_ctx *context, void *result, void *argument) |
Definition at line 36 of file DNS.h.
1.6.1