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

OW32::CAsyncResolverSearch Class Reference

Class to perform an asynchronous res_search style query. More...

#include <AsyncResolverSearch.h>

Inheritance diagram for OW32::CAsyncResolverSearch:

OW32::CAsyncResolverCallback List of all members.

Public Member Functions

 CAsyncResolverSearch (CAsyncResolver *pParent, CAsyncResolverCallback *pCallback, void *callbackContext=NULL)
 Construct a new search query.
void search (const char *name, int dnsclass, int type)
 Search for a given name, trying various domains as specified by the resolver's configuration.
virtual void OnAnswer (void *context, AsyncResolverError status, unsigned char *abuf, size_t alen)
 Called by the resolver when an answer is received.

Detailed Description

Class to perform an asynchronous res_search style query.


Constructor & Destructor Documentation

OW32::CAsyncResolverSearch::CAsyncResolverSearch CAsyncResolver pParent,
CAsyncResolverCallback pCallback,
void *  callbackContext = NULL
[inline]
 

Construct a new search query.

Parameters:
pParent The resolver handling network i/o
pCallback The callback object receiving the results of the query
callbackContext The callback context parameter


Member Function Documentation

virtual void OW32::CAsyncResolverSearch::OnAnswer void *  context,
AsyncResolverError  status,
unsigned char *  abuf,
size_t  alen
[virtual]
 

Called by the resolver when an answer is received.

Parameters:
context The callback context parameter
status The status of the resolution
abuf The answer buffer (or NULL if none)
alen The length of the answer buffer

Implements OW32::CAsyncResolverCallback.

void OW32::CAsyncResolverSearch::search const char *  name,
int  dnsclass,
int  type
 

Search for a given name, trying various domains as specified by the resolver's configuration.

Parameters:
name The name to search for
dnsclass The dns class to use in the query
type The dns type to use in the query


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