Sign in
nginx
/
nginx
/
b14169a714bb3deeb7f4912a58238f7a54aeecd1
/
.
/
src
/
os
/
win32
/
ngx_socket.c
blob: e3f6f5c9687aee752bee2c2f404370ba2d71b472 [
file
] [
log
] [
blame
]
#include
<ngx_config.h>
#include
<ngx_core.h>
int
ngx_nonblocking
(
ngx_socket_t
s
)
{
unsigned
long
nb
=
1
;
return
ioctlsocket
(
s
,
FIONBIO
,
&
nb
);
}
int
ngx_blocking
(
ngx_socket_t
s
)
{
unsigned
long
nb
=
0
;
return
ioctlsocket
(
s
,
FIONBIO
,
&
nb
);
}