How xreveres/libwt works
libwt is a Linux C++ WebTransport datagram server, with an optional Node.js API. The main workflow is a client connecting over QUIC/HTTP/3, the server handling a WebTransport CONNECT request and admission decision, then exposing an accepted session for datagram exchange. The graph includes the documented Node.js event path, certificate rotation, and statistics. Some internal protocol dispatch details are not established by the sampled excerpts, so those links are omitted rather than inferred.
Main entry points: Server.hpp C++ Server API · Server.cpp Server Lifecycle · Connection.cpp QUIC Connection · addon.cpp Node Native Addon
Components 15
Application APIs
- C++ Server API
include/libwt/Server.hpp - Datagram Session
src/Connection.cpp
Server Runtime
- Server Lifecycle
src/Server.cpp - QUIC Listener
src/Server.cpp - QUIC Connection
src/Connection.cpp
HTTP3 Protocol
- HTTP3 Processing
src/Http3Protocol.cpp - HTTP3 Utilities
src/Http3Utils.cpp - Protocol Definitions
src/Http3Utils.hpp - QPACK Header Decode
src/QpackUtils.cpp
Node.js Binding
- Node.js API
bindings/node/index.js - Node Native Addon
bindings/node/addon.cpp
Statistics
- Server Counters
src/Statistics.hpp - Statistics API
include/libwt/Statistics.hpp
Other components
- WebTransport Client
- C++ Application
Connections 12
- WebTransport Client → QUIC Listener: connects over QUIC
README.md - C++ Application → C++ Server API: configures
README.md - C++ Server API → Server Lifecycle: starts server
src/Server.cpp - Server Lifecycle → QUIC Listener: starts listener
src/Server.cpp - QUIC Listener → QUIC Connection: creates connection
src/Server.cpp - QUIC Connection → Datagram Session: opens session
src/Connection.cpp - WebTransport Client → HTTP3 Processing: sends CONNECT
README.md - C++ Application → Datagram Session: exchanges datagrams
README.md - Node.js API → Node Native Addon: calls native methods
bindings/node/index.js - Node Native Addon → C++ Server API: creates native server
bindings/node/addon.cpp - C++ Server API → Statistics API: returns statistics
include/libwt/Server.hpp - Server Lifecycle → Server Counters: snapshots counters
src/Server.cpp