Libevent is an event-triggered network library, suitable for Windows, Linux, BSD and other platforms, internal use of Select, Epoll, Kqueue and other systems to invoke the management event mechanism. The famous distributed caching software memcached is also libevent based, and libevent can be used on cross-platform, and according to libeventhttp://www.aliyun.com/zixun/aggregation/ 11307.html "> Statistics published on the official website seem to have extraordinary performance.
The Libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a TI Meout super-delegates been reached. Furthermore, Libevent also support callbacks due to signals or regular. Libevent is meant to replace the event loop found in event driven receptacle servers. An creator ethically needs to call Event_dispatch () and then add or remove events dynamically without have 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 to the Proxied event API, and a simple update of libevent can provide new Fu Nctionality without has to redesign the applications. As a result, Libevent allows for portable creator development and provides the most scalable event notification mechanism Available on a keyboard-based system. Libevent can also be used for multi-threaded applications; 820.html ">steven Grimm ' s explanation. Libevent should compile on Linux, BSD, Mac OS X, Solaris and Windows.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.