qmetrics.net

libevent

Cross-platform asynchronous event notification library

libevent screenshot

libevent runs callbacks on file descriptors, timeouts, and signals for event-driven network servers. It wraps epoll, kqueue, poll, and other OS mechanisms behind one dispatch API.

Overview

libevent is an event notification library for C programs that need non-blocking I/O and timers. Applications register events and call event dispatch so the loop can wake on socket readiness, timeouts, or signals without rewriting the loop for each platform.

It supports several kernel interfaces—including epoll, kqueue, /dev/poll, poll, and POSIX or Windows select—and keeps the public API separate from the backend so ports can gain new mechanisms with library updates. The design targets portable, scalable server development and multi-threaded use either with per-thread event bases or locked shared bases.

Beyond the core loop, libevent includes buffered network I/O (bufferevents) with sockets, filters, rate limiting, SSL, zero-copy sendfile-style paths, and Windows IOCP. Higher-level modules cover DNS, HTTP, and a minimal RPC framework. Documentation spans a manual, a Programming with Libevent book, and versioned API references.

The authors report builds on Linux, BSD, macOS, Solaris, Windows, and other platforms. Stable and alpha release tarballs are distributed from the project site; vcpkg also packages libevent on Windows-oriented workflows.

Key features

  • Unified event dispatch API
  • epoll, kqueue, poll, select backends
  • Timeout and signal callbacks
  • Buffered network I/O layer
  • Built-in HTTP and DNS support
  • SSL and rate-limited bufferevents
  • Multi-threaded event base patterns
  • Portable C server development

Use cases

  • Event-driven TCP servers
  • Non-blocking network clients
  • Timer-driven daemons
  • HTTP services on libevent
  • Replacing hand-rolled select loops

Tags

Similar software

Netty

Event-driven Java framework for protocol servers and clients

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

★ 35.1k⟳ todayApache-2.0

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

WebRTC

Pure Go WebRTC stack for real-time media

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

★ 16.9k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

★ 14.4k⟳ 2 days agoApache-2.0