Link to home
Start Free TrialLog in
Avatar of jade03
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!
ASKER CERTIFIED SOLUTION
Avatar of Svetlin_Panayotov
Svetlin_Panayotov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jade03
jade03

ASKER

So, if I have a server, then a client connected to the server, then a GUI that will connect to the client, is it considered peer-to-peer between the GUI and the client? And will the connection code be similar to a normal client and server code?
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
Avatar of jade03

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.
Avatar of jade03

ASKER

Thanx for all the tips, Svetlin! :)
You're welcome :)