Click to See Complete Forum and Search --> : MFC Socket help


kolkoo
November 25th, 2005, 10:22 PM
Okay in the past few days i have been trying everything to create an application which has one server socket and one client. i want the server socket to be listening and when i press the btn to send a text from the client to the server and the server socket to display it in a message box form onreceive but it doesn't work nomather what i do.
So i have posted one of my sources bellow.

Richard.J
November 26th, 2005, 04:45 AM
If you checked the return codes of your calls to CAsyncSock methods, you could easily see that you did not call WSAStartup, thus you are not creating the server socket ;-)