Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

libevent

From Wikipedia, the free encyclopedia
Software library
libevent
Developer(s)Azat Khuzhin, Mark Ellzey, Nick Mathewson,Niels Provos
Initial releaseApril 9, 2002; 22 years ago (2002-04-09)
Stable release
2.1.12 / July 5, 2020; 4 years ago (2020-07-05)[1]
Repository
Written inC
Operating systemCross-platform
PlatformUnix-like,Windows,OS X
TypeNetworkLibrary
LicenseBSD[2]
Websitelibevent.org

libevent is asoftware library that provides asynchronous event notification. The libeventAPI provides a mechanism to execute acallback function when a specific event occurs on afile descriptor or after atimeout has been reached. libevent also supports callbacks triggered bysignals and regular timeouts.

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

Currently, libevent supports/dev/poll,kqueue(2), POSIXselect(2), WindowsIOCP,poll(2),epoll(7) andSolarisevent 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 forportable application development and provides "the mostscalable 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'scontext.

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

Notable applications

[edit]
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(June 2013) (Learn how and when to remove this message)

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

Alternatives

[edit]

Major version releases

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

References

[edit]
  1. ^ab"libevent – an event notification library".libevent.org. Retrieved17 September 2021.
  2. ^"LICENSE".Github. Retrieved30 August 2019.
  3. ^http://www.monkey.org/~provos/libevent/LICENSE License of libevent
  4. ^"third_party/libevent - chromium/chromium - Git at Google".chromium.googlesource.com. Retrieved2023-04-30.
  5. ^"Install".GitHub. Retrieved2023-04-30.
  6. ^"tmux/README at Master - tmux/tmux - GitHub".GitHub.

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Libevent&oldid=1265145416"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp