Working with sockets in MFC
Posted
by fanq
on Stack Overflow
See other posts from Stack Overflow
or by fanq
Published on 2010-06-01T16:57:56Z
Indexed on
2010/06/01
17:03 UTC
Read the original article
Hit count: 165
I'm trying to make a MFC application(client) that connects to a server on ("localhost",port 1234), the server replies to the client and the client reads from the server's response.
The server is able to receive the data from the client and it sends the reply back to the socket from where it received it, but I am unable to read the reply from within the client.
I am making a CAsyncSocket to connect to the server and send data and a CAsyncSocket with overloaded methods onAccet and onReceive to read the reply from the server. Please tell me what I'm doing wrong.
© Stack Overflow or respective owner