diff options
Diffstat (limited to 'doc/microhttpd.texi')
-rw-r--r-- | doc/microhttpd.texi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/microhttpd.texi b/doc/microhttpd.texi index 65b7682b..fcc714bf 100644 --- a/doc/microhttpd.texi +++ b/doc/microhttpd.texi | |||
@@ -251,7 +251,7 @@ No more options / last option. This is used to terminate the VARARGs | |||
251 | list. | 251 | list. |
252 | 252 | ||
253 | @item MHD_OPTION_CONNECTION_MEMORY_LIMIT | 253 | @item MHD_OPTION_CONNECTION_MEMORY_LIMIT |
254 | Maximum memory size per connection (followed by an @code{unsigned int}). | 254 | Maximum memory size per connection (followed by a @code{size_t}). |
255 | 255 | ||
256 | @item MHD_OPTION_CONNECTION_LIMIT | 256 | @item MHD_OPTION_CONNECTION_LIMIT |
257 | Maximum number of concurrenct connections to accept (followed by an | 257 | Maximum number of concurrenct connections to accept (followed by an |
@@ -551,7 +551,7 @@ length of the address information. | |||
551 | @end deftypefn | 551 | @end deftypefn |
552 | 552 | ||
553 | 553 | ||
554 | @deftypefn {Function Pointer} int {*MHD_AccessHandlerCallback} (void *cls, struct MHD_Connection * connection, const char *url, const char *method, const char *version, const char *upload_data, unsigned int *upload_data_size, void **con_cls) | 554 | @deftypefn {Function Pointer} int {*MHD_AccessHandlerCallback} (void *cls, struct MHD_Connection * connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls) |
555 | Invoked in the context of a connection to answer a request from the | 555 | Invoked in the context of a connection to answer a request from the |
556 | client. This callback must call @mhd{} functions (example: the | 556 | client. This callback must call @mhd{} functions (example: the |
557 | @code{MHD_Response} ones) to provide content to give back to the client | 557 | @code{MHD_Response} ones) to provide content to give back to the client |
@@ -654,7 +654,7 @@ iteration. | |||
654 | @end deftypefn | 654 | @end deftypefn |
655 | 655 | ||
656 | 656 | ||
657 | @deftypefn {Function Pointer} int {*MHD_ContentReaderCallback} (void *cls, size_t pos, char *buf, int max) | 657 | @deftypefn {Function Pointer} int {*MHD_ContentReaderCallback} (void *cls, uint64_t pos, char *buf, int max) |
658 | Callback used by @mhd{} in order to obtain content. The callback has to | 658 | Callback used by @mhd{} in order to obtain content. The callback has to |
659 | copy at most @var{max} bytes of content into @var{buf}. The total | 659 | copy at most @var{max} bytes of content into @var{buf}. The total |
660 | number of bytes that has been placed into @var{buf} should be returned. | 660 | number of bytes that has been placed into @var{buf} should be returned. |
@@ -691,7 +691,7 @@ It should be used to free resources associated with the content reader. | |||
691 | @end deftypefn | 691 | @end deftypefn |
692 | 692 | ||
693 | 693 | ||
694 | @deftypefn {Function Pointer} int {*MHD_PostDataIterator} (void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, size_t off, size_t size) | 694 | @deftypefn {Function Pointer} int {*MHD_PostDataIterator} (void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size) |
695 | Iterator over key-value pairs where the value maybe made available in | 695 | Iterator over key-value pairs where the value maybe made available in |
696 | increments and/or may not be zero-terminated. Used for processing | 696 | increments and/or may not be zero-terminated. Used for processing |
697 | @code{POST} data. | 697 | @code{POST} data. |
@@ -1005,7 +1005,7 @@ the @code{MHD_Response} object is released. | |||
1005 | @section Creating response objects | 1005 | @section Creating response objects |
1006 | 1006 | ||
1007 | 1007 | ||
1008 | @deftypefun {struct MHD_Response *} MHD_create_response_from_callback (size_t size, unsigned int block_size, MHD_ContentReaderCallback crc, void *crc_cls, MHD_ContentReaderFreeCallback crfc) | 1008 | @deftypefun {struct MHD_Response *} MHD_create_response_from_callback (uint64_t size, size_t block_size, MHD_ContentReaderCallback crc, void *crc_cls, MHD_ContentReaderFreeCallback crfc) |
1009 | Create a response object. The response object can be extended with | 1009 | Create a response object. The response object can be extended with |
1010 | header information and then it can be used any number of times. | 1010 | header information and then it can be used any number of times. |
1011 | 1011 | ||
@@ -1167,7 +1167,7 @@ access_handler (void *cls, | |||
1167 | struct MHD_Connection * connection, | 1167 | struct MHD_Connection * connection, |
1168 | const char *url, | 1168 | const char *url, |
1169 | const char *method, const char *version, | 1169 | const char *method, const char *version, |
1170 | const char *upload_data, unsigned int *upload_data_size, | 1170 | const char *upload_data, size_t *upload_data_size, |
1171 | void **con_cls) | 1171 | void **con_cls) |
1172 | @{ | 1172 | @{ |
1173 | static int old_connection_marker; | 1173 | static int old_connection_marker; |
@@ -1195,7 +1195,7 @@ access_handler (void *cls, | |||
1195 | struct MHD_Connection * connection, | 1195 | struct MHD_Connection * connection, |
1196 | const char *url, | 1196 | const char *url, |
1197 | const char *method, const char *version, | 1197 | const char *method, const char *version, |
1198 | const char *upload_data, unsigned int *upload_data_size, | 1198 | const char *upload_data, size_t *upload_data_size, |
1199 | void **con_cls) | 1199 | void **con_cls) |
1200 | @{ | 1200 | @{ |
1201 | struct MHD_PostProcessor * pp = *con_cls; | 1201 | struct MHD_PostProcessor * pp = *con_cls; |
@@ -1234,7 +1234,7 @@ always terminate normally. | |||
1234 | 1234 | ||
1235 | 1235 | ||
1236 | 1236 | ||
1237 | @deftypefun {struct MHD_PostProcessor *} MHD_create_post_processor (struct MHD_Connection *connection, unsigned int buffer_size, MHD_PostDataIterator iterator, void *iterator_cls) | 1237 | @deftypefun {struct MHD_PostProcessor *} MHD_create_post_processor (struct MHD_Connection *connection, size_t buffer_size, MHD_PostDataIterator iterator, void *iterator_cls) |
1238 | Create a PostProcessor. A PostProcessor can be used to (incrementally) | 1238 | Create a PostProcessor. A PostProcessor can be used to (incrementally) |
1239 | parse the data portion of a @code{POST} request. | 1239 | parse the data portion of a @code{POST} request. |
1240 | 1240 | ||
@@ -1261,7 +1261,7 @@ a PP handle. | |||
1261 | @end deftypefun | 1261 | @end deftypefun |
1262 | 1262 | ||
1263 | 1263 | ||
1264 | @deftypefun int MHD_post_process (struct MHD_PostProcessor *pp, const char *post_data, unsigned int post_data_len) | 1264 | @deftypefun int MHD_post_process (struct MHD_PostProcessor *pp, const char *post_data, size_t post_data_len) |
1265 | Parse and process @code{POST} data. Call this function when @code{POST} | 1265 | Parse and process @code{POST} data. Call this function when @code{POST} |
1266 | data is available (usually during an @code{MHD_AccessHandlerCallback}) | 1266 | data is available (usually during an @code{MHD_AccessHandlerCallback}) |
1267 | with the @var{upload_data} and @var{upload_data_size}. Whenever | 1267 | with the @var{upload_data} and @var{upload_data_size}. Whenever |