TCP/IP Programming Manual

lwres_freehostent
The lwres_freehostent function frees the memory of one or more hostent structures returned
by the lwres_getipnodebyaddr or lwres_getipnodebyname functions. (This function is
supported for G06.27 and later G-series RVUs and H06.05 and later H-series RVUs of NonStop
TCP/IPv6.)
C Synopsis
#include <netdb.h>
void lwres_freehostent(struct hostent *ptr);
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
lwres_freehostent( ptr);
INT .EXT ptr(hostent);
ptr
input value; a pointer to the structure hostent that has to be freed.
Usage Guidelines
Call this function once for each hostent structure returned by the lwres_getipnodebyaddr
or lwres_getipnodebyname functions.
lwres_gai_strerror
The lwres_gai_strerror function aids applications in printing error messages based on the
EAI_ codes returned by the lwres_getaddrinfo function. The lwres_gai_strerror function
call returns a pointer to a character string describing the error code passed into the function. (This
function is supported for G06.27 and later G-series RVUs and H06.05 and later H-series RVUs of
NonStop TCP/IPv6.)
C Synopsis
#include <netdb.h>
char * lwres_gai_strerror(int ecode);
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
return_value := lwres_gai_strerror ( ecode);
INT(32) return_value;
INT ecode;
return_value
is a pointer to a string described in ecode.
ecode
input value; specifies one of the following error codes returned by the lwres_getaddrinfo
function. The returned strings are as follows:
EAI_ADDRFAMILY
address family for hostname not supported.
lwres_freehostent 141