C++ coroutine with epoll
Use C++20 coroutine to have async accept / recv / send operation
Exemple echo server with in the main.cc
Purpose
Learning coroutine.
Inspired by:
TODO / Improvement
- catch sigint + destroy coroutine
- move semantic on socket accept (RVO ?)
- handling error
- clean (remove logging, ...)
test with ab
- start:
- ./main or ./epweb-dk
- test:
- ab -n 200000 -c 2 http://127.0.0.1:3090/index.html