EpcTools
An event based multi-threaded C++ development framework.
|
#include <dnsquery.h>
Public Member Functions | |
Query (ns_type rtype, const std::string &domain) | |
Class constructor. More... | |
~Query () | |
Class destructor. More... | |
Void | addQuestion (Question *q) |
Adds a question record to a query results. More... | |
Void | addAnswer (ResourceRecord *a) |
Adds an answer record to the query results. More... | |
Void | addAuthority (ResourceRecord *a) |
Adds an authority record to the query results. More... | |
Void | addAdditional (ResourceRecord *a) |
Adds an additional record to the query results. More... | |
ns_type | getType () |
Retrieves the named service type associated with this query. More... | |
const EString & | getDomain () |
Retrieves the domain associated with this query. More... | |
uint32_t | getTTL () |
Retrieves the time to live (TTL) value associated with the query results. More... | |
time_t | getExpires () |
retrieves the expiration time associated with the query results. More... | |
Bool | isExpired () |
Retrieves an indication if the query results have expired. More... | |
Bool | ignoreCache () |
Retrieves an indication if the DNS cache for this query should be ignored. More... | |
const std::list< Question * > & | getQuestions () |
Retrieves the collection of query result question records. More... | |
const ResourceRecordList & | getAnswers () |
Retrieves the collection of query result answer records. More... | |
const ResourceRecordList & | getAuthorities () |
Retrieves the collection of query result authority records. More... | |
const ResourceRecordList & | getAdditional () |
Retrieves the collection of query result additional records. More... | |
Void | dump () |
Prints the information associated with this DNS query object. More... | |
EEvent * | getCompletionEvent () |
Retrieves the completion event associated with this query. More... | |
EEvent * | setCompletionEvent (EEvent *event) |
Assigns the query completion event. More... | |
CachedDNSQueryCallback | getCallback () |
Retrieves the query completion callback function. More... | |
CachedDNSQueryCallback | setCallback (CachedDNSQueryCallback cb) |
Assigns the query completion callback function for this DNS query. More... | |
Bool | getError () |
Retrieves the error indication. More... | |
Bool | setError (Bool err) |
Assigns the error indication. More... | |
EString & | getErrorMsg () |
Retrieves the error message associated with this DNS query. More... | |
EString & | setErrorMsg (const char *errmsg) |
Assigns the error message associated with this DNS query. More... | |
EString & | setErrorMsg (const std::string &errmsg) |
Assigns the error message associated with this DNS query. More... | |
Bool | getIgnoreCache () |
Retrieves the current ignore cache value. More... | |
Bool | setIgnoreCache (Bool ignorecache) |
Assigns the ignore cache value. More... | |
Defines a DNS query.
|
inline |
Class constructor.
rtype | the named server type for the query. |
domain | the domain for the query. |
|
inline |
Class destructor.
|
inline |
Adds an additional record to the query results.
a | a pointer to the additional record to add. |
|
inline |
Adds an answer record to the query results.
a | a pointer to the answer record to add. |
|
inline |
Adds an authority record to the query results.
a | a pointer to the authority record to add. |
|
inline |
Adds a question record to a query results.
q | a pointer to the question record to add. |
|
inline |
Prints the information associated with this DNS query object.
|
inline |
Retrieves the collection of query result additional records.
|
inline |
Retrieves the collection of query result answer records.
|
inline |
Retrieves the collection of query result authority records.
|
inline |
Retrieves the query completion callback function.
|
inline |
Retrieves the completion event associated with this query.
|
inline |
Retrieves the domain associated with this query.
|
inline |
Retrieves the error indication.
|
inline |
|
inline |
retrieves the expiration time associated with the query results.
|
inline |
Retrieves the current ignore cache value.
|
inline |
Retrieves the collection of query result question records.
|
inline |
Retrieves the time to live (TTL) value associated with the query results.
|
inline |
Retrieves the named service type associated with this query.
|
inline |
|
inline |
Retrieves an indication if the query results have expired.
|
inline |
Assigns the query completion event.
|
inline |
Assigns the error indication.
err | the error indication. |
|
inline |
|
inline |
|
inline |
Assigns the ignore cache value.
ignorecache | the ignore cache value. |