psock_errno()

The psock_errno() socket call writes a short error message to the standard error device.

Syntax

#include <sys/socket.h>
void psock_errno(s)
char *s;

Parameters

s

Description

This call writes a short error message to the standard error display describing the last error encountered during a call to a socket library function. If s is not a NULL pointer and does not point to a null string, the string it points to is printed, followed by a colon, followed by a space, followed by the message. If s is a NULL pointer or points to a null string, only the message is printed.

The error code is acquired by calling sock_errno(). The error code is set when errors occur. Subsequent socket calls do not clear the error code.

Related Calls


[Back: os2_select()]
[Next: readv()]