From 6f7b994684032060f0a2d7af82f4f3572293b8d6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 12 Jun 2025 21:41:41 +0800 Subject: internal!: organized internal structure, using cmake now --- src/core/chatServer.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/core/chatServer.hpp (limited to 'src/core/chatServer.hpp') 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 +#include + +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 g_pChatServer; -- cgit v1.2.3