Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 511 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 511 Bytes

HttpEater

Description

Simple demo utilising socket.

  • Listens TCP port 80
  • Responds everything with HTTP response {"status":"ok"}
  • Lightweight, multithreading, and (nearly) cross-platform

Running

To run (take Linux as example):

mkdir build
cd build
cmake ../src
./HttpEater

Compile-time controls

  • Define NO_PRINT to inhibit printing detailed request.
  • Define DISABLE_MULTI_THREADING to use single thread.

Notes

You may need a compiler supporting C++20 to compile.