Libev Clarification Question

Marc Lehmann schmorp at
Mon Nov 4 13:27:01 CET 2013

On Sun, Nov 03, 2013 at 07:11:53PM -0700, Matthew Kettlewell <matt at> wrote:
> So does libev just replace the polling & master/worker thread portion?  Or
> can it handle the socket/listen/bind as well...

Neither, libev is, kind of, a glorified select or poll, plus realtime and
monotonic timer management (plus a bit of waitpid, sigaction and stat

> I'm only going to be using this on Linux, so not sure if libev is right
> for me, or if it's better just to institute some epoll code...

If you can handle the complexity and design bugs of epoll and don't need
timers or the other features, there is nothng wrong with using epoll

> Are there any existing web servers that are using libev as a foundation
> that I can peek at?

Probably, have you tried google? :)

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list