AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "RASession.h"
Public Member Functions | |
RASession (tcp::socket &&socket) | |
void | Start () |
const std::string | GetRemoteIpAddress () const |
unsigned short | GetRemotePort () const |
Private Member Functions | |
int | Send (std::string_view data) |
std::string | ReadString () |
bool | CheckAccessLevel (const std::string &user) |
bool | CheckPassword (const std::string &user, const std::string &pass) |
bool | ProcessCommand (std::string &command) |
Static Private Member Functions | |
static void | CommandPrint (void *callbackArg, std::string_view text) |
static void | CommandFinished (void *callbackArg, bool) |
Private Attributes | |
tcp::socket | _socket |
boost::asio::streambuf | _readBuffer |
boost::asio::streambuf | _writeBuffer |
std::promise< void > * | _commandExecuting |
|
inline |
|
private |
References LOG_INFO, LOGIN_SEL_ACCOUNT_ACCESS, LoginDatabase, sConfigMgr, and Utf8ToUpperOnlyLatin().
Referenced by Start().
|
private |
References Acore::Crypto::SRP6::CheckLogin(), LOG_INFO, LOGIN_SEL_CHECK_PASSWORD_BY_NAME, LoginDatabase, Acore::Crypto::SRP6::SALT_LENGTH, Utf8ToUpperOnlyLatin(), and Acore::Crypto::SRP6::VERIFIER_LENGTH.
Referenced by Start().
|
staticprivate |
References _commandExecuting.
Referenced by ProcessCommand().
|
staticprivate |
References Send().
Referenced by ProcessCommand().
|
inline |
|
inline |
|
private |
References _commandExecuting, CommandFinished(), CommandPrint(), LOG_INFO, Send(), and sWorld.
Referenced by Start().
|
private |
References _readBuffer, and _socket.
Referenced by Start().
|
private |
References _socket, and _writeBuffer.
Referenced by CommandPrint(), ProcessCommand(), and Start().
void RASession::Start | ( | ) |
References _socket, CheckAccessLevel(), CheckPassword(), DEFAULT_LOCALE, GetRemoteIpAddress(), LOG_INFO, ProcessCommand(), ReadString(), Send(), and sMotdMgr.
|
private |
Referenced by CommandFinished(), and ProcessCommand().
|
private |
Referenced by ReadString().
|
private |
Referenced by GetRemoteIpAddress(), GetRemotePort(), ReadString(), Send(), and Start().
|
private |
Referenced by Send().