SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AuthServer Class Referencefinal

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

#include <AuthServer.h>

Inheritance diagram for AuthServer:
Inheritance graph
Collaboration diagram for AuthServer:
Collaboration graph

Public Member Functions

 AuthServer ()
 
 ~AuthServer () override
 
- Public Member Functions inherited from EventProcessor
int handle_timeout (const ACE_Time_Value &current_time, const void *act) override final
 
int open (void *args=nullptr) override
 
int process_single_event ()
 This is mostly used by unit testing and debugging functions. More...
 
virtual int putq (SEGSEvents::Event *ev, ACE_Time_Value *timeout=nullptr)
 
virtual uint64_t get_id () const =0
 

Protected Member Functions

void per_thread_shutdown () override
 Shuts the server down. More...
 
bool per_thread_startup () override
 
bool 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 ReadConfigAndRestart ()
 Read server configuration. More...
 
void dispatch (SEGSEvents::Event *ev) override
 
void serialize_from (std::istream &is) override
 
void serialize_to (std::ostream &is) override
 

Protected Attributes

std::unique_ptr< ClientAcceptorm_acceptor
 ace acceptor wrapping AuthClientService More...
 
ACE_INET_Addr m_location
 address this server will bind at. More...
 
bool m_running
 true if this server is running More...
 
ACE_Thread_Mutex m_mutex
 used to prevent multiple threads accessing config reload function More...
 
std::unique_ptr< AuthHandlerm_handler
 holds the AuthHandler More...
 

Detailed Description

main class of the authentication server, it controls the AuthHandler instances

Member Data Documentation

◆ m_acceptor

std::unique_ptr<ClientAcceptor> AuthServer::m_acceptor
protected

ace acceptor wrapping AuthClientService

◆ m_handler

std::unique_ptr<AuthHandler> AuthServer::m_handler
protected

holds the AuthHandler

◆ m_location

ACE_INET_Addr AuthServer::m_location
protected

address this server will bind at.

◆ m_mutex

ACE_Thread_Mutex AuthServer::m_mutex
protected

used to prevent multiple threads accessing config reload function

◆ m_running

bool AuthServer::m_running
protected

true if this server is running


The documentation for this class was generated from the following files: