TrinityCore
Loading...
Searching...
No Matches
RASession Class Reference

#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
 

Detailed Description

Definition at line 30 of file RASession.h.

Constructor & Destructor Documentation

◆ RASession()

RASession::RASession ( Trinity::Net::IoContextTcpSocket &&  socket)
inline

Definition at line 33 of file RASession.h.

Member Function Documentation

◆ CheckAccessLevel()

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

Definition at line 123 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 191 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 182 of file RASession.cpp.

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

◆ GetRemoteIpAddress()

boost::asio::ip::address RASession::GetRemoteIpAddress ( ) const
inline

Definition at line 39 of file RASession.h.

+ Here is the caller graph for this function:

◆ GetRemotePort()

uint16 RASession::GetRemotePort ( ) const
inline

Definition at line 40 of file RASession.h.

◆ ProcessCommand()

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

Definition at line 155 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 103 of file RASession.cpp.

+ Here is the caller graph for this function:

◆ Send()

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

Definition at line 94 of file RASession.cpp.

+ Here is the caller graph for this function:

◆ Start()

void RASession::Start ( )

Definition at line 31 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 54 of file RASession.h.

◆ _readBuffer

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

Definition at line 52 of file RASession.h.

◆ _socket

Trinity::Net::IoContextTcpSocket RASession::_socket
private

Definition at line 51 of file RASession.h.

◆ _writeBuffer

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

Definition at line 53 of file RASession.h.


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