Ideas for learning to write good networking code

Discuss the development of other free/open-source games, as well as other games in general.

Moderator: Forum Moderators

Post Reply
Corwin
Posts: 90
Joined: August 17th, 2005, 5:17 pm
Location: California

Ideas for learning to write good networking code

Post by Corwin »

I like to program and I like to play games, but I'm mostly interested in multiplayer games. I would really like to make some of my ideas a reality but I really don't know how to write networking code. I was wondering if anyone has seen some good free resources that would help me learn.
Corwin
Roots
Posts: 103
Joined: March 22nd, 2004, 8:22 pm
Location: Austin, TX
Contact:

Post by Roots »

Tah-dah!

http://www.gamedev.net/reference/list.asp?categoryid=30

I have almost zilch network programming experience myself. I only wrote a small chat program and an online SQL database interface in Java, but that's it. Its definitely something I'd like to study on my own one day. :)
Hero of Allacrost, a 2D open source RPG. Check it out at http://www.allacrost.org.
Dizzutch
Posts: 25
Joined: September 26th, 2005, 1:16 pm
Location: Worcester, MA
Contact:

Post by Dizzutch »

what worked for me to learn the basics and the principles of network programming was to do it in perl. Since in perl writing to a socket it much like writing a file, it takes away the problems of syntax. When i got comfortable with the idea I switched to writing network code in C/C++ or whatever. Then you can focus on the details that C lets you change, but since you're not worried about the content, you can alocate a lot more focus on that part. For starters, I'd reccommend a simple chat-client, a simple webserver (HTTP protocol is pretty simple when it comes to implementing the basic functions) and maybe a FTP-client/server.
Good Luck,
Dizz
Corwin
Posts: 90
Joined: August 17th, 2005, 5:17 pm
Location: California

Post by Corwin »

Thanks for the suggestions. :)
Corwin
Post Reply