├── .gitignore ├── .vscode └── settings.json ├── CMakeLists.txt ├── Inc ├── CommonHead.h ├── DaemonRun.h ├── Epoll.h ├── HttpData.h ├── HttpParse.h ├── HttpRequest.h ├── HttpResponse.h ├── HttpServer.h ├── MathFunctions.h ├── Socket.h ├── ThreadPool.h ├── Timer.h └── Utils.h ├── LICENSE ├── README.md └── Src ├── DaemonRun.cpp ├── Epoll.cpp ├── HttpData.cpp ├── HttpParse.cpp ├── HttpRequest.cpp ├── HttpResponse.cpp ├── HttpServer.cpp ├── MathFunctions.cpp ├── Socket.cpp ├── ThreadPool.cpp ├── Timer.cpp ├── Utils.cpp └── main.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | *.o -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /Inc/CommonHead.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/CommonHead.h -------------------------------------------------------------------------------- /Inc/DaemonRun.h: -------------------------------------------------------------------------------- 1 | // 2 | // 守护进程创建 3 | // 4 | 5 | #pragma once 6 | void daemon_run(); -------------------------------------------------------------------------------- /Inc/Epoll.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/Epoll.h -------------------------------------------------------------------------------- /Inc/HttpData.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/HttpData.h -------------------------------------------------------------------------------- /Inc/HttpParse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/HttpParse.h -------------------------------------------------------------------------------- /Inc/HttpRequest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/HttpRequest.h -------------------------------------------------------------------------------- /Inc/HttpResponse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/HttpResponse.h -------------------------------------------------------------------------------- /Inc/HttpServer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/HttpServer.h -------------------------------------------------------------------------------- /Inc/MathFunctions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/MathFunctions.h -------------------------------------------------------------------------------- /Inc/Socket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/Socket.h -------------------------------------------------------------------------------- /Inc/ThreadPool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/ThreadPool.h -------------------------------------------------------------------------------- /Inc/Timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/Timer.h -------------------------------------------------------------------------------- /Inc/Utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Inc/Utils.h -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/README.md -------------------------------------------------------------------------------- /Src/DaemonRun.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/DaemonRun.cpp -------------------------------------------------------------------------------- /Src/Epoll.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/Epoll.cpp -------------------------------------------------------------------------------- /Src/HttpData.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/HttpData.cpp -------------------------------------------------------------------------------- /Src/HttpParse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/HttpParse.cpp -------------------------------------------------------------------------------- /Src/HttpRequest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/HttpRequest.cpp -------------------------------------------------------------------------------- /Src/HttpResponse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/HttpResponse.cpp -------------------------------------------------------------------------------- /Src/HttpServer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/HttpServer.cpp -------------------------------------------------------------------------------- /Src/MathFunctions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/MathFunctions.cpp -------------------------------------------------------------------------------- /Src/Socket.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/Socket.cpp -------------------------------------------------------------------------------- /Src/ThreadPool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/ThreadPool.cpp -------------------------------------------------------------------------------- /Src/Timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/Timer.cpp -------------------------------------------------------------------------------- /Src/Utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/Utils.cpp -------------------------------------------------------------------------------- /Src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KongJHong/CPPServer/HEAD/Src/main.cpp --------------------------------------------------------------------------------