Class SessionBase

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< SessionBase >

Derived Types

Class Documentation

class simulator::networking::SessionBase : public std::enable_shared_from_this<SessionBase>

Subclassed by simulator::networking::AuthSession, simulator::networking::GameSession

Public Functions

SessionBase(std::shared_ptr<Application> app, std::shared_ptr<ClientConnector> connector)
~SessionBase()
void RegisterHandlers()
uint8_t GetType()

Protected Functions

void OnPhaseChange(uint8_t oldPhase) = 0
void RegisterDefaultPackets(bool onlyPhase = false)

Protected Attributes

bool _handshaking
uint32_t _handshake
uint8_t _phase
std::weak_ptr<Application> _application
std::weak_ptr<ClientConnector> _connector