libevent

libevent
Developer(s) Azat Khuzhin, Nick Mathewson, Niels Provos
Initial release April 9, 2002 (2002-04-09)
Stable release
2.0.22 / January 5, 2015 (2015-01-05)
Preview release
2.1.5 (beta) / January 5, 2015 (2015-01-05)
Repository github.com/libevent/libevent
Written in C
Operating system Cross-platform
Platform Unix-like, Windows, OS X
Type Network Library
License BSD
Website libevent.org

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, select(), poll(2), epoll(4) 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 Nick Mathewson.[2] It is released under a BSD license.[3]

Notable applications

Some of the notable applications that take advantage of libevent are:

Alternatives

Major version releases

References

  1. http://libevent.org/ Libevent web page
  2. Mathewson, Nick. "Nick Mathewson". Nick Mathewson's Homepage. Retrieved 10 January 2015.
  3. http://www.monkey.org/~provos/libevent/LICENSE License of libevent

External links

This article is issued from Wikipedia - version of the 4/5/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.