gai_strerror

gai_strerror()

address and name information error description 

Function


SYNOPSIS

#include <netdb.h>

const char *gai_strerror(int ecode);


DESCRIPTION

The gai_strerror() function returns a descriptive string corresponding to the specified error value (ecode) from getaddrinfo() or getnameinfo().

The error value can be one of the following:

EAI_AGAIN
EAI_BADFLAGS
EAI_FAIL
EAI_FAMILY
EAI_MEMORY
EAI_NONAME
EAI_OVERFLOW
EAI_SERVICE
EAI_SOCKTYPE
EAI_SYSTEM

When the specified error code is not one of these, gai_strerror() returns a string indentifying the code as an unknown error.


PARAMETERS

ecode 

Specifies an error code from getaddrinfo() or getnameinfo() for which a corresponding descriptive string is to be returned.


RETURN VALUES

For valid error codes, gai_strerror() returns a pointer to the text string that describes that code. For other error codes, it returns a pointer to a string identifying the code as an unknown error.


CONFORMANCE

UNIX 03.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
getaddrinfo(), getnameinfo()


PTC MKS Toolkit 10.4 Documentation Build 39.