libhv is a high-performance C/C++ network library and event-driven I/O framework used to build TCP, UDP, SSL, HTTP, WebSocket, and MQTT clients and servers. It provides a non-blocking event loop for managing network sockets, timers, and system signals across multiple threads.
The project is distinguished by its integrated support for specialized network roles, including a full HTTP web server with RESTful routing and middleware, an MQTT messaging client for IoT communication, and the ability to implement SOCKS5 and HTTP proxies. It also features a reliable UDP implementation to ensure ordered packet delivery and congestion control over connectionless transport.
Broad capabilities include asynchronous network programming with multi-threaded event loops, transport-layer encryption via SSL/TLS, and protocol-agnostic packet unpacking. The library also covers structured data parsing for JSON and INI formats, static file serving, and the management of bidirectional real-time communication.