arknet is a general-purpose C++20 header-only networking library for clients and servers using TCP, UDP, RUDP, WebSocket, HTTP and TLS, with native MySQL and Redis clients. It combines CRTP endpoints with reusable components, supports IPv4 and IPv6, and runs on Boost.Asio by default or Standalone Asio for supported capabilities.
Get started
Install and configure
Dependencies, CMake and direct-header integration.
First client and server
Build and verify a TCP echo.
The CMake interface target supplies headers, compile settings and dependencies; arknet has no compiled library.
Features
| Capability | Use it for | Start here |
|---|---|---|
| TCP | Ordered streams with application-defined message boundaries | TCP |
| UDP | Native datagrams and endpoint-based sessions | UDP |
| RUDP | Reliable, ordered messages over UDP with ARQ and optional FEC | RUDP |
| WebSocket / WSS | Complete messages and HTTP Upgrade | WebSocket |
| HTTP / HTTPS | HTTP/1.1 requests, responses, routing and middleware | HTTP |
| TLS / mTLS | Encrypted transport and certificate verification | TLS |
| MySQL | Native queries, prepared parameters, transactions and exclusive leases | MySQL |
| Redis | Binary-safe RESP2/RESP3 commands, pipelines and exclusive leases | Redis |
Transport guides include client and server programs; service guides cover clients and pools. Each guide records configuration, limits and performance. Capabilities and support records dependencies and planned features.
Build with arknet
Core concepts
Endpoints, IO models, lifecycle and owned sends.
Guides
Socket buffers, external IO, reconnect, timers, routing and IPv6.
Examples
Complete programs and build commands.
Reference
Public types, common operations and configuration.
Measure and contribute
Performance provides local results with throughput, RTT, CPU utilization, measurement conditions and scope. Testing records correctness checks and their coverage.
Project covers architecture, contribution guidelines and the roadmap. HTTP/2, HTTP/3, named pipes, Unix domain sockets and RPC remain TODO. Release notes cover published tags; current-main documentation and test scopes are identified separately. Deployment capacity and endurance are covered by production acceptance.
Source · BSL-1.0 · Third-party notices
Where to go next
Install and configure
Dependencies, build options and your first application.
Network features
Choose a protocol and build its client and server.
Core concepts
Understand sessions, IO models and lifecycle.
Practical guides
Configure buffers, reconnect, timers and routing.
API reference
Look up public types, options and errors.
Performance and tests
Compare throughput, latency and CPU utilization.