A simple HTTP server implemented in C++ using raw sockets.
- CMake (version 3.16 or higher)
- C++17 compatible compiler (e.g., g++)
- Clone or navigate to the project directory.
- Create a build directory:
mkdir build cd build - Generate build files with CMake:
cmake .. - Build the project:
make
After building, run the server executable:
./server
src/main.cpp: Entry point of the application.src/server.cpp: Implementation of the Server class.include/server.hpp: Header file for the Server class.CMakeLists.txt: CMake build configuration.
This is a basic implementation for educational purposes. It does not handle multiple concurrent connections efficiently and lacks advanced HTTP features like routing, headers parsing, etc.