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

#include <AuthHandler.h>

Inheritance diagram for AuthHandler:
Inheritance graph
Collaboration diagram for AuthHandler:
Collaboration graph

Public Member Functions

 AuthHandler (AuthServer *our_server)
- 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

bool isClientConnectedAnywhere (uint32_t client_id)
void reap_stale_links ()
void serialize_from (std::istream &is) override
void serialize_to (std::ostream &is) override
void on_timeout (SEGSEvents::Timeout *ev)
void on_server_status_change (SEGSEvents::GameServerStatusMessage *ev)
void auth_error (EventSrc *lnk, uint32_t code)
void on_connect (SEGSEvents::Connect *ev)
void on_disconnect (SEGSEvents::Disconnect *ev)
void on_login (SEGSEvents::LoginRequest *ev)
void on_server_list_request (SEGSEvents::ServerListRequest *ev)
void on_server_selected (SEGSEvents::ServerSelectRequest *ev)
void on_retrieve_account_response (SEGSEvents::RetrieveAccountResponse *msg)
 This function handles database server informing us about account details. More...
void on_client_expected (SEGSEvents::ExpectClientResponse *ev)
void on_client_connected_to_other_server (SEGSEvents::ClientConnectedMessage *ev)
void on_client_disconnected_from_other_server (SEGSEvents::ClientDisconnectedMessage *ev)
void on_db_error (SEGSEvents::AuthDbStatusMessage *ev)
void dispatch (SEGSEvents::Event *ev) override
- Protected Member Functions inherited from EventProcessor
virtual bool per_thread_startup ()
virtual void per_thread_shutdown ()

Protected Attributes

MessageBusEndpoint m_message_bus_endpoint
SessionStore m_sessions
AuthServerm_authserv = nullptr
ACE_Thread_Mutex m_server_mutex
ServerMap m_known_game_servers

Static Protected Attributes

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

Member Data Documentation

◆ m_authserv

AuthServer* AuthHandler::m_authserv = nullptr

◆ m_known_game_servers

ServerMap AuthHandler::m_known_game_servers

◆ m_message_bus_endpoint

MessageBusEndpoint AuthHandler::m_message_bus_endpoint

◆ m_server_mutex

ACE_Thread_Mutex AuthHandler::m_server_mutex

◆ m_sessions

SessionStore AuthHandler::m_sessions

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