TrinityCore
RASession Class Reference

#include <RASession.h>

+ Inheritance diagram for RASession:

Public Member Functions

 RASession (boost::asio::ip::tcp::socket &&socket)
 
void Start ()
 
std::string 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

boost::asio::ip::tcp::socket _socket
 
boost::asio::streambuf _readBuffer
 
boost::asio::streambuf _writeBuffer
 
std::promise< void > * _commandExecuting
 

Detailed Description

Definition at line 29 of file RASession.h.

Constructor & Destructor Documentation

◆ RASession()

RASession::RASession ( boost::asio::ip::tcp::socket &&  socket)
inline

Definition at line 32 of file RASession.h.

Member Function Documentation

◆ CheckAccessLevel()

bool RASession::CheckAccessLevel ( const std::string &  user)
private

Definition at line 120 of file RASession.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CommandFinished()

void RASession::CommandFinished ( void *  callbackArg,
bool   
)
staticprivate

Definition at line 188 of file RASession.cpp.

+ Here is the caller graph for this function:

◆ CommandPrint()

void RASession::CommandPrint ( void *  callbackArg,
std::string_view  text 
)
staticprivate

Definition at line 179 of file RASession.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRemoteIpAddress()

std::string RASession::GetRemoteIpAddress ( ) const
inline

Definition at line 38 of file RASession.h.

+ Here is the caller graph for this function:

◆ GetRemotePort()

uint16 RASession::GetRemotePort ( ) const
inline

Definition at line 39 of file RASession.h.

◆ ProcessCommand()

bool RASession::ProcessCommand ( std::string &  command)
private

Definition at line 152 of file RASession.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReadString()

std::string RASession::ReadString ( )
private

Definition at line 100 of file RASession.cpp.

+ Here is the caller graph for this function:

◆ Send()

int RASession::Send ( std::string_view  data)
private

Definition at line 91 of file RASession.cpp.

+ Here is the caller graph for this function:

◆ Start()

void RASession::Start ( )

Definition at line 30 of file RASession.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _commandExecuting

std::promise<void>* RASession::_commandExecuting
private

Definition at line 53 of file RASession.h.

◆ _readBuffer

boost::asio::streambuf RASession::_readBuffer
private

Definition at line 51 of file RASession.h.

◆ _socket

boost::asio::ip::tcp::socket RASession::_socket
private

Definition at line 50 of file RASession.h.

◆ _writeBuffer

boost::asio::streambuf RASession::_writeBuffer
private

Definition at line 52 of file RASession.h.


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