PDA

View Full Version : Tcp/ip



tim545666
04-07-2002, 11:30 PM
For my final project for Comp Sci, I want to be able to play a game with 2-4 people at a time on different computers. I'm guessing the best way to do this is through TCP/IP. Does anyone know of a book that explains TCP/IP and it's implementation in C++?

xds4lx
04-07-2002, 11:35 PM
There is no implementation of TCP/IP in C++ (no default support that is) instead if you are doing this for a windows based system search the windows board for Winsock or TCP/IP

Unregistered
04-07-2002, 11:42 PM
I'd rather have a book that I can hold on to, I perfer books. Anyone have any recomendations?

tim545666
04-07-2002, 11:43 PM
That last message was me.

xds4lx
04-07-2002, 11:44 PM
Why not go to amazon and search for one? Some people here are just either lazy or dumb!

tim545666
04-07-2002, 11:47 PM
I did but there aren't many, and I'd like to see what people here find good. The amazon reviews have screwed me before.

adrianxw
04-08-2002, 02:39 AM
I have a book called TCP/IP Unleashed which I found pretty good, but I can't say it is the best as I'm not familiar with any others!

loobian
04-08-2002, 11:25 AM
You need to learn about network programming. I suggest you learn about WinSock.
Try this tutorial:
http://www.cpp-home.com/downloads/tutorials/195.zip

Also, at www.cpp-home.com there are a lot of other useful tutorias (including for network programming)

And if you have any network programming questions, feel free to ask here:
http://www.cpp-home.com/forums/list.php?f=10

novacain
04-09-2002, 03:43 AM
I thought UDP was better for games than TCP (less error checking) as did not matter about dropped frames.

shtarker
04-09-2002, 05:14 AM
>>I thought UDP was better for games than TCP (less error checking) as did not matter about dropped frames.

Half life uses tcp, however they recently added voice support with udp.
But some servers block udp packets, so you have to be careful.