Skip to content

eat-swap/http-eater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

Simple socket usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published