Overview

libevent is a cross platform library that abstracts out the different notification APIs (specifically, /dev/poll, kqueue(2), event ports, select(2), poll(2) and epoll(4)). It also supports triggering events due to timeouts or signals.

Case Studies

Gotchas

  • Your struct event objects need to remain valid after you've added them, so be careful about putting them on the stack.
  • According to the libev developers, timer support in libevent is not as efficient as libev. See these benchmarks, and this list of other differences.

Tips & Tricks

Alternatives

Other Resources

 
libevent.txt · Last modified: 2010/06/06 11:10 by twk
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki