SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
Projects/CoX/Servers/AuthServer

Classes

struct  ClientAcceptor
 
class  AuthServer
 main class of the authentication server, it controls the AuthHandler instances More...
 

Functions

ACE_INT32 ACE_TMAIN (int argc, ACE_TCHAR *argv[])
 
void AuthHandler::dispatch (SEGSEvent *ev) override
 
 AuthHandler::AuthHandler (AuthServer *our_server)
 
void AuthHandler::on_timeout (TimerEvent *ev)
 
void AuthHandler::on_connect (ConnectEvent *ev)
 
void AuthHandler::on_disconnect (DisconnectEvent *ev)
 
void AuthHandler::auth_error (EventProcessor *lnk, uint32_t code)
 
bool AuthHandler::isClientConnectedAnywhere (uint32_t client_id)
 
void AuthHandler::on_retrieve_account_response (RetrieveAccountResponse *msg)
 This function handles database server informing us about account details. More...
 
void AuthHandler::on_login (LoginRequest *ev)
 
void AuthHandler::on_server_list_request (ServerListRequest *ev)
 
void AuthHandler::on_server_selected (ServerSelectRequest *ev)
 
void AuthHandler::on_client_expected (ExpectClientResponse *ev)
 
void AuthHandler::on_client_connected_to_other_server (ClientConnectedMessage *ev)
 
void AuthHandler::on_client_disconnected_from_other_server (ClientDisconnectedMessage *ev)
 
void AuthHandler::reap_stale_links ()
 
void AuthHandler::on_server_status_change (GameServerStatusMessage *ev)
 
void AuthHandler::on_db_error (AuthDbErrorMessage *ev)
 
 AuthServer::AuthServer ()
 
 AuthServer::~AuthServer ()
 
void AuthServer::dispatch (SEGSEvent *ev)
 
bool AuthServer::ReadConfigAndRestart ()
 Read server configuration. More...
 
bool AuthServer::Run ()
 Starts this server up, by opening the connection acceptor on given location. This method can be called multiple times, to re-open the listening socket on different addresses. More...
 
bool AuthServer::ShutDown ()
 Shuts the server down. More...
 

Variables

static uint64_t AuthHandler::s_last_session_id =1
 Monotonically incrementing session ids, starting at 1, to make 0 special. More...
 

Detailed Description

Function Documentation

ACE_INT32 ACE_TMAIN ( int  argc,
ACE_TCHAR *  argv[] 
)

Here is the call graph for this function:

void AuthHandler::auth_error ( EventProcessor lnk,
uint32_t  code 
)
protected

Here is the caller graph for this function:

AuthHandler::AuthHandler ( AuthServer our_server)

Here is the call graph for this function:

AuthServer::AuthServer ( )
void AuthServer::dispatch ( SEGSEvent ev)
protectedvirtual

Implements EventProcessor.

Here is the call graph for this function:

void AuthHandler::dispatch ( SEGSEvent ev)
overrideprotectedvirtual

Implements EventProcessor.

Here is the call graph for this function:

bool AuthHandler::isClientConnectedAnywhere ( uint32_t  client_id)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_client_connected_to_other_server ( ClientConnectedMessage *  ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_client_disconnected_from_other_server ( ClientDisconnectedMessage *  ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_client_expected ( ExpectClientResponse *  ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_connect ( ConnectEvent ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_db_error ( AuthDbErrorMessage *  ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_disconnect ( DisconnectEvent ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_login ( LoginRequest ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_retrieve_account_response ( RetrieveAccountResponse *  msg)
protected

This function handles database server informing us about account details.

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_server_list_request ( ServerListRequest ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_server_selected ( ServerSelectRequest ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::on_server_status_change ( GameServerStatusMessage *  ev)
protected

Here is the caller graph for this function:

void AuthHandler::on_timeout ( TimerEvent ev)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

bool AuthServer::ReadConfigAndRestart ( )

Read server configuration.

Note
m_mutex is held locked during this function
Returns
bool, if it's false, this function failed somehow.

Here is the call graph for this function:

Here is the caller graph for this function:

void AuthHandler::reap_stale_links ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

bool AuthServer::Run ( )
protected

Starts this server up, by opening the connection acceptor on given location. This method can be called multiple times, to re-open the listening socket on different addresses.

Returns
bool, if it's false, we somehow failed to start. Error report is logged by qCritical

Here is the caller graph for this function:

bool AuthServer::ShutDown ( )

Shuts the server down.

Returns
bool, if it's false, we failed to close down cleanly
AuthServer::~AuthServer ( )

Variable Documentation

uint64_t AuthHandler::s_last_session_id =1
staticprotected

Monotonically incrementing session ids, starting at 1, to make 0 special.