ngx_socket.c revision e18a033b
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
5 */
6
7
8#include <ngx_config.h>
9#include <ngx_core.h>
10
11
12int
13ngx_nonblocking(ngx_socket_t s)
14{
15    unsigned long  nb = 1;
16
17    return ioctlsocket(s, FIONBIO, &nb);
18}
19
20
21int
22ngx_blocking(ngx_socket_t s)
23{
24    unsigned long  nb = 0;
25
26    return ioctlsocket(s, FIONBIO, &nb);
27}
28
29
30int
31ngx_tcp_push(ngx_socket_t s)
32{
33    return 0;
34}
35