summaryrefslogtreecommitdiff
path: root/src/core/chatServer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/chatServer.hpp')
-rw-r--r--src/core/chatServer.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/chatServer.hpp b/src/core/chatServer.hpp
new file mode 100644
index 0000000..00d2979
--- /dev/null
+++ b/src/core/chatServer.hpp
@@ -0,0 +1,20 @@
+#include <memory>
+#include <thread>
+
+class CChatServer {
+ public:
+ CChatServer(uint16_t port);
+ ~CChatServer();
+ void start();
+ void cleanup();
+
+ private:
+ uint16_t m_port;
+
+ void initManagers();
+ void initServer();
+
+ std::jthread m_sessionManagerThread;
+};
+
+inline std::unique_ptr<CChatServer> g_pChatServer;