diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-04 17:28:33 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-04 17:28:33 +0000 |
commit | 9cf783074fd7793ebb6859e7f62b054d79074efe (patch) | |
tree | b5bd9726d10952b0fab24754e2af210a9b644682 /src/os/unix/ngx_socket.h | |
parent | 1c10462e88491d52a23e22fbc3ca0012591df095 (diff) | |
download | nginx-9cf783074fd7793ebb6859e7f62b054d79074efe.tar.gz nginx-9cf783074fd7793ebb6859e7f62b054d79074efe.zip |
nginx-0.0.1-2003-06-04-21:28:33 import
Diffstat (limited to 'src/os/unix/ngx_socket.h')
-rw-r--r-- | src/os/unix/ngx_socket.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os/unix/ngx_socket.h b/src/os/unix/ngx_socket.h index cee1f4aeb..2a412d377 100644 --- a/src/os/unix/ngx_socket.h +++ b/src/os/unix/ngx_socket.h @@ -13,7 +13,7 @@ typedef int ngx_socket_t; #define ngx_socket_n "socket()" -#if 1 +#if (HAVE_FIONBIO) int ngx_nonblocking(ngx_socket_t s); int ngx_blocking(ngx_socket_t s); @@ -28,6 +28,13 @@ int ngx_blocking(ngx_socket_t s); #endif +int ngx_tcp_nopush(ngx_socket_t s); +#define ngx_tcp_nopush_n "setsockopt(TCP_NOPUSH)" + +int ngx_tcp_push(ngx_socket_t s); +#define ngx_tcp_push_n "setsockopt(!TCP_NOPUSH)" + + #define ngx_shutdown_socket shutdown #define ngx_shutdown_socket_n "shutdown()" |