jade03
asked on
visual c++ socket programming
Hi,
I'm new to socket programming as well as visual c++....I would like to create a simple client socket on windows that will connect to a server socket running on Linux. I've been reading the web, and am now confused between winsock and CAsyncSocket.
Can anyone help me on how I should get started? Which should I use? Any sample codes on very simple client/server connection? Maybe echo back a simple line of text?
thanx!
I'm new to socket programming as well as visual c++....I would like to create a simple client socket on windows that will connect to a server socket running on Linux. I've been reading the web, and am now confused between winsock and CAsyncSocket.
Can anyone help me on how I should get started? Which should I use? Any sample codes on very simple client/server connection? Maybe echo back a simple line of text?
thanx!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well it's better to look at the client and the GUI as a whole thing - but if you prefer it this way - yes - the code that connects the GUI and the client is "kind of" p2p.But if I got your question right - the client and the GUI are on the same machine - so they can communicate with windows messages, events, callbacks etc.
Svetlin
Svetlin
ASKER
actually, I won't be implementing the client myself, but I think it will be running on Linux, and the GUI will be running on windows. So, can I still connect to the client using regular client/server socket connection?
Yes - you should be able to.
ASKER
Thanx for all the tips, Svetlin! :)
You're welcome :)
ASKER