summaryrefslogtreecommitdiff
path: root/src/commandHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandHandler.hpp')
-rw-r--r--src/commandHandler.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commandHandler.hpp b/src/commandHandler.hpp
index 78ab2e5..8d97fd5 100644
--- a/src/commandHandler.hpp
+++ b/src/commandHandler.hpp
@@ -3,6 +3,7 @@
#include <any>
#include <functional>
#include <memory>
+#include <netinet/in.h>
#include <string>
#include <vector>
@@ -32,6 +33,7 @@ class CCommandHandler {
// return false if command struct is invalid
bool registerCommand(const SCommand &command);
SResult newCommand(const std::string &command, const std::string &args) const;
+ void handleCommand(std::string input, const char ip[INET_ADDRSTRLEN] = {}) const;
template <typename T>
struct SMakeCommandArgs {