From 00f02b19ad8ce2f8f0195d3610e06566bf68cd0c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 10 Feb 2023 19:34:47 +0100 Subject: Added connection limit --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 01310aa..ce2fceb 100644 --- a/config.h +++ b/config.h @@ -12,6 +12,7 @@ private: std::string m_listenAddress; // ip address v4/v6 int m_listenPort; int m_threads; + int m_max_connections; public: Config(const std::string& config_filename = default_config_filename); @@ -22,4 +23,6 @@ public: int getListenPort() const; int getThreads() const; + + int getMaxConnections() const; }; -- cgit v1.2.3