very simple http server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.md

README.md

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();