virtual void OnReceive( int nErrorCode );
Parameters
nErrorCode
The most recent error on a socket. The following error codes apply to the OnReceive member function:
Remarks
Called by the framework to notify this socket that there is data in the buffer that can be retrieved by calling the Receive member function. For more information, see the article Windows Sockets: Socket Notifications in Visual C++ Programmer's Guide.
CAsyncSocket Overview | Class Members | Hierarchy Chart
See Also CAsyncSocket::GetLastError, CAsyncSocket::OnAccept, CAsyncSocket::OnClose, CAsyncSocket::OnConnect, CAsyncSocket::OnOutOfBandData, CAsyncSocket::OnSend, CAsyncSocket::Receive