![]() |
TrinityCore
|
#include <RASession.h>
Inheritance diagram for RASession:Public Member Functions | |
| RASession (Trinity::Net::IoContextTcpSocket &&socket) | |
| void | Start () |
| boost::asio::ip::address | GetRemoteIpAddress () const |
| uint16 | GetRemotePort () const |
Private Member Functions | |
| int | Send (std::string_view data) |
| std::string | ReadString () |
| bool | CheckAccessLevel (const std::string &user) |
| 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 30 of file RASession.h.
|
inline |
Definition at line 33 of file RASession.h.
|
private |
Definition at line 123 of file RASession.cpp.
References LOGIN_SEL_ACCOUNT_ACCESS, LoginDatabase, sConfigMgr, SEC_ADMINISTRATOR, PreparedStatementBase::setString(), TC_LOG_INFO, and Utf8ToUpperOnlyLatin().
Referenced by Start().
|
staticprivate |
Definition at line 191 of file RASession.cpp.
References _commandExecuting.
Referenced by ProcessCommand().
|
staticprivate |
|
inline |
|
inline |
Definition at line 40 of file RASession.h.
References _socket.
|
private |
Definition at line 155 of file RASession.cpp.
References _commandExecuting, CommandFinished(), CommandPrint(), Send(), sWorld, and TC_LOG_INFO.
Referenced by Start().
|
private |
Definition at line 103 of file RASession.cpp.
References _readBuffer, and _socket.
Referenced by Start().
|
private |
Definition at line 94 of file RASession.cpp.
References _socket, and _writeBuffer.
Referenced by CommandPrint(), ProcessCommand(), and Start().
| void RASession::Start | ( | ) |
Definition at line 31 of file RASession.cpp.
References _socket, CheckAccessLevel(), AccountMgr::CheckPassword(), GetRemoteIpAddress(), ProcessCommand(), ReadString(), Send(), sWorld, and TC_LOG_INFO.
|
private |
Definition at line 54 of file RASession.h.
Referenced by CommandFinished(), and ProcessCommand().
|
private |
Definition at line 52 of file RASession.h.
Referenced by ReadString().
|
private |
Definition at line 51 of file RASession.h.
Referenced by GetRemoteIpAddress(), GetRemotePort(), ReadString(), Send(), and Start().
|
private |
Definition at line 53 of file RASession.h.
Referenced by Send().