BSD Ports

devel/libevent 2.1.13 NetBSD

Asynchronous event notification library

System
NetBSD
Repository
pkgsrc
License
modified-bsd
Categories
devel
Package size
298.7 KiB, 2324.2 KiB installed

Description

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 asynchronous event loop found in event driven network servers. An application just needs to call event_dispatch() and can then add or remove events dynamically without having to change the event loop.

Currently, libevent supports /dev/poll, kqueue(2), event ports, select(2), 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.

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.

In the other systems

SystemPortVersion
NetBSDdevel/libevent2.1.13
FreeBSDdevel/libevent2.1.13
OpenBSDdevel/libevent22.1.13
DragonFlydevel/libevent2.1.12
MidnightBSDdevel/libevent2.1.12_1
HardenedBSDdevel/libevent2.1.13
GhostBSDdevel/libevent2.1.13
OPNsensedevel/libevent2.1.12

Install

Binary package:

pkgin install libevent

From pkgsrc:

cd /usr/pkgsrc/devel/libevent && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_642.1.13
NetBSD 10.1 aarch642.1.12nb2
SmartOS / illumos x86_642.1.13
macOS 15 arm642.1.13

Dependencies