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

OW32::CAsyncResolverGetHostByAddr Class Reference

Implements an asynchronous gethostbyaddr. More...

#include <AsyncResolverGetHostByAddr.h>

Inheritance diagram for OW32::CAsyncResolverGetHostByAddr:

OW32::CAsyncResolverCallback List of all members.

Public Member Functions

 CAsyncResolverGetHostByAddr (CAsyncResolver *pParent, CAsyncResolverHostCallback *pCallback, void *callbackContext)
 Construct a new gethostbyaddr query.
void gethostbyaddr (const void *addr, int addrlen, int family)
 Resolve an address.
virtual void OnAnswer (void *context, AsyncResolverError status, unsigned char *abuf, size_t alen)
 Called by the resolver when an answer is received.

Detailed Description

Implements an asynchronous gethostbyaddr.

Must be allocated on the heap.


Constructor & Destructor Documentation

OW32::CAsyncResolverGetHostByAddr::CAsyncResolverGetHostByAddr CAsyncResolver pParent,
CAsyncResolverHostCallback pCallback,
void *  callbackContext
[inline]
 

Construct a new gethostbyaddr query.

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


Member Function Documentation

void OW32::CAsyncResolverGetHostByAddr::gethostbyaddr const void *  addr,
int  addrlen,
int  family
 

Resolve an address.

Only IPv4 addresses are supported at present.

Parameters:
addr The address
addr The length of the address structure
family The family of the address
Note that once this is called the object cannot be reused, and will automatically be deleted.

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

Called by the resolver when an answer is received.

Parameters:
context The 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.


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