Set error number for socket connection
Ns_SetSockErrno(int err);
Ns_SetSockErrno sets the current error number for the socket connection to the specified error number.
This function (along with the other error reporting functions listed below) is part of a platform-independent interface to the error reporting mechanisms on Unix. On Unix, the per-thread errno variable is used.