diff options
Diffstat (limited to 'src/microhttpd/mhd_sockets.h')
-rw-r--r-- | src/microhttpd/mhd_sockets.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h index 9be34144..8663edd3 100644 --- a/src/microhttpd/mhd_sockets.h +++ b/src/microhttpd/mhd_sockets.h | |||
@@ -194,6 +194,19 @@ | |||
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | 196 | ||
197 | #if defined(TCP_CORK) | ||
198 | /** | ||
199 | * Value of TCP_CORK or TCP_NOPUSH | ||
200 | */ | ||
201 | #define MHD_TCP_CORK_NOPUSH TCP_CORK | ||
202 | #elif defined(TCP_NOPUSH) | ||
203 | /** | ||
204 | * Value of TCP_CORK or TCP_NOPUSH | ||
205 | */ | ||
206 | #define MHD_TCP_CORK_NOPUSH TCP_NOPUSH | ||
207 | #endif /* TCP_NOPUSH */ | ||
208 | |||
209 | |||
197 | /** | 210 | /** |
198 | * MHD_SCKT_OPT_BOOL_ is type for bool parameters for setsockopt()/getsockopt() | 211 | * MHD_SCKT_OPT_BOOL_ is type for bool parameters for setsockopt()/getsockopt() |
199 | */ | 212 | */ |
@@ -736,6 +749,16 @@ int | |||
736 | MHD_socket_noninheritable_ (MHD_socket sock); | 749 | MHD_socket_noninheritable_ (MHD_socket sock); |
737 | 750 | ||
738 | 751 | ||
752 | /** | ||
753 | * Change socket buffering mode to default. | ||
754 | * | ||
755 | * @param sock socket to manipulate | ||
756 | * @return non-zero if succeeded, zero otherwise | ||
757 | */ | ||
758 | int | ||
759 | MHD_socket_buffering_reset_ (MHD_socket sock); | ||
760 | |||
761 | |||
739 | #if defined(SOL_SOCKET) && defined(SO_NOSIGPIPE) | 762 | #if defined(SOL_SOCKET) && defined(SO_NOSIGPIPE) |
740 | static const int _MHD_socket_int_one = 1; | 763 | static const int _MHD_socket_int_one = 1; |
741 | /** | 764 | /** |