Multiplayer game programming - Code of a basic server

I'm a beginner in multiplayer game programming and I'm looking for the code of a basic server for a multiplayer game. I don't mind which kind of game (I mean: chess, ping-pong, battlenet...) The important thing is the code pattern abnd the server structure.Could anyone help me?
[296 byte] By [serpe75] at [2007-9-27 18:52:07]
# 1

If you want to have a look at a generic multi-threaded server, check out the Java networking tutorial.. there's a basic example server that responds to a "Knock knock, who's there?" conversation.. you can start off with it..

Of course it's not a game server but you could try sticking in a game engine to maintain the game world and change the user sessions to a proper game protocol.. e.g. sending key strokes or joystick movements. You could also get the server to send player and enemy positions etc...

Good luck!

colinvella at 2007-7-6 20:22:43 > top of Java-index,Other Topics,Java Game Development...