]> git.kaiwu.me - nginx.git/commit
Win32: added WSAPoll() support.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 24 Jan 2019 18:51:21 +0000 (21:51 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 24 Jan 2019 18:51:21 +0000 (21:51 +0300)
commit40b74475d03603692e2a0f8d8391a2d5062eb718
treecee040e26a5092b9a4f520cc167131eb9befd69a
parentc6a0003af10cea67d6b6c3b087e384f79d353db3
Win32: added WSAPoll() support.

WSAPoll() is only available with Windows Vista and newer (and only
available during compilation if _WIN32_WINNT >= 0x0600).  To make
sure the code works with Windows XP, we do not redefine _WIN32_WINNT,
but instead load WSAPoll() dynamically if it is not available during
compilation.

Also, sockets are not guaranteed to be small integers on Windows.
So an index array is used instead of NGX_USE_FD_EVENT to map
events to connections.
auto/os/win32
auto/sources
src/event/modules/ngx_win32_poll_module.c [new file with mode: 0644]
src/os/win32/ngx_socket.h
src/os/win32/ngx_win32_init.c