diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-08-20 14:48:28 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-08-20 14:48:28 +0000 |
commit | 2b54238a5f2edcca568c0676a779ef79ba152c91 (patch) | |
tree | 2cb7eb660e691eaab2c4f031adf881b7c88bffc9 /src/os/win32/ngx_socket.c | |
parent | e0af1b89dcd100462a3195534b2f78a838ca85b5 (diff) | |
download | nginx-2b54238a5f2edcca568c0676a779ef79ba152c91.tar.gz nginx-2b54238a5f2edcca568c0676a779ef79ba152c91.zip |
nginx-0.0.1-2002-08-20-18:48:28 import
Diffstat (limited to 'src/os/win32/ngx_socket.c')
-rw-r--r-- | src/os/win32/ngx_socket.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/os/win32/ngx_socket.c b/src/os/win32/ngx_socket.c index 590eb08e7..d0e547ca6 100644 --- a/src/os/win32/ngx_socket.c +++ b/src/os/win32/ngx_socket.c @@ -1,8 +1,8 @@ -#include <nxg_config.h> +#include <ngx_config.h> -#include <nxg_log.h> -#include <nxg_errno.h> -#include <nxg_socket.h> +#include <ngx_log.h> +#include <ngx_errno.h> +#include <ngx_socket.h> void ngx_init_sockets(ngx_log_t *log) @@ -12,6 +12,8 @@ void ngx_init_sockets(ngx_log_t *log) if (WSAStartup(MAKEWORD(2,2), &wsd) != 0) ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno, "ngx_init_sockets: WSAStartup failed"); + + /* get AcceptEx(), TransmitFile() functions */ } int ngx_nonblocking(ngx_socket_t s) @@ -20,3 +22,10 @@ int ngx_nonblocking(ngx_socket_t s) return ioctlsocket(s, FIONBIO, &nb); } + +int ngx_blocking(ngx_socket_t s) +{ + unsigned long nb = 0; + + return ioctlsocket(s, FIONBIO, &nb); +} |