GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GAI_STRERROR(3) FreeBSD Library Functions Manual GAI_STRERROR(3)

gai_strerror
get error message string from EAI_xxx error code

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
const char *
gai_strerror(int ecode);

The gai_strerror() function returns an error message string corresponding to the error code returned by getaddrinfo(3) or getnameinfo(3).
The following error codes and their meaning are defined in <netdb.h>:
temporary failure in name resolution
invalid value for ai_flags
invalid value for hints
non-recoverable failure in name resolution
ai_family not supported
memory allocation failure
hostname or servname not provided, or not known
argument buffer overflow
resolved protocol is unknown
servname not supported for ai_socktype
ai_socktype not supported
system error returned in errno

The gai_strerror() function returns a pointer to the error message string corresponding to ecode. If ecode is out of range, an implementation-specific error message string is returned.

getaddrinfo(3), getnameinfo(3)
May 21, 2006 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.