libutil++  1.9.3
 All Classes Functions Variables
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Friends | List of all members
sella::net::DNSCallback Class Referenceabstract
Inheritance diagram for sella::net::DNSCallback:
sella::net::SharedStoreDNSCallback sella::net::StoreDNSCallback TestCallback

Public Types

enum  Error : int {
  None = DNS_E_NOERROR, Temporary = DNS_E_TEMPFAIL, Protocol = DNS_E_PROTOCOL, NXDomain = DNS_E_NXDOMAIN,
  NoData = DNS_E_NODATA, NoMemory = DNS_E_NOMEM, BadQuery = DNS_E_BADQUERY
}
 
typedef std::shared_ptr
< DNSCallback
shared
 
typedef DNSCallbackptr
 

Public Member Functions

virtual void success (const std::string &qname, const std::string &cname, int ttl, const std::vector< std::string > &response=empty)=0 throw ()
 
virtual void failure (const std::string &qname, Error error)=0 throw ()
 
const std::string & getQname (void) const throw ()
 
int getRecord (void) const throw ()
 
int getProtocol (void) const throw ()
 
int getFlags (void) const throw ()
 
virtual void clear (void) throw ()
 

Static Public Member Functions

static const char * getErrorDetail (Error error)
 
static const char * getErrorName (Error error)
 

Static Public Attributes

static const std::vector
< IPAddress
none
 
static const std::vector
< std::string > 
empty
 

Protected Attributes

std::string qname
 
int record
 
int protocol
 
int flags
 

Friends

class DNS
 

Detailed Description

Definition at line 36 of file DNSCallback.h.


The documentation for this class was generated from the following files: