CAsyncSocket::GetLastError
staticintGetLastError();
Return Value
The return value indicates the error code for the last Windows Sockets API routine performed by this thread.
Remarks
Call this member function to get the error status for the last operation that failed. When a particular member function indicates that an error has occurred, GetLastError should be called to retrieve the appropriate error code. See the individual member function descriptions for a list of applicable error codes.
For more information about the error codes, see and in the Win32 SDK documentation.