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
最新推荐文章于 2025-04-30 19:27:50 发布