![]() |
TrinityCore
|
#include <RASession.h>
Inheritance diagram for RASession:Public Member Functions | |
| RASession (Trinity::Net::IoContextTcpSocket &&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 | |
| Trinity::Net::IoContextTcpSocket | _socket |
| boost::asio::streambuf | _readBuffer |
| boost::asio::streambuf | _writeBuffer |
| std::promise< void > * | _commandExecuting |
Definition at line 33 of file RASession.h.
|
inline |
Definition at line 36 of file RASession.h.
|
private |
Definition at line 125 of file RASession.cpp.
References LOGIN_SEL_ACCOUNT_ACCESS, LoginDatabase, sConfigMgr, PreparedStatementBase::setString(), TC_LOG_INFO, and Utf8ToUpperOnlyLatin().
Referenced by Start().
|
private |
Definition at line 157 of file RASession.cpp.
References Trinity::Crypto::SRP6::CheckLogin(), LOGIN_SEL_CHECK_PASSWORD_BY_NAME, LoginDatabase, Trinity::Crypto::SRP6::SALT_LENGTH, PreparedStatementBase::setString(), TC_LOG_INFO, Utf8ToUpperOnlyLatin(), and Trinity::Crypto::SRP6::VERIFIER_LENGTH.
Referenced by Start().
|
staticprivate |
Definition at line 220 of file RASession.cpp.
References _commandExecuting.
Referenced by ProcessCommand().
|
staticprivate |
|
inline |
|
inline |
Definition at line 43 of file RASession.h.
References _socket.
|
private |
Definition at line 184 of file RASession.cpp.
References _commandExecuting, CommandFinished(), CommandPrint(), Send(), sWorld, and TC_LOG_INFO.
Referenced by Start().
|
private |
Definition at line 105 of file RASession.cpp.
References _readBuffer, and _socket.
Referenced by Start().
|
private |
Definition at line 96 of file RASession.cpp.
References _socket, and _writeBuffer.
Referenced by CommandPrint(), ProcessCommand(), and Start().
| void RASession::Start | ( | ) |
Definition at line 33 of file RASession.cpp.
References _socket, CheckAccessLevel(), CheckPassword(), GetRemoteIpAddress(), ProcessCommand(), ReadString(), Send(), sWorld, and TC_LOG_INFO.
|
private |
Definition at line 58 of file RASession.h.
Referenced by CommandFinished(), and ProcessCommand().
|
private |
Definition at line 56 of file RASession.h.
Referenced by ReadString().
|
private |
Definition at line 55 of file RASession.h.
Referenced by GetRemoteIpAddress(), GetRemotePort(), ReadString(), Send(), and Start().
|
private |
Definition at line 57 of file RASession.h.
Referenced by Send().