Skip to main content
GameDev.net gamedev.net
🔒 Locked

Simple network library, or server framework in C/C++?

Started by Maoukiji Feb 6, 2010 at 7:32 AM 3 replies 2.2k views
Original Post
Maoukiji
Maoukiji
I'm sure this has been asked a thousand times, however I need to ask once more, as my situation is relatively unique. I need either a network library, or a basic server framework to expand upon for a basic 3d game. I need either the framework, or library, to be able to handle a few users at a time, and with a little (Lot) of work on my part, be able to expand to handle 1-200 people at a time. I need something that can be compiled on both linux and in VC++, and it needs to use UDP. It'd be nice if it has a client counter part as well, in the case of a framework - however basic it may be. Basically the reason for this odd request is that I need to create a prototype ASAP, and the network part doesn't need to be advanced, just functional - walking around, tracking players, firing a gun, maybe basic projectile tracking, and chat. All of these features aren't necessary in the framework obviously, I'm just trying to paint a picture of what this will be used for. Not sure what else to say, I'm creating a basic game and I've done all I can without writing the network part. I have an advanced knowledge of C++, but only a basic working knowledge of network programming, so I need to find something that prevents me from making too many big mistakes, and helps me create a basic networked game play in a reasonable amount of time.
rip-off
rip-off
Your situation isn't unique. Have you looked at the Forum FAQ?

Raknet is pretty popular, and I've heard it works on Linux. The only caveat is that if you want to support 200 odd people for a first person style game, you'll have a bit of work on your hands. Most games support 32 or 64 at most.
Maoukiji
Maoukiji
Yeah I've looked at it, was curious if there were any other solutions. Would using Project Darkstar for the server, and writing the client in C++, using a different library work?
hplus0603
hplus0603
Darkstar probably wouldn't work if you kept things like player location in it. It's optimized for slow-changing transactional state, like stats in an RPG, or inventory.

If you need to make a prototype, why not use one of dozens of available game engines? There are open source ones, like Ogre3D, Panda3D or CrystalSpace, as well as commercial ones, like Unity 3D or Unreal 3, available for free for indie development.
enum Bool { True, False, FileNotFound };
hplus0603
hplus0603
Darkstar probably wouldn't work if you kept things like player location in it. It's optimized for slow-changing transactional state, like stats in an RPG, or inventory.

If you need to make a prototype, why not use one of dozens of available game engines? There are open source ones, like Ogre3D, Panda3D or CrystalSpace, as well as commercial ones, like Unity 3D or Unreal 3, available for free for indie development.
enum Bool { True, False, FileNotFound };

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.