Sign in to follow this  
sarim

How to start Network Programming?

Recommended Posts

I've always been interested in learning how to make multiplayer games, or even simple server/client applications that might transfer text between each other sort of like an IM application. However I've never really been able to find a good tutorial or book that teaches network programming in C++. How did you guys learn and maybe you could point me in the right direction to some good resources? Obviously I'm not going to go out and start working on a multiplayer game right away but I want to be able to atleast make a simple program that can send "Instant Messages" back and forth between two users. Or is that still a bit too complicated?

Share this post


Link to post
Share on other sites

Considering I'm already pretty proficient with C++, for learning networking, I looked at existing documentation and code for engines like Source, Doom 3, and UDK. They were really helpful in understanding how I would design my game architecture for networking and the different ways that are possible. UDK's documentation on its networking is extensive, and Valve has a developer wiki with information about how they handle networking.

 

Sending messages between servers is very easy depending on what kind of library you use, such as RakNet.

 

Unfortunately I can't really point you towards a specific book or tutorial since I never used one myself.

Share this post


Link to post
Share on other sites

Hi Cryptiik

 

There are some tutorials I wrote over on www.win32developer.com that should get you started.   :)

 

They will get you doing what you are after pretty easily. Basically you can cut & paste and you will be up and running.

 

But, once you are a little more confident you will have to handle error correction and packet framing etc, for better reliability and so on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this