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.
1 Download
http://monkey.org/~provos/libevent/
2 Installation
tar xvf libevent-2.0.7-rc.tar.gz
cd libevent-2.0.7-rc
./configure --enable-shared
make
sudo make install
3 Configuration
Open file /etc/ld.so.conf and add a line
/usr/local/lib
sudo ldconfig
libevent
最新推荐文章于 2021-03-21 00:48:26 发布
本文介绍了libevent API的功能及用途,并提供了详细的下载、安装步骤。同时,文章还指导如何通过配置让系统识别已安装的libevent库。
566

被折叠的 条评论
为什么被折叠?



