CAsyncSocket::OnClose

virtual void OnClose( int nErrorCode );

Parameters

nErrorCode

The most recent error on a socket. The following error codes apply to the OnClose member function:

Remarks

Called by the framework to notify this socket that the connected socket is closed by its process. For more information, see the article Windows Sockets: Socket Notifications in Visual C++ Programmer's Guide.

CAsyncSocket OverviewClass MembersHierarchy Chart

See Also   CAsyncSocket::Close, CAsyncSocket::GetLastError, CAsyncSocket::OnAccept, CAsyncSocket::OnConnect, CAsyncSocket::OnOutOfBandData, CAsyncSocket::OnReceive, CAsyncSocket::OnSend