libevent
1.1、libevent简介
是什么 ?:an event notification library which 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.
开发语言:C
官方主页:https://libevent.org
源码仓库:https://github.com/libevent/libevent
1.2、通过包管理器安装libevent
操作系统包管理器安装命令
Allvcpkg
vcpkg install libevent
vcpkg install libevent:x64-osx
vcpkg install libevent:x64-linux
vcpkg install libevent:x64-windows
macOSHomeBrewbrew install libevent
GNU/LinuxHomeBrewbrew install libevent
aptsudo apt-get install -y libevent
CentOSyumsudo yum install -y libevent
dnfsudo dnf install -y libevent
openSUSEzyppersudo zypper install -y libevent
Alpine Linuxapksudo apk add libevent

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libevent
Gentoo LinuxPortagesudo emerge libevent
1.3、通过编译源码安装libevent
1.4、libevent中包含的头文件
1.5、libevent中包含的库文件
  • libevent.{a | so | dylib}
  • libevent_core.{a | so | dylib}
  • libevent_extra.{a | so | dylib}
  • libevent_openssl.{a | so | dylib}
  • libevent_pthreads.{a | so | dylib}