summaryrefslogtreecommitdiff
path: root/src/core/chatServer.hpp
blob: 806030a128963fcf7f6931d7e78346b292e8bb40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "../misc/memory.hpp"
#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 UP<CChatServer> g_pChatServer;