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; }