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 event loop found in event driven network servers. An application just needs to call event_dispatch() and then add or remove events dynamically without having to change the event loop. 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. As a result, Libevent allows for portable application development and provides the most scalable event notification mechanism available on an operating system. Libevent can also be used for multi-threaded applications, either by isolating each event_base so that only a single thread accesses it, or by locked access to a single shared event_base.

Features

  • Libevent should compile on Linux, BSD, Mac OS X, Solaris, Windows
  • Libevent additionally provides a sophisticated framework for buffered network IO
  • Libevent includes support for several useful protocols
  • Support for sockets, filters, rate-limiting, SSL, and zero-copy file transmission
  • A mailing list for libevent is now available
  • The libevent port in vcpkg is kept up to date by Microsoft team members and community contributors

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

BSD License

Follow libevent

libevent Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libevent!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Libraries

Registered

2021-07-30