PDA

View Full Version : Winsock


Toast
03-14-2002, 08:38 PM
Im working on writing a game with some friends from college and have been put in charge of developing the networking code. I've decided to use sockets for compatability and so the game can be ported to linux once its done. This is pretty much my first time doing any networking code. I've already gone through a couple of rewrites and am beginning to get a feel for the way winsock works. If anyone here has ever worked with winsock and has any advice for me, please post it. Thanks.

kmj
03-14-2002, 10:17 PM
This is a tutorial on socket programming... it's link I've seen passed around most often. I don't know how much it applies to winsock programming, but it's worth a look.

http://www.ecst.csuchico.edu/~beej/guide/net/html/

stuka
06-13-2002, 09:54 PM
With the exception of the initialization code for Winsock stuff, the code is practically identical if you use the straight C library stuff, and not the MS specific WSAxxx functions. I actually have a simple little utility I wrote at work that opens a socket and dumps a file out the socket, and I ported it from Win32 to Linux (or was it the other way around?) pretty easily.

skrap
06-20-2002, 01:38 AM
ive used winsock for a few things, like a simple chat client, and also starting a multiplayer game. its easy, one u get the feel for it. here is a good place for info, if u havent gone there already
http://www.cs.tamu.edu/course-info/cpsc463/tutorial/
btw, if you ever wanted to make something with sockets in linux, i feel its much much easier.