Dev/C, C++
Simple Http Server
newtype
2017. 6. 8. 08:46
SimpleHttpServer
자세한 소스는 github을 참고하세요.
https://github.com/lmk/SimpleHttpServer
- very simple http server
- default port: 8080
- modify source here
- support: linux g++ 4.9.2
How to use
block server
HttpServer httpServer;
httpServer.Init(5, NULL);
httpServer.Run();
non-block
NBHttpServer* httpServer = NBHttpServer::getInstance();
httpServer->Init(5);
httpServer->Start();
sleep(60);
httpServer->Stop();
반응형