summaryrefslogtreecommitdiff
path: root/ev.pod
diff options
context:
space:
mode:
authorroot <root>2009-08-19 23:44:51 +0000
committerroot <root>2009-08-19 23:44:51 +0000
commit7e01fd517f7b34988d3438bdde655b75c389de2d (patch)
treea3d40ab1d554899ad553eb38c35d59d0866b01cc /ev.pod
parent72dedbe4624c9dfb3b928a1c3e2d4d5c23bb144c (diff)
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r--ev.pod16
1 files changed, 15 insertions, 1 deletions
diff --git a/ev.pod b/ev.pod
index 31aa6b6..00dde2e 100644
--- a/ev.pod
+++ b/ev.pod
@@ -3665,7 +3665,7 @@ C<_get_osfhandle> on the fd to convert it to an OS handle. Otherwise,
it is assumed that all these functions actually work on fds, even
on win32. Should not be defined on non-win32 platforms.
-=item EV_FD_TO_WIN32_HANDLE
+=item EV_FD_TO_WIN32_HANDLE(fd)
If C<EV_SELECT_IS_WINSOCKET> is enabled, then libev needs a way to map
file descriptors to socket handles. When not defining this symbol (the
@@ -3673,6 +3673,20 @@ default), then libev will call C<_get_osfhandle>, which is usually
correct. In some cases, programs use their own file descriptor management,
in which case they can provide this function to map fds to socket handles.
+=item EV_WIN32_HANDLE_TO_FD(handle)
+
+If C<EV_SELECT_IS_WINSOCKET> then libev maps handles to file descriptors
+using the standard C<_open_osfhandle> function. For programs implementing
+their own fd to handle mapping, overwriting this function makes it easier
+to do so. This can be done by defining this macro to an appropriate value.
+
+=item EV_WIN32_CLOSE_FD(fd)
+
+If programs implement their own fd to handle mapping on win32, then this
+macro can be used to override the C<close> function, useful to unregister
+file descriptors again. Note that the replacement function has to close
+the underlying OS handle.
+
=item EV_USE_POLL
If defined to be C<1>, libev will compile in support for the C<poll>(2)