#include #include #include #include #include "network_manager.h" int main(int argc, char** argv) { try { /* We'll keep main thread alive while server runs in background. */ NetworkManager server; server.start(1337); while(true) { std::this_thread::sleep_for(std::chrono::seconds(1)); } } catch(const std::exception& e) { fprintf(stderr, "Main exception: %s\n", e.what()); return 1; } return 0; }