예제 #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;
}
예제 #2
0
파일: main.cpp 프로젝트: yzqcode/WebServer
int main(int argc, char *argv[])
{
    BaseServer* b = new BaseServer();
    b->run("0.0.0.0",80);
}