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