generated from administrator/template_project
1.1 KiB
1.1 KiB
test_server
A C++ HTTP server using the PIP library.
Build & Run
mkdir build && cd build
cmake ..
make
./test_server
Key Facts
- C++ Standard: C++11 (enforced)
- Build System: CMake (generates
compile_commands.jsonautomatically) - Build Directory:
/build(ignored in git) - Entrypoint:
src/main.cpp
Dependencies
The project uses a custom PIP C++ library (not Python pip). Required components:
PIP::Console- Console output (piCout)PIP::HTTPServer- HTTP server functionalityPIP::IOUtils- I/O utilitiesPIP::ClientServer- Client/server infrastructure
Code Style
- Formatter: clang-format (config in
.clang-format) - Indent: Tabs, width 4
- Column Limit: 140 characters
- Encoding: UTF-8
Run formatter:
clang-format -i src/*.cpp src/*.h
Architecture
The server creates a PIKbdListener that:
- Captures F10 key press for graceful exit
- Starts an HTTP server (address printed on startup)
- Waits for exit signal via
WAIT_FOR_EXITmacro
Notes
- Qt Creator is the primary IDE (
.qtcreator/config present) - No tests or CI configured