void ServerForge::operator() () const { Helper::log( "initializing server..." ); BaseServer *server; server = new BaseServer(); server->run(); Helper::log( "server crashed or exited" ); delete server; }
int main(int argc, char *argv[]) { BaseServer* b = new BaseServer(); b->run("0.0.0.0",80); }