Main Page   Class Hierarchy   Compound List   File List   Compound Members  

AGS::ServerBase Class Reference

#include <serverbase.h>

Inheritance diagram for AGS::ServerBase::

AGS::ServerCore AGS::ServerGGZ AGS::Server List of all members.

Public Types

enum  RunModes { GGZMode, ServerMode }

Public Methods

 ServerBase (int port)
void run (int runmode)

Protected Methods

virtual void handleJoin ()
virtual void handleLeave ()
virtual void handleData (void *data, int length)

Detailed Description

Base server class. Provides a generalized interface for player events like joining or leaving players or player messages. Players can be connected either through local sockets, network connections or GGZ.


Member Enumeration Documentation

enum AGS::ServerBase::RunModes
 

Possible main modes in which a server runs.

See also:
run


Constructor & Destructor Documentation

ServerBase::ServerBase int    port
 

Create a base server, which will listen on the given port if necessary.


Member Function Documentation

void ServerBase::handleData void *    data,
int    length
[protected, virtual]
 

Data event.

void ServerBase::handleJoin   [protected, virtual]
 

Event for a joining player.

void ServerBase::handleLeave   [protected, virtual]
 

Event for a leaving player.

void ServerBase::run int    runmode
 

Run a server in one of the available modes.


The documentation for this class was generated from the following files:
Generated on Mon May 6 10:52:13 2002 for GGZ Advanced Game Server by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001