Game Development Reference
In-Depth Information
Game server modules
In this section, we will briefly explore the different modules that a typical game server
must implement in order to provide all the necessary features for the multiplayer
game client. The description provided is a simplistic view of an actual implementation.
The implementation of a Pulse server, for example, is much more sophisticated than
presented here. However, it gives the reader a general picture of a typical game server.
Database
Persistence
Session Manager
Avatar Manager
Lobby & Room
Manager
Friends
Chat
Object Sync
Security
Object Serialization
Message Dispatcher
Client Connection Manager
Persistence
The persistence module takes care of all the reads and writes to a relational database,
such as MySQL. All other modules requiring reading or writing to the database will
request this module to do the actual work.
Session and session manager
A session is maintained for each player that is connected to the server. Various
bookkeeping information keeps track of each session, including things such as hours
played, login time, client IP and port, etc. The session is cleaned after the player has
logged out. Usually, there is one session for each client connection.
 
Search WWH ::




Custom Search