resolve: Domain name resolution functions


Defines

#define RESOLVE_OK   0
#define RESOLVE_NOTFOUND   1
#define RESOLVE_NOADDR   2
#define RESOLVE_NSERROR   3
#define RESOLVE_TEMPFAIL   4
#define resolve_ipv4name(N, A)   resolve_ipv4name_n((N),(A),1)

Functions

const char * resolve_ipv4addr (const ipv4addr *addr)
int resolve_ipv4name_n (const char *name, ipv4addr *addr, int maxaddrs)
int resolve_error (void)

Define Documentation

#define resolve_ipv4name ( N,
 )     resolve_ipv4name_n((N),(A),1)

Compatibility macro for resolve_ipv4name_n

#define RESOLVE_NOADDR   2

Domain name exists, but has no address.

#define RESOLVE_NOTFOUND   1

Domain name not found.

#define RESOLVE_NSERROR   3

Non-recoverable name server error.

#define RESOLVE_OK   0

No error.

#define RESOLVE_TEMPFAIL   4

Temporary failure.


Function Documentation

int resolve_error ( void   ) 

Look up the last resolve error code.

const char* resolve_ipv4addr ( const ipv4addr addr  ) 

Look up the domain name corresponding to an IPv4 address.

int resolve_ipv4name_n ( const char *  name,
ipv4addr addr,
int  maxaddrs 
)

Look up the IPv4 address(es) corresponding to a domain name.


Generated on Thu Feb 19 11:11:50 2009 for bglibs by  doxygen 1.5.4