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

OW32::CAsyncResolverHostsDB Class Reference

A hosts file cache. More...

#include <AsyncResolverHostsDB.h>

Inheritance diagram for OW32::CAsyncResolverHostsDB:

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

Public Member Functions

 CAsyncResolverHostsDB ()
 Construct an empty hosts database.
 ~CAsyncResolverHostsDB ()
 D'tor cleaning up.
AsyncResolverError read (const TCHAR *hostsPath)
 Read a hosts file into memory.
AsyncResolverError nameQuery (const char *name, struct hostent **host) const
 Do a name query.
AsyncResolverError addrQuery (const struct in_addr *addr, struct hostent **host) const
 Do an address query.

Detailed Description

A hosts file cache.


Member Function Documentation

AsyncResolverError OW32::CAsyncResolverHostsDB::addrQuery const struct in_addr *  addr,
struct hostent **  host
const
 

Do an address query.

Parameters:
addr The address to query
host Output hostent structure ARES_SUCCESS if OK, error code on failure

AsyncResolverError OW32::CAsyncResolverHostsDB::nameQuery const char *  name,
struct hostent **  host
const
 

Do a name query.

Parameters:
name The name to query
host Output hostent structure ARES_SUCCESS if OK, error code on failure

AsyncResolverError OW32::CAsyncResolverHostsDB::read const TCHAR *  hostsPath  ) 
 

Read a hosts file into memory.

Parameters:
hostsPath Hosts file to read
Returns:
ARES_SUCCESS if OK, error code on failure


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