WebServer

A C++ Lightweight Web Server based on Linux epoll

MIT License

Stars
604

A C++ Lightweight Web Server

WebGETHEAD: Reactor+

: http://how2cs.cn:8080/


Part Part

  • : Ubuntu 16.04

  • : g++ 5.4

  • : git

  • : cmake

  • : CLion

  • : Vim

  • WebBench

Usage

cmake . && make 

./webserver [-f config_file] 

config.ini

  • HTTP HTTP GETHEAD

  • HTTPhandler

  • priority queue

  • epoll + IO + (ET) Reactor

  • epollEPOLLONESHOTsocket

  • RAII(pthrea_mutex_t) (pthread_cond_t)RAII

  • shared_ptrweak_ptr

  • jsonnginx
  • CGI
  • nginx