A lightweight C++ network library based on the concurrent Reactor model, with io_uring support and a set of runnable demos.
cmake -S . -B build
cmake --build build -jOptional Release build:
cmake -S . -B build_release -DCMAKE_BUILD_TYPE=Release
cmake --build build_release -jNotes:
- Requires a C++17 compiler, CMake, and liburing.
- RPC demo uses protobuf.
- You can tune io_uring entries with
TAOTU_IORING_ENTRIESif memory is tight.
Binaries are placed under build/output/bin (or build_release/output/bin). Each demo has its own README under example/.
Example:
cd build/output/bin
./simple_echo 4567 4High-level flow:
- Create an
EventManager(or a pool of them). - Create
Server/Clientor demo-specific wrappers. - Register callbacks for connection/message/write/close events.
- Start the event loop.
The example/ directory contains minimal servers/clients showing common patterns.
