SockPSock_Errno

The SockPSock_Errno() call writes a short error message to the standard error device. It describes the last error encountered during a call to a socket library function.

Syntax:

>>--SockPSock_Errno(--+----------------+--)------------------------------><
                      +--error_string--+

where:

error_string

is the error string written to the standard error device describing the last error encountered. The string printed is followed by a colon, a space, and then the message. If it is omitted or empty, only the message is printed. The string is optional.

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

Note: SockPSock_Errno() interfaces with the C function psock_errno().