aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-15 20:06:09 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-15 20:06:09 +0300
commit64b53a4e7c904a7dd9ce03e38bae75edd06902b5 (patch)
tree0ef64b5ba58c3c0e339e47ee23471febe22ddc4d /src/examples
parente264d9ec9ef98e6f26f5f547ec941927a35ffa56 (diff)
downloadlibmicrohttpd-64b53a4e7c904a7dd9ce03e38bae75edd06902b5.tar.gz
libmicrohttpd-64b53a4e7c904a7dd9ce03e38bae75edd06902b5.zip
Added more comments for start upgrade callback function.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/upgrade_example.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c
index 7a893d2f..af081408 100644
--- a/src/examples/upgrade_example.c
+++ b/src/examples/upgrade_example.c
@@ -158,6 +158,9 @@ run_usock (void *cls)
158 * but instead use #MHD_upgrade_action() for special operations 158 * but instead use #MHD_upgrade_action() for special operations
159 * on @a sock. 159 * on @a sock.
160 * 160 *
161 * Data forwarding to "upgraded" @a sock will be started as soon
162 * as this function return.
163 *
161 * Except when in 'thread-per-connection' mode, implementations 164 * Except when in 'thread-per-connection' mode, implementations
162 * of this function should never block (as it will still be called 165 * of this function should never block (as it will still be called
163 * from within the main event loop). 166 * from within the main event loop).
@@ -225,6 +228,11 @@ uh_cb (void *cls,
225 a clean shutdown, as the we stop the daemon even if a worker thread 228 a clean shutdown, as the we stop the daemon even if a worker thread
226 is still running. Alas, this is a simple example... */ 229 is still running. Alas, this is a simple example... */
227 pthread_detach (pt); 230 pthread_detach (pt);
231
232 /* This callback must return as soon as possible. */
233
234 /* Data forwarding to "upgraded" socket will be started
235 * after return from this callback. */
228} 236}
229 237
230 238