libevent
DevelopersAzat Khuzhin, Mark Ellzey, Nick Mathewson, Niels Provos
Initial releaseApril 9, 2002; 24 years ago (2002-04-09)
Stable release
2.1.12 / July 5, 2020; 5 years ago (2020-07-05)[1]
Written inC
Operating systemCross-platform
PlatformUnix-like, Windows, OS X
TypeNetwork Library
LicenseBSD[2]
Websitelibevent.org
Repository

libevent is a software library that provides asynchronous event notification. The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. libevent also supports callbacks triggered by signals and regular timeouts.

libevent is meant to replace the event loop found in event-driven network servers. An application can just call event_dispatch() and then add or remove events dynamically without having to change the event loop.

Currently, libevent supports /dev/poll, kqueue(2), POSIX select(2), Windows IOCP, poll(2), epoll(7) and Solaris event ports. It also has experimental support for real-time signals. The exposed event API is uniform over all of the supported platforms. As a result, libevent allows for portable application development and provides "the most scalable event notification mechanism available on an operating system".[1]

Using callbacks on signals, libevent makes it possible to write "secure" signal handlers as none of the user supplied signal handling code runs in the signal's context.

libevent was created by Niels Provos, and is maintained primarily by Azat Khuzhin. It is released under a BSD license.[3]

Notable applications

edit

Some of the notable applications that take advantage of libevent are:[4]

  • Chromium: Google's open-source web browser
  • memcached: a high-performance, distributed memory object caching system
  • Transmission: a fast, easy, and free BitTorrent client
  • NTP: the network time protocol that makes your clock right (uses libevent in SNTP)
  • tmux: a terminal multiplexer
  • Tor: an anonymous Internet communication system

Alternatives

edit

Major version releases

edit
  • libevent 2.1 was released on April 3, 2012.[5]
  • libevent 2.0 was released on April 17, 2009.[5]
  • libevent 1.4 was released on November 11, 2007.[5]
  • libevent 1.3 was released on February 15, 2007.[5]
  • libevent 1.2 was released on October 15, 2006.[5]
  • libevent 1.1 was released on May 14, 2005.[5]

References

edit
  1. ^ a b "libevent – an event notification library". libevent.org. Retrieved 17 September 2021.
  2. ^ "LICENSE". Github. Retrieved 30 August 2019.
  3. ^ http://www.monkey.org/~provos/libevent/LICENSE License of libevent
  4. ^ "An Event Notification Library, Programs using libevent". libevent.org. Retrieved 2026-01-01.
  5. ^ a b c d e f "Old releases". libevent.org. Retrieved 2025-11-13.{{cite web}}: CS1 maint: url-status (link)
edit

📚 Artikel Terkait di Wikipedia

Nick Mathewson

with sending out security patches. He is also the primary maintainer for libevent, an event notification library used by some prominent applications like

Remote procedure call

invocation through an intermediate layer called the object request broker. Libevent provides a framework for creating RPC servers and clients. Windows Communication

C (programming language)

Libavcodec Libavdevice Libavfilter Libavformat Libpcap Libdca Libdvdcss libevent libffi Libgegl libgcrypt Libgimp Libhybris Libinput libjpeg libLAS Libmpcodecs

Memcached

systems (Linux and macOS) and on Microsoft Windows. It depends on the libevent library. Memcached's APIs provide a large hash table distributed across

Vert.x

for JavaScript, Twisted for Python, Perl Object Environment for Perl, libevent for C, reactPHP and amphp for PHP and EventMachine for Ruby. Vert.x was

The C Programming Language

Libavcodec Libavdevice Libavfilter Libavformat Libpcap Libdca Libdvdcss libevent libffi Libgegl libgcrypt Libgimp Libhybris Libinput libjpeg libLAS Libmpcodecs

Libuv

which became the logo of the library. Free and open-source software portal libevent Reactor pattern libuv. "Release v1.52.1: 2026.03.06, Version 1.52.1 (Stable)

Niels Provos

function. He is the author of numerous software packages, including the libevent event driven programming system, the Systrace access control system, the