libevent

Rating: 
3.666665
Your rating: None Average: 3.7 (3 votes)

libevent – an event notification library

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. Furthermore, libevent also support callbacks due to signals or regular timeouts.

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

Currently, libevent supports /dev/poll, kqueue(2), event ports, POSIX select(2), Windows select(), poll(2), and epoll(4). The internal event mechanism is completely independent of the exposed event API, and a simple update of libevent can provide new functionality without having to redesign the applications. As a result, Libevent allows for portable application development and provides the most scalable event notification mechanism available on an operating system. Libevent can also be used for multi-threaded applications, either by isolating each event_base so that only a single thread accesses it, or by locked access to a single shared event_base. Libevent should compile on Linux, *BSD, Mac OS X, Solaris, Windows, and more.

Libevent additionally provides a sophisticated framework for buffered network IO, with support for sockets, filters, rate-limiting, SSL, zero-copy file transmission, and IOCP. Libevent includes support for several useful protocols, including DNS, HTTP, and a minimal RPC framework.

More information about event notification mechanisms for network servers can be found on Dan Kegel's "The C10K problem" web page.

A mailing list for libevent is now available. Libevent is maintained by Nick Mathewson, Azat Khuzhin and Niels Provos.

http://libevent.org/

Category:

Keywords:

Application versions: 
AttachmentSizeDate
File libevent-2.1.8-1.armv7hl.rpm2.2 MB11/01/2018 - 02:57
File libevent-2.1.11-1.armv7hl.rpm2.61 MB12/06/2020 - 02:49
File libevent-2.1.11-2.armv7hl.rpm2.61 MB15/06/2020 - 01:00
Changelog: 

* 2.1.11 (libevent 2.1.11) compiled for SailfishOS 3.x (armv7hl)

  - FIXED RPM "provides" list to make it compatible with Kabouik's tmux package.

* 2.1.11 (libevent 2.1.11) compiled for SailfishOS 3.x (armv7hl)

* 2.1.8 (libevent 2.1.8) compiled for SailfishOS 2.x (armv7hl)

Comments

Kabouik's picture

Hey, thanks for updating libevent. However, the version you packaged does not include libevent-2.0.so.5, as opposed to the libevent package NielDK uplodaded. Do you think you could update the package with it? libevent-2.0.so.5 is required by the latest tmux update for instance, which was packaged for SFOS using the latest upstream version. The package just requires libevent >= 2.0, so it's not particularly specific, but tmux itself needs libevent-2.0.so.5 specifically. I have tried making a symbolic link between libevent.so from your package and libevent-2.0.so.5 before installing tmux, but that doesn't work.

pamoedo's picture

I have replied you also in the telegram-cli comments. I have tested myself latest tmux-3.1b with this latest libevent-2.1.11 and it works without any issue.

https://openrepos.net/content/pamoedo/tmux