<!-- Converted by db4-upgrade version 1.0 --> <
corpauthor>Internet Systems Consortium, Inc.</
corpauthor>
<
refentrytitle>lwres_gai_strerror</
refentrytitle>
<
refmiscinfo>BIND9</
refmiscinfo>
<
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
<
refname>lwres_gai_strerror</
refname>
<
refpurpose>print suitable error string</
refpurpose>
<
funcsynopsisinfo>#include <
lwres/
netdb.h></
funcsynopsisinfo>
<
function>gai_strerror</
function></
funcdef>
<
paramdef>int <
parameter>ecode</
parameter></
paramdef>
<
refsection><
info><
title>DESCRIPTION</
title></
info>
<
para><
function>lwres_gai_strerror()</
function>
returns an error message corresponding to an error code returned by
<
function>getaddrinfo()</
function>.
The following error codes and their meaning are defined in
<
term><
errorcode>EAI_ADDRFAMILY</
errorcode></
term>
address family for hostname not supported
<
term><
errorcode>EAI_AGAIN</
errorcode></
term>
temporary failure in name resolution
<
term><
errorcode>EAI_BADFLAGS</
errorcode></
term>
<
constant>ai_flags</
constant>
<
term><
errorcode>EAI_FAIL</
errorcode></
term>
non-recoverable failure in name resolution
<
term><
errorcode>EAI_FAMILY</
errorcode></
term>
<
para><
constant>ai_family</
constant> not supported
<
term><
errorcode>EAI_MEMORY</
errorcode></
term>
memory allocation failure
<
term><
errorcode>EAI_NODATA</
errorcode></
term>
no address associated with hostname
<
term><
errorcode>EAI_NONAME</
errorcode></
term>
hostname or servname not provided, or not known
<
term><
errorcode>EAI_SERVICE</
errorcode></
term>
servname not supported for <
constant>ai_socktype</
constant>
<
term><
errorcode>EAI_SOCKTYPE</
errorcode></
term>
<
para><
constant>ai_socktype</
constant> not supported
<
term><
errorcode>EAI_SYSTEM</
errorcode></
term>
system error returned in errno
The message <
errorname>invalid error code</
errorname> is returned if
<
parameter>ecode</
parameter>
<
para><
constant>ai_flags</
constant>,
<
constant>ai_family</
constant>
<
constant>ai_socktype</
constant>
<
type>struct addrinfo</
type>
<
function>lwres_getaddrinfo()</
function>.
<
refsection><
info><
title>SEE ALSO</
title></
info>
<
refentrytitle>strerror</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>lwres_getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>getaddrinfo</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>RFC2133</
refentrytitle>