Networking for Multiplayer Games Where to start?
Hello All
I've done some openGL coding and I'm happy with the stuff I've learned so far even though I keep on learning something new every day.
Seems like future of games is moving to online multiplayer, and I want to try getting started with some network programming for games.
Questions:
Where do I start?
Is there a library to handle networking?
Any website links?
Thanks for your help
I've done some openGL coding and I'm happy with the stuff I've learned so far even though I keep on learning something new every day.
Seems like future of games is moving to online multiplayer, and I want to try getting started with some network programming for games.
Questions:
Where do I start?
Is there a library to handle networking?
Any website links?
Thanks for your help
Where do you start?
Learn basic sockets programming, write a very simple networked "Hello World" program where the server sends a "Hello World" string to any client that connects to it. Once you've done that, the rest is algorithmic.
Is there a library to handle networking?
There are tons, none are good enough or general enough to be better than what you can write using sockets. If you are really afraid of all of that stuff, take a look at CFNetwork and all that jazz. But be warned that there are some strange bugs lurking in CFNetwork.
Website links:
MacDevCenter had an okay tutorial in their Rendezvous chat example that gave some good information.
Everyone seems to love http://www.ecst.csuchico.edu/~beej/guide/net/html/
For books, the Stevens book is the bible, and I also liked the small "Practical Sockets Programming with TCP/IP"
Learn basic sockets programming, write a very simple networked "Hello World" program where the server sends a "Hello World" string to any client that connects to it. Once you've done that, the rest is algorithmic.
Is there a library to handle networking?
There are tons, none are good enough or general enough to be better than what you can write using sockets. If you are really afraid of all of that stuff, take a look at CFNetwork and all that jazz. But be warned that there are some strange bugs lurking in CFNetwork.
Website links:
MacDevCenter had an okay tutorial in their Rendezvous chat example that gave some good information.
Everyone seems to love http://www.ecst.csuchico.edu/~beej/guide/net/html/
For books, the Stevens book is the bible, and I also liked the small "Practical Sockets Programming with TCP/IP"
Once you learn sockets. You'll need to know how to implement it in your game. Take a peek here.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Various BSD Networking Questions | wyrmmage | 25 | 10,151 |
Jul 30, 2007 05:09 AM Last Post: unknown |
|
| Newbie networking - just dl'ing data from an URL... | sealfin | 4 | 3,216 |
Apr 19, 2007 07:01 AM Last Post: sealfin |
|
| Good networking library | Ummon | 5 | 4,160 |
Jan 22, 2007 11:59 PM Last Post: akb825 |
|
| Simple networking? | CarbonX | 13 | 6,736 |
Apr 7, 2005 12:36 AM Last Post: Andrew |
|
| Saving a Place for Networking | Roosterhouse | 3 | 3,714 |
Aug 6, 2004 02:05 PM Last Post: FCCovett |
|

