Skip to content
arknet

arknet

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

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

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

Navigation

Type to search…

↑↓ navigate↵ selectEsc close