Main Page   Class Hierarchy   Compound List   File List   Compound Members  

AGS::ServerCore Class Reference

#include <servercore.h>

Inheritance diagram for AGS::ServerCore::

AGS::ServerBase AGS::Server List of all members.

Public Types

enum  SocketTypes { LocalSocket, NetworkSocket }
enum  SocketModes { TCPSocket, UDPSocket }

Public Methods

 ServerCore ()
void createLocalSocket (int mode, const char *socketfile)
void createNetworkSocket (int mode, int port)

Protected Methods

virtual void handleConnection (int mode, int fd)

Detailed Description

Server core class, providing low-level threaded socket functions.


Member Enumeration Documentation

enum AGS::ServerCore::SocketModes
 

Defined socket modes.

enum AGS::ServerCore::SocketTypes
 

Possible socket types, to be used in createLocalSocket or createNetworkSocket.


Constructor & Destructor Documentation

ServerCore::ServerCore  
 

Construct a server core


Member Function Documentation

void ServerCore::createLocalSocket int    mode,
const char *    socketfile
 

Create a new thread listening on a local socket.

void ServerCore::createNetworkSocket int    mode,
int    port
 

Create a new thread listening on a port.

void ServerCore::handleConnection int    mode,
int    fd
[protected, virtual]
 

Accepted incoming connection with this file descriptor.


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