aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index f3950e39..882431a4 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -2138,6 +2138,18 @@ and then call @code{gnutls_certificate_get_peers()}.
2138Returns information about @code{struct MHD_Daemon} which manages 2138Returns information about @code{struct MHD_Daemon} which manages
2139this connection. 2139this connection.
2140 2140
2141@item MHD_CONNECTION_INFO_CONNECTION_FD
2142Returns the file descriptor (usually a TCP socket) associated with
2143this connection (in the ``connect-fd'' member of the returned struct).
2144Note that manipulating the descriptor directly can have problematic
2145consequences (as in, break HTTP). Applications might use this access
2146to manipulate TCP options, for example to set the ``TCP-NODELAY''
2147option for COMET-like applications. Note that MHD will set TCP-CORK
2148after sending the HTTP header and clear it after finishing the footers
2149automatically (if the platform supports it). As the connection
2150callbacks are invoked in between, those might be used to set different
2151values for TCP-CORK and TCP-NODELAY in the meantime.
2152
2141@end table 2153@end table
2142@end deftp 2154@end deftp
2143 2155