The socket call returns error code set by a socket call.
Syntax
#include <sys/socket.h> int sock_errno()
Description
The sock_errno() call returns the last error code set by a socket call in the current thread. Subsequent socket API calls do not reset this error code.
Related Calls