The Windows Sockets WSASetLastError
function sets the error code which can be retrieved through the WSAGetLastError
[in] Specifies the error code to be returned by a subsequent WSAGetLastError
This function allows an application to set the error code to be returned by a
call for the current thread. Note that any subsequent Windows Sockets routine
called by the application will override the error code as set by this routine.
The error code set by WSASetLastError
is different from the error code reset by getsockopt
||A successful WSAStartup must occur before using this function.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages