The SockSock_Errno() call returns the last error code set by a socket call. Subsequent socket API calls do not reset this error code.
Syntax:
>>--SockSock_Errno()-----------------------------------------------------><
Note: SockSock_Errno() interfaces with the C function sock_errno().