Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CAsyncResolverQuery Class Reference

The base query object. More...

#include <AsyncResolverQuery.h>

Inheritance diagram for OW32::CAsyncResolverQuery:

OW32::CAsyncResolverQueryCallback OW32::CRefCounted OW32::CRefCountedBase List of all members.

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_bufgetQuery () 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

CAsyncResolverm_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.
CAsyncResolverCallbackm_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.

Detailed Description

The base query object.


Constructor & Destructor Documentation

OW32::CAsyncResolverQuery::CAsyncResolverQuery CAsyncResolver pParent,
CAsyncResolverCallback pCallback,
void *  callbackContext = 0
 

Constructor.

Parameters:
pParent The resolver to use for network transmission
pCallback The object to call back when an answer is received
callbackContext The callback context parameter


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:21 2005 for OW32 by  doxygen 1.3.9.1