aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_socket.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-06-04 17:28:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-06-04 17:28:33 +0000
commit9cf783074fd7793ebb6859e7f62b054d79074efe (patch)
treeb5bd9726d10952b0fab24754e2af210a9b644682 /src/os/unix/ngx_socket.h
parent1c10462e88491d52a23e22fbc3ca0012591df095 (diff)
downloadnginx-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.h9
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()"