diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-12 21:23:17 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:44:59 +0800 |
| commit | 03bce7d61a64fce9c54ae25e2e2a8543d82cc3bc (patch) | |
| tree | a18a96b0b81b79509ec7358668e5bce5758ebf30 /src/chatServer.hpp | |
| parent | 9a73401361f8be274536164d42ba10ace050f982 (diff) | |
feat!: require arg for server port
Diffstat (limited to 'src/chatServer.hpp')
| -rw-r--r-- | src/chatServer.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chatServer.hpp b/src/chatServer.hpp index 9aac157..f6ebb23 100644 --- a/src/chatServer.hpp +++ b/src/chatServer.hpp @@ -3,14 +3,17 @@ class CChatServer { public: - CChatServer(); + CChatServer(uint16_t port); ~CChatServer(); void start(); void cleanup(); private: + uint16_t m_port; + void initManagers(); void initServer(); + std::jthread m_sessionManagerThread; }; |
