aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-04 16:15:47 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-04 16:15:47 +0300
commit7c5b14acec6ca88e19113084f41611705e36cac4 (patch)
tree50aa5b958200e595c5934374a66eae764303d64e /src/microhttpd/daemon.c
parent61b997d944dc45a698850191ba6679c12898005f (diff)
downloadlibmicrohttpd-7c5b14acec6ca88e19113084f41611705e36cac4.tar.gz
libmicrohttpd-7c5b14acec6ca88e19113084f41611705e36cac4.zip
Doxy: finally clarified how to work with callbacks
Clarified doxy descriptions for the key callback AccessHandlerCallback, MHD_queue_response(), and MHD_suspend_connection()
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 0ff7bffc..32334621 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3126,14 +3126,13 @@ internal_suspend_connection_ (struct MHD_Connection *connection)
3126 3126
3127 3127
3128/** 3128/**
3129 * Suspend handling of network data for a given connection. This can 3129 * Suspend handling of network data for a given connection.
3130 * be used to dequeue a connection from MHD's event loop (external 3130 * This can be used to dequeue a connection from MHD's event loop
3131 * select, internal select or thread pool; not applicable to 3131 * (not applicable to thread-per-connection!) for a while.
3132 * thread-per-connection!) for a while.
3133 * 3132 *
3134 * If you use this API in conjunction with a internal select or a 3133 * If you use this API in conjunction with an "internal" socket polling,
3135 * thread pool, you must set the option #MHD_USE_ITC to 3134 * you must set the option #MHD_USE_ITC to ensure that a resumed
3136 * ensure that a resumed connection is immediately processed by MHD. 3135 * connection is immediately processed by MHD.
3137 * 3136 *
3138 * Suspended connections continue to count against the total number of 3137 * Suspended connections continue to count against the total number of
3139 * connections allowed (per daemon, as well as per IP, if such limits 3138 * connections allowed (per daemon, as well as per IP, if such limits
@@ -3155,6 +3154,8 @@ internal_suspend_connection_ (struct MHD_Connection *connection)
3155 * daemon's select()/poll()/etc. 3154 * daemon's select()/poll()/etc.
3156 * 3155 *
3157 * @param connection the connection to suspend 3156 * @param connection the connection to suspend
3157 *
3158 * @sa #MHD_AccessHandlerCallback
3158 */ 3159 */
3159void 3160void
3160MHD_suspend_connection (struct MHD_Connection *connection) 3161MHD_suspend_connection (struct MHD_Connection *connection)