Hi everyone,

I am developing an app using MFC which basically connects to a remote server and (should) wait to receive some data and then produce an echo routine (send & receive). I believe my OnSend() and OnReceive() functions are ok, but my app keeps connecting to the server BUT as soon as that it done it tries to SEND data (which does not exist, of course). I've tried to force the app to execute first OnReceive() function but (even thought the receive function works, because I've tested it) it seems it's wrong somehow.

I'm using the CAsynSocket class and the Socket.Send() and Socket.Receive() functions.

Thanks for your attention!