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

Comparing libev/ev.pod (file contents):
Revision 1.262 by root, Sat Jul 25 10:14:34 2009 UTC vs.
Revision 1.264 by root, Wed Aug 19 23:44:51 2009 UTC

3407=item Ocaml 3407=item Ocaml
3408 3408
3409Erkki Seppala has written Ocaml bindings for libev, to be found at 3409Erkki Seppala has written Ocaml bindings for libev, to be found at
3410L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>. 3410L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>.
3411 3411
3412=item Lua
3413
3414Brian Maher has written a partial interface to libev
3415for lua (only C<ev_io> and C<ev_timer>), to be found at
3416L<http://github.com/brimworks/lua-ev>.
3417
3412=back 3418=back
3413 3419
3414 3420
3415=head1 MACRO MAGIC 3421=head1 MACRO MAGIC
3416 3422
3657be used is the winsock select). This means that it will call 3663be used is the winsock select). This means that it will call
3658C<_get_osfhandle> on the fd to convert it to an OS handle. Otherwise, 3664C<_get_osfhandle> on the fd to convert it to an OS handle. Otherwise,
3659it is assumed that all these functions actually work on fds, even 3665it is assumed that all these functions actually work on fds, even
3660on win32. Should not be defined on non-win32 platforms. 3666on win32. Should not be defined on non-win32 platforms.
3661 3667
3662=item EV_FD_TO_WIN32_HANDLE 3668=item EV_FD_TO_WIN32_HANDLE(fd)
3663 3669
3664If C<EV_SELECT_IS_WINSOCKET> is enabled, then libev needs a way to map 3670If C<EV_SELECT_IS_WINSOCKET> is enabled, then libev needs a way to map
3665file descriptors to socket handles. When not defining this symbol (the 3671file descriptors to socket handles. When not defining this symbol (the
3666default), then libev will call C<_get_osfhandle>, which is usually 3672default), then libev will call C<_get_osfhandle>, which is usually
3667correct. In some cases, programs use their own file descriptor management, 3673correct. In some cases, programs use their own file descriptor management,
3668in which case they can provide this function to map fds to socket handles. 3674in which case they can provide this function to map fds to socket handles.
3675
3676=item EV_WIN32_HANDLE_TO_FD(handle)
3677
3678If C<EV_SELECT_IS_WINSOCKET> then libev maps handles to file descriptors
3679using the standard C<_open_osfhandle> function. For programs implementing
3680their own fd to handle mapping, overwriting this function makes it easier
3681to do so. This can be done by defining this macro to an appropriate value.
3682
3683=item EV_WIN32_CLOSE_FD(fd)
3684
3685If programs implement their own fd to handle mapping on win32, then this
3686macro can be used to override the C<close> function, useful to unregister
3687file descriptors again. Note that the replacement function has to close
3688the underlying OS handle.
3669 3689
3670=item EV_USE_POLL 3690=item EV_USE_POLL
3671 3691
3672If defined to be C<1>, libev will compile in support for the C<poll>(2) 3692If defined to be C<1>, libev will compile in support for the C<poll>(2)
3673backend. Otherwise it will be enabled on non-win32 platforms. It 3693backend. Otherwise it will be enabled on non-win32 platforms. It

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines