#include <serverbase.h>
Inheritance diagram for AGS::ServerBase::
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) |
|
Possible main modes in which a server runs.
|
|
Create a base server, which will listen on the given port if necessary. |
|
Data event. |
|
Event for a joining player. |
|
Event for a leaving player. |
|
Run a server in one of the available modes. |