CAsyncSocket::OnClose

This member function is called by the framework to notify this socket that the socket to which it was connected was closed by its process. Override this member function if you want to do some special processing.

Syntax

virtual void OnClose( int nErrorCode );

At a Glance

Header file: Afxsock.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Close, CAsyncSocket::OnAccept, CAsyncSocket::OnConnect, CAsyncSocket::OnOutOfBandData, CAsyncSocket::OnReceive, CAsyncSocket::OnSend, ::GetLastError