diff options
Diffstat (limited to 'doc/chapters/largerpost.inc')
-rw-r--r-- | doc/chapters/largerpost.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/chapters/largerpost.inc b/doc/chapters/largerpost.inc index 11479382..681550ce 100644 --- a/doc/chapters/largerpost.inc +++ b/doc/chapters/largerpost.inc | |||
@@ -95,9 +95,9 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
95 | const char *url, | 95 | const char *url, |
96 | const char *method, const char *version, | 96 | const char *method, const char *version, |
97 | const char *upload_data, | 97 | const char *upload_data, |
98 | size_t *upload_data_size, void **con_cls) | 98 | size_t *upload_data_size, void **req_cls) |
99 | { | 99 | { |
100 | if (NULL == *con_cls) | 100 | if (NULL == *req_cls) |
101 | { | 101 | { |
102 | struct connection_info_struct *con_info; | 102 | struct connection_info_struct *con_info; |
103 | 103 | ||
@@ -120,7 +120,7 @@ the addition of a filepointer for each connection. | |||
120 | } | 120 | } |
121 | else con_info->connectiontype = GET; | 121 | else con_info->connectiontype = GET; |
122 | 122 | ||
123 | *con_cls = (void*) con_info; | 123 | *req_cls = (void*) con_info; |
124 | 124 | ||
125 | return MHD_YES; | 125 | return MHD_YES; |
126 | } | 126 | } |
@@ -179,7 +179,7 @@ constituted no expected request method. | |||
179 | @verbatim | 179 | @verbatim |
180 | if (0 == strcmp (method, "POST")) | 180 | if (0 == strcmp (method, "POST")) |
181 | { | 181 | { |
182 | struct connection_info_struct *con_info = *con_cls; | 182 | struct connection_info_struct *con_info = *req_cls; |
183 | 183 | ||
184 | if (0 != *upload_data_size) | 184 | if (0 != *upload_data_size) |
185 | { | 185 | { |
@@ -284,10 +284,10 @@ The new client was registered when the postprocessor was created. Likewise, we u | |||
284 | on destroying the postprocessor when the request is completed. | 284 | on destroying the postprocessor when the request is completed. |
285 | @verbatim | 285 | @verbatim |
286 | void request_completed (void *cls, struct MHD_Connection *connection, | 286 | void request_completed (void *cls, struct MHD_Connection *connection, |
287 | void **con_cls, | 287 | void **req_cls, |
288 | enum MHD_RequestTerminationCode toe) | 288 | enum MHD_RequestTerminationCode toe) |
289 | { | 289 | { |
290 | struct connection_info_struct *con_info = *con_cls; | 290 | struct connection_info_struct *con_info = *req_cls; |
291 | 291 | ||
292 | if (NULL == con_info) return; | 292 | if (NULL == con_info) return; |
293 | 293 | ||
@@ -303,7 +303,7 @@ void request_completed (void *cls, struct MHD_Connection *connection, | |||
303 | } | 303 | } |
304 | 304 | ||
305 | free (con_info); | 305 | free (con_info); |
306 | *con_cls = NULL; | 306 | *req_cls = NULL; |
307 | } | 307 | } |
308 | @end verbatim | 308 | @end verbatim |
309 | @noindent | 309 | @noindent |