#include <AsyncResolverQuery.h>
Inheritance diagram for OW32::CAsyncResolverQuery:
Public Member Functions | |
CAsyncResolverQuery (CAsyncResolver *pParent, CAsyncResolverCallback *pCallback, void *callbackContext=0) | |
Constructor. | |
virtual void | OnAnswer (AsyncResolverError status, unsigned char *abuf, size_t alen) |
Called by the resolver when an answer is received. | |
void | query (const char *name, int dnsclass, int type) |
Send the given query. | |
const auto_byte_buf & | getQuery () const |
Get the formatted query buffer (includes TCP header). | |
int | getId () const |
Get the assigned query id. | |
const bool | getUsingTCP () const |
See if the query is using TCP. | |
void | setUsingTCP (bool using_tcp) |
Force the query to use TCP (done automatically in the case of a truncated answer or huge question). | |
Protected Attributes | |
CAsyncResolver * | m_pParent |
The parent resolver. | |
auto_byte_buf | m_query |
The query data. | |
int | m_try |
The current try number. | |
size_t | m_server |
The current server index. | |
int | m_id |
The query's id. | |
bool | m_using_tcp |
Flag set if the query is using TCP. | |
std::vector< bool > | m_skip_server |
A per server flag set if we need to skip a server. | |
AsyncResolverError | m_error_status |
Current error status to be reported if retrying fails. | |
CAsyncResolverCallback * | m_pCallback |
The callback object. | |
void * | m_callbackContext |
The callback context parameter. | |
Friends | |
class | CAsyncResolver |
The resolver manipulates this object directly -- might be better to use accessors but these are of no general use. |
|
Constructor.
|