18#ifndef TRINITYCORE_RA_SESSION_H
19#define TRINITYCORE_RA_SESSION_H
23#include <boost/asio/ip/tcp.hpp>
24#include <boost/asio/streambuf.hpp>
30class RASession :
public std::enable_shared_from_this <RASession>
43 int Send(std::string_view data);
48 static void CommandPrint(
void* callbackArg, std::string_view text);
int Send(std::string_view data)
static void CommandFinished(void *callbackArg, bool)
bool CheckAccessLevel(const std::string &user)
std::promise< void > * _commandExecuting
boost::asio::streambuf _writeBuffer
boost::asio::streambuf _readBuffer
uint16 GetRemotePort() const
Trinity::Net::IoContextTcpSocket _socket
bool ProcessCommand(std::string &command)
RASession(Trinity::Net::IoContextTcpSocket &&socket)
static void CommandPrint(void *callbackArg, std::string_view text)
boost::asio::ip::address GetRemoteIpAddress() const
boost::asio::basic_stream_socket< boost::asio::ip::tcp, boost::asio::io_context::executor_type > IoContextTcpSocket