ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.413 by root, Fri May 4 20:50:02 2012 UTC vs.
Revision 1.417 by root, Sun May 6 19:29:59 2012 UTC

82 82
83=head1 WHAT TO READ WHEN IN A HURRY 83=head1 WHAT TO READ WHEN IN A HURRY
84 84
85This manual tries to be very detailed, but unfortunately, this also makes 85This manual tries to be very detailed, but unfortunately, this also makes
86it very long. If you just want to know the basics of libev, I suggest 86it very long. If you just want to know the basics of libev, I suggest
87reading L</ANATOMY OF A WATCHER>, then the L<E/XAMPLE PROGRAM> above and 87reading L</ANATOMY OF A WATCHER>, then the L</EXAMPLE PROGRAM> above and
88look up the missing functions in L</GLOBAL FUNCTIONS> and the C<ev_io> and 88look up the missing functions in L</GLOBAL FUNCTIONS> and the C<ev_io> and
89C<ev_timer> sections in L</WATCHER TYPES>. 89C<ev_timer> sections in L</WATCHER TYPES>.
90 90
91=head1 ABOUT LIBEV 91=head1 ABOUT LIBEV
92 92
2858 2858
2859This mode of operation can be useful together with an C<ev_check> watcher, 2859This mode of operation can be useful together with an C<ev_check> watcher,
2860to do something on each event loop iteration - for example to balance load 2860to do something on each event loop iteration - for example to balance load
2861between different connections. 2861between different connections.
2862 2862
2863See L<< /Abusing an C<ev_check> watcher for its side-effect >> for a longer 2863See L</Abusing an ev_check watcher for its side-effect> for a longer
2864example. 2864example.
2865 2865
2866=head3 Watcher-Specific Functions and Data Members 2866=head3 Watcher-Specific Functions and Data Members
2867 2867
2868=over 4 2868=over 4
4238 4238
4239Brian Maher has written a partial interface to libev for lua (at the 4239Brian Maher has written a partial interface to libev for lua (at the
4240time of this writing, only C<ev_io> and C<ev_timer>), to be found at 4240time of this writing, only C<ev_io> and C<ev_timer>), to be found at
4241L<http://github.com/brimworks/lua-ev>. 4241L<http://github.com/brimworks/lua-ev>.
4242 4242
4243=item Javascript
4244
4245Node.js (L<http://nodejs.org>) uses libev as the underlying event library.
4246
4247=item Others
4248
4249There are others, and I stopped counting.
4250
4243=back 4251=back
4244 4252
4245 4253
4246=head1 MACRO MAGIC 4254=head1 MACRO MAGIC
4247 4255
4545 4553
4546If programs implement their own fd to handle mapping on win32, then this 4554If programs implement their own fd to handle mapping on win32, then this
4547macro can be used to override the C<close> function, useful to unregister 4555macro can be used to override the C<close> function, useful to unregister
4548file descriptors again. Note that the replacement function has to close 4556file descriptors again. Note that the replacement function has to close
4549the underlying OS handle. 4557the underlying OS handle.
4558
4559=item EV_USE_WSASOCKET
4560
4561If defined to be C<1>, libev will use C<WSASocket> to create its internal
4562communication socket, which works better in some environments. Otherwise,
4563the normal C<socket> function will be used, which works better in other
4564enviornments.
4550 4565
4551=item EV_USE_POLL 4566=item EV_USE_POLL
4552 4567
4553If defined to be C<1>, libev will compile in support for the C<poll>(2) 4568If defined to be C<1>, libev will compile in support for the C<poll>(2)
4554backend. Otherwise it will be enabled on non-win32 platforms. It 4569backend. Otherwise it will be enabled on non-win32 platforms. It

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines