summaryrefslogtreecommitdiff
path: root/src/chatServer.hpp
blob: f6ebb2394540b27e27a35e91fc4b0a1e3232fff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;