diff options
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r-- | doc/libmicrohttpd.texi | 12 |
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()}. | |||
2138 | Returns information about @code{struct MHD_Daemon} which manages | 2138 | Returns information about @code{struct MHD_Daemon} which manages |
2139 | this connection. | 2139 | this connection. |
2140 | 2140 | ||
2141 | @item MHD_CONNECTION_INFO_CONNECTION_FD | ||
2142 | Returns the file descriptor (usually a TCP socket) associated with | ||
2143 | this connection (in the ``connect-fd'' member of the returned struct). | ||
2144 | Note that manipulating the descriptor directly can have problematic | ||
2145 | consequences (as in, break HTTP). Applications might use this access | ||
2146 | to manipulate TCP options, for example to set the ``TCP-NODELAY'' | ||
2147 | option for COMET-like applications. Note that MHD will set TCP-CORK | ||
2148 | after sending the HTTP header and clear it after finishing the footers | ||
2149 | automatically (if the platform supports it). As the connection | ||
2150 | callbacks are invoked in between, those might be used to set different | ||
2151 | values for TCP-CORK and TCP-NODELAY in the meantime. | ||
2152 | |||
2141 | @end table | 2153 | @end table |
2142 | @end deftp | 2154 | @end deftp |
2143 | 2155 | ||