lwres_gai_strerror — print suitable error string
#include <lwres/netdb.h>
char *
gai_strerror( |
int ecode) ; |
lwres_gai_strerror()
returns an error message corresponding to an error code returned by
getaddrinfo()
.
The following error codes and their meaning are defined in
include/lwres/netdb.h
.
address family for hostname not supported
temporary failure in name resolution
invalid value for
ai_flags
non-recoverable failure in name resolution
ai_family
not supported
memory allocation failure
no address associated with hostname
hostname or servname not provided, or not known
servname not supported for ai_socktype
ai_socktype
not supported
system error returned in errno
The message invalid error code is returned if
ecode
is out of range.
ai_flags
,
ai_family
and
ai_socktype
are elements of the
struct addrinfo
used by
lwres_getaddrinfo()
.