[Previous] [Contents] [Index] [Next]

hstrerror()

Get error message string associated with the error return status

Synopsis:

#include <netdb.h>

const char * hstrerror( int err );

Library:

socket3r.lib, socket3s.lib

Description:

The hstrerror() function gets an error message string associated with the error return status from network host-related functions.

Network host-related functions such as the following can return the error status:

You can check the external integer h_errno to see whether this is a temporary failure or an invalid or unknown host.

Returns:

A pointer to the message string affiliated with an error number. Do not modify the array being pointed to.

Classification:

Unix

Safety:
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

herror


[Previous] [Contents] [Index] [Next]