CAsyncSocket::GetLastError

static int GetLastError( );

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 Overview of Windows Sockets 2 and Windows Sockets Programming Considerations in the Win32 SDK documentation.

CAsyncSocket OverviewClass MembersHierarchy Chart

See Also   ::WSASetLastError