summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 8b800dd957950539520b8ead8a2acc10fb5834bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "chatServer.hpp"

// TODO: ARGC, ARGV. the CServer ctor should take a port number
int main() {
  g_pChatServer = std::make_unique<CChatServer>();
  g_pChatServer->start();

  // died
  g_pChatServer->cleanup();
  g_pChatServer.reset();

  return 0;
}