diff options
Diffstat (limited to 'src/microhttpd/response.h')
-rw-r--r-- | src/microhttpd/response.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/response.h b/src/microhttpd/response.h index ce7e131c..3f4717de 100644 --- a/src/microhttpd/response.h +++ b/src/microhttpd/response.h | |||
@@ -40,15 +40,15 @@ MHD_increment_response_rc (struct MHD_Response *response); | |||
40 | * We are done sending the header of a given response | 40 | * We are done sending the header of a given response |
41 | * to the client. Now it is time to perform the upgrade | 41 | * to the client. Now it is time to perform the upgrade |
42 | * and hand over the connection to the application. | 42 | * and hand over the connection to the application. |
43 | * @remark To be called only from thread that process connection's | ||
44 | * recv(), send() and response. Must be called right after sending | ||
45 | * response headers. | ||
43 | * | 46 | * |
44 | * @param response the response that was created for an upgrade | 47 | * @param response the response that was created for an upgrade |
45 | * @param connection the specific connection we are upgrading | 48 | * @param connection the specific connection we are upgrading |
46 | * @return #MHD_YES on success, #MHD_NO on failure (will cause | 49 | * @return #MHD_YES on success, #MHD_NO on failure (will cause |
47 | * connection to be closed) | 50 | * connection to be closed) |
48 | */ | 51 | */ |
49 | // FIXME: This function will need to be called at the right place(s) | ||
50 | // in the connection processing (just after we are done sending the header) | ||
51 | // (for responses that have the 'upgrade_header' callback set). | ||
52 | int | 52 | int |
53 | MHD_response_execute_upgrade_ (struct MHD_Response *response, | 53 | MHD_response_execute_upgrade_ (struct MHD_Response *response, |
54 | struct MHD_Connection *connection); | 54 | struct MHD_Connection *connection); |