This member function is called by the framework to notify the socket that its connection attempt has completed, whether successfully or in error. Override this member function if you want to do some special processing.
virtual void OnConnect( int nErrorCode );
Header file: | Afxsock.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Connect, CAsyncSocket::OnAccept, CAsyncSocket::OnClose, CAsyncSocket::OnOutOfBandData, CAsyncSocket::OnReceive, CAsyncSocket::OnSend, ::GetLastError