C++多线程简易http服务器
├── CMakeLists.txt
├── README.md
├── html
│ ├── error
│ │ ├── 400.html
│ │ └── 404.html
│ ├── index.html
│ └── index.json
├── init
│ └── init.h
├── mthread
│ └── semaphore.h
├── server.cpp
└── utils
├── logs
├── output
└── timestamp
基于Socket
socket->bind->listen->accept->read/write->close
mkdir build
cd build
cmake ..
make
./SimpleHTTPServer 8000 ../html
Or
./make.sh
cd build
./build/SimpleHTTPServer 8000 ../html