diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-09 13:03:17 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:44:57 +0800 |
| commit | 880b6a9275030515e11fdfeb3b6fc074bca9322d (patch) | |
| tree | 7679d12347beac15c91f050748c211ccf8bd556b /src/chatServer.hpp | |
| parent | 694dd95da005d09962fec05ee48c8e985782671b (diff) | |
sessionManager: run in a jthread, for prep of inputManager
refactor(main)!: move main infra to oop chatServer
Diffstat (limited to 'src/chatServer.hpp')
| -rw-r--r-- | src/chatServer.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <memory> + +class CChatServer { +public: + CChatServer(); + ~CChatServer(); + void start(); + void cleanup(); +private: + void initManagers(); + void initServer(); +}; + +inline std::unique_ptr<CChatServer> g_pChatServer; + |
