Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WvResolver Class Reference

#include <wvresolver.h>

List of all members.


Detailed Description

ASynchronous DNS resolver functions, so that we can do non-blocking lookups.


Public Member Functions

int findaddr (int msec_timeout, WvStringParm name, WvIPAddr const **addr, WvIPAddrList *addrlist=NULL)
 Return -1 on timeout, or the number of addresses found, which may be 0 if the address does not exist.
int findname (int msec_timeout, WvIPAddr *ipaddr, char **name)
void clearhost (WvStringParm hostname)
bool pre_select (WvStringParm hostname, WvStream::SelectInfo &si)
 add all of our waiting fds to an fd_set for use with select().


Member Function Documentation

int WvResolver::findaddr int  msec_timeout,
WvStringParm  name,
WvIPAddr const **  addr,
WvIPAddrList *  addrlist = NULL
 

Return -1 on timeout, or the number of addresses found, which may be 0 if the address does not exist.

addrlist, if present, has to be an initialized list. addr points to an internal WvIPAddr and will be deleted automatically.


The documentation for this class was generated from the following files:
Generated on Sun Apr 3 14:48:01 2005 for WvStreams by  doxygen 1.4.2