Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
AuthSocket Class Reference

#include <AuthSocket.h>

Inheritance diagram for AuthSocket:
Collaboration diagram for AuthSocket:

Public Member Functions

bool _HandleLogonChallenge ()
bool _HandleLogonProof ()
bool _HandleRealmList ()
bool _HandleReconnectChallenge ()
bool _HandleReconnectProof ()
bool _HandleXferAccept ()
bool _HandleXferCancel ()
bool _HandleXferResume ()
 AuthSocket (RealmSocket &socket)
virtual void OnAccept (void)
virtual void OnClose (void)
virtual void OnRead (void)
virtual ~AuthSocket (void)
Public Member Functions inherited from RealmSocket::Session
 Session (void)
virtual ~Session (void)

Static Public Member Functions

static Skyfire::Net::Address const & GetAddressForClient (Realm const &realm, Skyfire::Net::Address const &clientAddr)

Static Public Attributes

static const int s_BYTE_SIZE = 32

Private Member Functions

RealmSocketsocket (void)

Private Attributes

AccountTypes _accountSecurityLevel
bool _authed
uint16 _build
uint8 _expversion
std::string _localizationName
std::string _login
std::string _os
std::array< uint8, 16 > _reconnectProof = {}
SessionKey _sessionKey = {}
std::optional< SkyFire::Crypto::SRP6_srp6
std::string _tokenKey
RealmSocketsocket_

Detailed Description

Definition at line 18 of file AuthSocket.h.

Constructor & Destructor Documentation

◆ AuthSocket()

AuthSocket::AuthSocket ( RealmSocket & socket)

Definition at line 169 of file AuthSocket.cpp.

References _accountSecurityLevel, _authed, _build, _expversion, socket(), and socket_.

◆ ~AuthSocket()

AuthSocket::~AuthSocket ( void )
virtual

Definition at line 176 of file AuthSocket.cpp.

Member Function Documentation

◆ _HandleLogonChallenge()

bool AuthSocket::_HandleLogonChallenge ( )

◆ _HandleLogonProof()

◆ _HandleRealmList()

◆ _HandleReconnectChallenge()

◆ _HandleReconnectProof()

◆ _HandleXferAccept()

◆ _HandleXferCancel()

◆ _HandleXferResume()

◆ GetAddressForClient()

Skyfire::Net::Address const & AuthSocket::GetAddressForClient ( Realm const & realm,
Skyfire::Net::Address const & clientAddr )
static

◆ OnAccept()

void AuthSocket::OnAccept ( void )
virtual

Implements RealmSocket::Session.

Definition at line 179 of file AuthSocket.cpp.

References SF_LOG_DEBUG, and socket().

◆ OnClose()

void AuthSocket::OnClose ( void )
virtual

Implements RealmSocket::Session.

Definition at line 185 of file AuthSocket.cpp.

References SF_LOG_DEBUG.

◆ OnRead()

◆ socket()

Member Data Documentation

◆ _accountSecurityLevel

AccountTypes AuthSocket::_accountSecurityLevel
private

◆ _authed

bool AuthSocket::_authed
private

Definition at line 51 of file AuthSocket.h.

Referenced by _HandleLogonProof(), _HandleReconnectProof(), AuthSocket(), and OnRead().

◆ _build

uint16 AuthSocket::_build
private

◆ _expversion

uint8 AuthSocket::_expversion
private

◆ _localizationName

std::string AuthSocket::_localizationName
private

Definition at line 58 of file AuthSocket.h.

Referenced by _HandleLogonChallenge(), and _HandleLogonProof().

◆ _login

std::string AuthSocket::_login
private

◆ _os

std::string AuthSocket::_os
private

◆ _reconnectProof

std::array<uint8, 16> AuthSocket::_reconnectProof = {}
private

Definition at line 49 of file AuthSocket.h.

Referenced by _HandleReconnectChallenge(), and _HandleReconnectProof().

◆ _sessionKey

SessionKey AuthSocket::_sessionKey = {}
private

◆ _srp6

std::optional<SkyFire::Crypto::SRP6> AuthSocket::_srp6
private

Definition at line 47 of file AuthSocket.h.

Referenced by _HandleLogonChallenge(), and _HandleLogonProof().

◆ _tokenKey

std::string AuthSocket::_tokenKey
private

Definition at line 54 of file AuthSocket.h.

Referenced by _HandleLogonChallenge(), and _HandleLogonProof().

◆ s_BYTE_SIZE

const int AuthSocket::s_BYTE_SIZE = 32
static

Definition at line 21 of file AuthSocket.h.

◆ socket_

RealmSocket& AuthSocket::socket_
private

Definition at line 44 of file AuthSocket.h.

Referenced by AuthSocket(), and socket().


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