sella::net::DNS Class Reference

List of all members.

Public Types

typedef std::shared_ptr< DNSshared
typedef DNSptr

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)
DNSCallbackresolve (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< IPAddressresolve (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)

Detailed Description

Definition at line 36 of file DNS.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1