rewrite proxy server to support multiple clients and integration with game server

This commit is contained in:
Martin Michelsen
2022-03-27 18:14:23 -07:00
parent d977cf0608
commit 2597da95bc
24 changed files with 1370 additions and 992 deletions
+5 -1
View File
@@ -6,12 +6,14 @@
#include <event2/event.h>
#include "Shell.hh"
#include "ProxyServer.hh"
class ServerShell : public Shell {
public:
ServerShell(std::shared_ptr<struct event_base> base,
ServerShell(
std::shared_ptr<struct event_base> base,
std::shared_ptr<ServerState> state);
virtual ~ServerShell() = default;
ServerShell(const ServerShell&) = delete;
@@ -20,6 +22,8 @@ public:
ServerShell& operator=(ServerShell&&) = delete;
protected:
std::shared_ptr<ProxyServer::LinkedSession> get_proxy_session();
virtual void print_prompt();
virtual void execute_command(const std::string& command);
};