X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/bd14babf134e551f28f49193bf20705933c772c8..73861ad6c4342633fff7dcd5913bcaa2749dba09:/ev.pod?ds=sidebyside diff --git a/ev.pod b/ev.pod index 43db80f..6e39af3 100644 --- a/ev.pod +++ b/ev.pod @@ -4,10 +4,12 @@ libev - a high performance full-featured event loop written in C =head1 SYNOPSIS - /* this is the only header you need */ #include - /* what follows is a fully working example program */ +=head1 EXAMPLE PROGRAM + + #include + ev_io stdin_watcher; ev_timer timeout_watcher; @@ -48,8 +50,12 @@ libev - a high performance full-featured event loop written in C =head1 DESCRIPTION +The newest version of this document is also available as a html-formatted +web page you might find easier to navigate when reading it for the first +time: L. + Libev is an event loop: you register interest in certain events (such as a -file descriptor being readable or a timeout occuring), and it will manage +file descriptor being readable or a timeout occurring), and it will manage these event sources and provide your program with events. To do this, it must take more or less complete control over your process @@ -63,23 +69,29 @@ watcher. =head1 FEATURES -Libev supports select, poll, the linux-specific epoll and the bsd-specific -kqueue mechanisms for file descriptor events, relative timers, absolute -timers with customised rescheduling, signal events, process status change -events (related to SIGCHLD), and event watchers dealing with the event -loop mechanism itself (idle, prepare and check watchers). It also is quite -fast (see this L comparing -it to libevent for example). +Libev supports C