How is OnRecieve called
Article Writing
2
Posts
1
Posters
0
Views
1
Watching
-
In my message map... BEGIN_MESSAGE_MAP() ... ON_WM_???? END_MESSAGE_MAP what is the message used to tell a window to assert the OnRecieve method of a CAsyncSocket object.
CAsyncSocket::OnReceive() is an overridable rather than a message handler. To invoke it you could technically send WM_SOCKET_NOTIFY with the appropriate arguments. For details on how it gets called see the MFC source code for CSocket::ProcessAuxQueue() and CAsyncSocket::DoCallBack() in file SOCKCORE.CPP. Anatoly Ivasyuk DTLink Software http://www.dtlink.com