Jump to content
  • Advertisement
Sign in to follow this  
supagu

game network architecture

This topic is 4360 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

okay im writing my second networked game, and my first one turned out pretty nasty. I would send a message followed by any variables to the equal class over the network. This required a class being registered when created and getting a unique id from the server. Then this class could then shuffle messages to its network counterparts. The problem was that i ended up with a lot of messages and this was not very flexible. Im thinking of trying some sort of RMI (remote method invocation) which doesnt return values so it doesnt need to block. I'm also trying to work out a good way to structure my network architecture to make it easy to add it new objects in to my game that work via network. my next game im using a messaging system to communicate between objects so i have: class MessageReceiver { bool HandleMessage(Message* msg); } im thinking i could simply make the Message class and its children replicatable, but then i would need messages just do any sync'ing which seems excessive. any one have any suggestions on this?

Share this post


Link to post
Share on other sites
Advertisement
hmm its not really clear to me what kind of help you want.

Try taking a look at raknet, on the main page there is a doxygen manual which makes it easier to view the overall structure of it.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!