From 880b6a9275030515e11fdfeb3b6fc074bca9322d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 9 Mar 2025 13:03:17 +0800 Subject: sessionManager: run in a jthread, for prep of inputManager refactor(main)!: move main infra to oop chatServer --- src/chatServer.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/chatServer.hpp (limited to 'src/chatServer.hpp') diff --git a/src/chatServer.hpp b/src/chatServer.hpp new file mode 100644 index 0000000..7109593 --- /dev/null +++ b/src/chatServer.hpp @@ -0,0 +1,15 @@ +#include + +class CChatServer { +public: + CChatServer(); + ~CChatServer(); + void start(); + void cleanup(); +private: + void initManagers(); + void initServer(); +}; + +inline std::unique_ptr g_pChatServer; + -- cgit v1.2.3