Click to See Complete Forum and Search --> : CAsyncSocket in MFC??? SOS!!!


nguyen151180
June 7th, 2004, 04:33 AM
any one help me!!!
I don't know the basic steps to create a Client/Server Comunication (use CAsyncSocket) , help help help !!!

Andreas Masur
June 7th, 2004, 04:46 AM
[Moved thread]

Jim Springfield
June 7th, 2004, 05:12 AM
Originally posted by nguyen151180
any one help me!!!
I don't know the basic steps to create a Client/Server Comunication (use CAsyncSocket) , help help help !!!

CAsyncSocket is a class in MFC,wrapped WIN32 Socket API up perfectly.
The first step to create a C/S programme is read communication theory,The code below often will be included.

Client Server
create socket create socket
bind ip,port
listen
connect accept
send receive
close socket close socket

mixtrue
June 10th, 2004, 11:28 PM
Pls, visit www.codeproject.com . Here , A lot of sample code to demonstrate how to use CAsyncSocket. Or www.flounder.com/mvp_tips.htm.


:cool: