Jump to content
  • Advertisement
Sign in to follow this  
Add

Beginning Networking In C++

This topic is 4951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I was, wondering if anyone could point me in the direction of a good book to cover networking in c++ that could meet the following conditions. 1) Is not tied to the windows operating system (or directX) 2) I've just cleared a beginners tome, so something of an intermediate level would be ace. 3) Would work on unix as well as windows (the code) if possible. (if not a unix book would be good, and I'll aquire a different book for windows at a leter date) Ok that's me done, All help greatly appreciated, as I've scanned a large amount of books on google and amazon and had no joy. Many thanks in advance, Add

Share this post


Link to post
Share on other sites
Advertisement
Take a look at Raknet (I forgot their website, check google). It support both UPD and TCP and is cross platform. They say it works on any operating system that support the BSD sockets (Linux, mac, etc) and it has support for Winsock. Their intention is to provide multiplayer games with a better sollution for synching and what ever more comes into play with networking games (I think gd gave them a reward too, not sure). And most of all it's free and Open source.

They have licenses for GPL application, shareware and commercial applications (You need permission for that) and all the versions are free.

So good luck and I hope it's what you're looking for.

Enjoy!
styx

EDIT: Oops I read it all wrong. I thought you were looking for an API. My bad :/ (It's still early)

Share this post


Link to post
Share on other sites
lol, that's cool, I know the feeling, coding took me late into the night and through into this morning.

Hey it's the taking part that counts isn't it ?? :)

Share this post


Link to post
Share on other sites
I know a superb tutorial for networking in both a linux (mainly) and a windows environment.

go here

http://www.davesdump.com/data/Ians%20Socket%20Stuff/bgnet2.pdf

ace

Share this post


Link to post
Share on other sites
Quote:
Original post by styxo
Take a look at Raknet (I forgot their website, check google). It support both UPD and TCP and is cross platform. They say it works on any operating system that support the BSD sockets (Linux, mac, etc) and it has support for Winsock. Their intention is to provide multiplayer games with a better sollution for synching and what ever more comes into play with networking games (I think gd gave them a reward too, not sure). And most of all it's free and Open source.

They have licenses for GPL application, shareware and commercial applications (You need permission for that) and all the versions are free.

So good luck and I hope it's what you're looking for.

Enjoy!
styx

EDIT: Oops I read it all wrong. I thought you were looking for an API. My bad :/ (It's still early)


your slightly wrong. raknet does not support many platforms - it only officially supports Windows and Linux. i heard you can get it to compile on Mac, but, its un-supported from Rak'kar...

also, it doesn't have support for TCP. Raknet is fully UDP based, but has a reliability layer with many different options (reliable ordered, reliable sequenced, reliable, unreliable, etc..).

with that said, i also fully recommend raknet. unless you actually want to learn and understand the low level sockets programming of winsock (personally i would rather spend that time actually making a game with raknet [smile]) - go over to raknet's website and start reading the basic tutorials. it has very good support and will take you step by step in building simple programs which you should be able to expand. raknet has awesome docs, and awesome support. best of all, with raknet, (the protocol layer of) network programming could not get any simpler. i have used SDL_net and Enet in the past, and Raknet is by far my favorite.

Share this post


Link to post
Share on other sites
That looks ace dude (no pun intended - honest!)...
I'm definately gonna give that a read... just after some sleep...

Is anyone aware of any books in this area as I'm hoping also to add some networking to my reference collection (book 10)...

Thanks,
Add

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!