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

OW32::CAsyncResolverGetHostByName Class Reference

Implements an asynchronous name resolution query. More...

#include <AsyncResolverGetHostByName.h>

Inheritance diagram for OW32::CAsyncResolverGetHostByName:

OW32::CAsyncResolverCallback List of all members.

Public Member Functions

 CAsyncResolverGetHostByName (CAsyncResolver *pParent, CAsyncResolverHostCallback *pCallback, void *callbackContext=NULL)
 Construct a new gethostbyname query.
void gethostbyname (const char *name, int family)
 Resolve a name.
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 name resolution query.

Must be allocated on the heap.


Constructor & Destructor Documentation

OW32::CAsyncResolverGetHostByName::CAsyncResolverGetHostByName CAsyncResolver pParent,
CAsyncResolverHostCallback pCallback,
void *  callbackContext = NULL
[inline]
 

Construct a new gethostbyname query.

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


Member Function Documentation

void OW32::CAsyncResolverGetHostByName::gethostbyname const char *  name,
int  family
 

Resolve a name.

Only IPv4 addresses are supported at present.

Parameters:
name The name to resolve
family The desired family of the resolved address
Note that once this is called the object cannot be reused, and will automatically be deleted.

virtual void OW32::CAsyncResolverGetHostByName::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