add /y/shell-exec in HTTP server

This commit is contained in:
Martin Michelsen
2025-01-11 22:16:26 -08:00
parent 80dda2e1f9
commit b028532db3
15 changed files with 1385 additions and 1248 deletions
-8
View File
@@ -10,12 +10,6 @@
class ServerShell : public std::enable_shared_from_this<ServerShell> {
public:
class exit_shell : public std::runtime_error {
public:
exit_shell();
~exit_shell() = default;
};
explicit ServerShell(std::shared_ptr<ServerState> state);
ServerShell(const ServerShell&) = delete;
ServerShell(ServerShell&&) = delete;
@@ -25,8 +19,6 @@ public:
std::shared_ptr<ProxyServer::LinkedSession> get_proxy_session(const std::string& name);
void execute_command(const std::string& command);
protected:
std::shared_ptr<ServerState> state;
std::thread th;