summaryrefslogtreecommitdiff
path: root/src/chatServer.hpp
blob: 9aac157978da3d73ff4a30116d9f57b7afa17030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <memory>
#include <thread>

class CChatServer {
  public:
	CChatServer();
	~CChatServer();
	void start();
	void cleanup();

  private:
	void		 initManagers();
	void		 initServer();
	std::jthread m_sessionManagerThread;
};

inline std::unique_ptr<CChatServer> g_pChatServer;