Classes | Modules | Functions

AESOP Server Library
[AESOP Core Libraries]


This is the reference implmentation of a aesop server. More...

Collaboration diagram for AESOP Server Library:

Classes

class  aesop::Server
 Root object that manages all aesop server state. More...
class  aesop::ServerObject
 This class maintains server-specific data for objects. More...

Modules

 Core Processing Loop
 

The Server::exec() call starts the server loop, which runs until the server is shut down.


 Server-Side Game Logic Interface
 Host and Connection Management
 Players and Player Management
 Users and User Management
 

See the aesop::UserManager class for documentation.


 Server Threading Model
 

The AESOP Server is designed to be multithreaded.


Functions

virtual int aesop::Server::exec (void)=0
 Entry point for the server.
virtual void aesop::Server::requestStopTS (IN int retval)=0
 Threadsafe method called to request that the server halt (force exec() to return).
static smart_ptr< Server > aesop::Server::create (IN smart_ptr< Datahash > &op_params, IN smart_ptr< ServerGameLogic > &gLogic)



void aesop::addPhysicsMessagesToQueue (IN dword_t serverClock,IN HostManager *hostMgr, IN PlayerManager *playerMgr, IN MapManager *mapMgr)
 given the host list, this routine will iterate over all players and make sure any objects relevant to them are added to the appropriate outbound network request queues.



smart_ptr
< converse::ConversationHost > 
aesop::createNewPlayerConversationHost (IN smart_ptr< crypto::DESKey > &desKey, IN new_player_conv_data_t &data)
smart_ptr
< converse::ConversationHost > 
aesop::createAdminConversationHost (IN admin_conv_data_t &data)
#define VALID_CHECK(exp, msg)   if (!(exp)) { DPRINTF(msg); return false; }

Detailed Description


This is the reference implmentation of a aesop server.


Define Documentation

#define VALID_CHECK (   exp,
  msg 
)    if (!(exp)) { DPRINTF(msg); return false; }

Definition at line 63 of file srv-converse.h.


Function Documentation

virtual int aesop::Server::exec ( void   )  [pure virtual, inherited]

Entry point for the server.

Returns on server exit. The return value is what the calling program should return. Zero indicates no errors.

virtual void aesop::Server::requestStopTS ( IN int  retval  )  [pure virtual, inherited]

Threadsafe method called to request that the server halt (force exec() to return).

Typically called from signal handlers etc. The caller provides the return value to return from exec().

smart_ptr< Server > aesop::Server::create ( IN smart_ptr< Datahash > &  op_params,
IN smart_ptr< ServerGameLogic > &  gLogic 
) [static, inherited]

Definition at line 1969 of file aesop-srv.cpp.

void aesop::addPhysicsMessagesToQueue ( IN dword_t  serverClock,
IN HostManager *  hostMgr,
IN PlayerManager *  playerMgr,
IN MapManager *  mapMgr 
)

given the host list, this routine will iterate over all players and make sure any objects relevant to them are added to the appropriate outbound network request queues.

smart_ptr< converse::ConversationHost > aesop::createNewPlayerConversationHost ( IN smart_ptr< crypto::DESKey > &  desKey,
IN new_player_conv_data_t &  data 
)
smart_ptr<converse::ConversationHost> aesop::createAdminConversationHost ( IN admin_conv_data_t &  data  )