Quote (Eep @ Jan 28 2013 04:29pm)
sockets are used for creating network connections right? Or am I wrong
yes they are. basically they are just a file descriptor that connects to a file descriptor on another machine. its kind of like using fopen to get a file descriptor to a local file but instead its opening it on another machine. they way you handle the read/write to those descriptors is up to you meaning the possibilities are endless.
edit:: at least on linux. windows has winsock overhead bullshit you need to initiate before you can use sockets but they are 99% the same.
some random tutorial for winsock in c++ i found
http://www.win32developer.com/tutorial/winsock/winsock_tutorial_1.shtmThis post was edited by AbDuCt on Jan 28 2013 02:36pm