summaryrefslogtreecommitdiffhomepage
path: root/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'server.h')
-rw-r--r--server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.h b/server.h
index 11a8826..096f7f6 100644
--- a/server.h
+++ b/server.h
@@ -4,6 +4,7 @@
#include "config.h"
#include "plugin.h"
+#include "statistics.h"
using namespace std::string_literals;
@@ -15,11 +16,12 @@ protected:
boost::asio::io_context& m_ioc;
const Socket& m_socket;
plugins_container_type& m_plugins;
+ Statistics& m_statistics;
public:
static const std::string VersionString;
- Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& m_plugins);
+ Server(Config& config, boost::asio::io_context& ioc, const Socket& socket, plugins_container_type& plugins, Statistics& statistics);
virtual ~Server();
virtual int start() = 0;
@@ -28,6 +30,7 @@ public:
Config& GetConfig();
const Socket& GetSocket();
plugin_type GetPlugin(const std::string& name);
+ Statistics& GetStatistics();
};
int run_server(Config& config, plugins_container_type& plugins);