aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 45476f9a..433c40eb 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -431,6 +431,9 @@ enum MHD_FLAG
431 * specify it), if 'MHD_USE_NO_LISTEN_SOCKET' is specified. In 431 * specify it), if 'MHD_USE_NO_LISTEN_SOCKET' is specified. In
432 * "external" select mode, this option is always simply ignored. 432 * "external" select mode, this option is always simply ignored.
433 * On W32 a pair of sockets is used instead of a pipe. 433 * On W32 a pair of sockets is used instead of a pipe.
434 *
435 * You must also use this option if you use internal select mode
436 * or a thread pool in conjunction with 'MHD_add_connection'.
434 */ 437 */
435 MHD_USE_PIPE_FOR_SHUTDOWN = 1024, 438 MHD_USE_PIPE_FOR_SHUTDOWN = 1024,
436 439
@@ -1208,12 +1211,16 @@ MHD_stop_daemon (struct MHD_Daemon *daemon);
1208 1211
1209 1212
1210/** 1213/**
1211 * Add another client connection to the set of connections 1214 * Add another client connection to the set of connections managed by
1212 * managed by MHD. This API is usually not needed (since 1215 * MHD. This API is usually not needed (since MHD will accept inbound
1213 * MHD will accept inbound connections on the server socket). 1216 * connections on the server socket). Use this API in special cases,
1214 * Use this API in special cases, for example if your HTTP 1217 * for example if your HTTP server is behind NAT and needs to connect
1215 * server is behind NAT and needs to connect out to the 1218 * out to the HTTP client, or if you are building a proxy.
1216 * HTTP client. 1219 *
1220 * If you use this API in conjunction with a internal select or a
1221 * thread pool, you must set the option
1222 * @code{MHD_USE_PIPE_FOR_SHUTDOWN} to ensure that the freshly added
1223 * connection is immediately processed by MHD.
1217 * 1224 *
1218 * The given client socket will be managed (and closed!) by MHD after 1225 * The given client socket will be managed (and closed!) by MHD after
1219 * this call and must no longer be used directly by the application 1226 * this call and must no longer be used directly by the application