PDA

View Full Version : Writing a Server


unknown
2006.04.27, 07:30 AM
Trying to write a simple realtime game server, my game Is just make the triangle move about right now, but that will change later I want to get the networking sorted out asap, but I am not sure what I should be doing right now.

I am basically looking for advice and references like some open source games of this type and websites/tutorials on writing servers so I can avoid doing it in ridiculus ways.

edit: Just found this, definitly something everyone would find interesting :D http://www.bookofhook.com/Article/GameDevelopment/TheQuake3NetworkingModel.html

Skorche
2006.04.27, 11:23 AM
This (Unreal Networking Architecture (http://unreal.epicgames.com/Network.htm)) was recommended by OSC in another thread a while back. Seems to make a lot of sense.

spaceb
2006.06.01, 08:01 PM
one easy tip that you probably already know: UNIX machines (using BSD sockets) are supposed to be far superior to anything else when it comes to running efficient servers. Are you gonna be running the server on a Mac or UNIX?

OneSadCookie
2006.06.01, 08:06 PM
one easy tip that you probably already know: UNIX machines (using BSD sockets) are supposed to be far superior to anything else when it comes to running efficient servers. Are you gonna be running the server on a Mac or UNIX?

What do you mean, "or"?

spaceb80
2006.06.01, 11:28 PM
oh, I was talking about the hardware, though I know you can use BSD sockets in either.

unknown
2006.06.02, 10:41 AM
Mac OS X is UNIX.

Skorche
2006.06.02, 03:05 PM
Not only that, but isn't OS X supposed to have FreeBSD networking?

ravuya
2006.06.02, 04:02 PM
Winsock on Windows is effectively BSD sockets with some minor adaptations. Pretty much everything on the planet has a BSD socket library that comes with it.

I prefer using pre-rolled UDP networking libraries like HawkNL or RakNet because I have better things to be doing than managing individual packet streams.

Skorche
2006.06.02, 05:00 PM
No, not BSD compatible sockets. It's actually BSD's networking code.

I remember some people making a big deal about this.

ravuya
2006.06.03, 12:46 AM
No, not BSD compatible sockets. It's actually BSD's networking code.

I remember some people making a big deal about this.

Yes, I know it's BSD's networking code (which is collectively referred to as "BSD sockets" I guess). The userland of OS X is (I think) derivative of one of the BSD 3.x series even though the kernel is wholly unrelated. Anyway, unix-core pedantry about OS X is a losing game. ;)