How do I use winsock2.h?

Hi. My friend and I are making a chat program for our final in our computer programming class. The only problem is we don't know how to send the messages between 2 computers. I've been assigned the duty of figuring this out. I've looked up some websites on this, but they are very long and confusing.

Can anyone give me an example or link me to a tutorial?

Maybe you guys would recommend us using something else other than winsock2.h?

Any help is welcome.
if you dont want to use sockets then you may be looking for RPC (remote procedure calls).
look into msdn for RPC.. its a lot of less work compared to sockets and easy to implement. you just need a couple of things more apart from c++ like how to make IDL files.
www.c-worker.ch <- very easy...
closed account (S6k9GNh0)
www.c-worker.ch <-- is in german
Topic archived. No new replies allowed.