18#ifndef __RASESSION_H__
19#define __RASESSION_H__
22#include <boost/asio/ip/tcp.hpp>
23#include <boost/asio/streambuf.hpp>
29class RASession :
public std::enable_shared_from_this <RASession>
42 int Send(std::string_view data);
47 static void CommandPrint(
void* callbackArg, std::string_view text);
int Send(std::string_view data)
boost::asio::ip::tcp::socket _socket
std::string GetRemoteIpAddress() const
static void CommandFinished(void *callbackArg, bool)
RASession(boost::asio::ip::tcp::socket &&socket)
bool CheckAccessLevel(const std::string &user)
std::promise< void > * _commandExecuting
boost::asio::streambuf _writeBuffer
boost::asio::streambuf _readBuffer
uint16 GetRemotePort() const
bool ProcessCommand(std::string &command)
static void CommandPrint(void *callbackArg, std::string_view text)