aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-28 11:39:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-28 11:39:38 +0000
commitd1d5bf7cb9e99860fb0e9657b36436ac48690dbb (patch)
treefb10800c57a379129a1e1387646e4b641e25ae71 /doc
parent54f9e798f2123d22c284f5ce55524018c8dea098 (diff)
downloadlibmicrohttpd-d1d5bf7cb9e99860fb0e9657b36436ac48690dbb.tar.gz
libmicrohttpd-d1d5bf7cb9e99860fb0e9657b36436ac48690dbb.zip
-introduce MHD_UNSIGNED_LONG_LONG, deprecate MHD_LONG_LONG, check for invalid options on start, document
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/sessions.c2
-rw-r--r--doc/libmicrohttpd.texi43
2 files changed, 32 insertions, 13 deletions
diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c
index 5961037a..63abfc27 100644
--- a/doc/examples/sessions.c
+++ b/doc/examples/sessions.c
@@ -683,7 +683,7 @@ main (int argc, char *const *argv)
683 fd_set ws; 683 fd_set ws;
684 fd_set es; 684 fd_set es;
685 int max; 685 int max;
686 unsigned MHD_LONG_LONG mhd_timeout; 686 MHD_UNSIGNED_LONG_LONG mhd_timeout;
687 687
688 if (argc != 2) 688 if (argc != 2)
689 { 689 {
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index f9b99bea..fed59f3b 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -262,20 +262,32 @@ ignore_sigpipe ()
262} 262}
263@end verbatim 263@end verbatim
264 264
265@section MHD_LONG_LONG 265@section MHD_UNSIGNED_LONG_LONG
266@cindex long long 266@cindex long long
267@cindex MHD_LONG_LONG
267@cindex IAR 268@cindex IAR
268@cindex ARM 269@cindex ARM
269@cindex cortex m3 270@cindex cortex m3
270@cindex embedded systems 271@cindex embedded systems
271 272
272Some platforms do not support @code{long long}. Hence MHD defines 273Some platforms do not support @code{long long}. Hence MHD defines a
273a macro @code{MHD_LONG_LONG} which will default to @code{long long}. 274macro @code{MHD_UNSIGNED LONG_LONG} which will default to
274If your platform does not support @code{long long}, you should 275@code{unsigned long long}. For standard desktop operating systems,
275change "platform.h" to define @code{MHD_LONG_LONG} to an appropriate 276this is all you need to know.
276alternative type and also define @code{MHD_LONG_LONG_PRINTF} to the 277
277corresponding format string for printing such a data type (without 278However, if your platform does not support @code{unsigned long long},
278the percent sign). 279you should change "platform.h" to define @code{MHD_LONG_LONG} and
280@code{MHD_UNSIGNED_LONG_LONG} to an appropriate alternative type and
281also define @code{MHD_LONG_LONG_PRINTF} and
282@code{MHD_UNSIGNED_LONG_LONG_PRINTF} to the corresponding format
283string for printing such a data type. Note that the ``signed''
284versions are deprecated. Also, for historical reasons,
285@code{MHD_LONG_LONG_PRINTF} is without the percent sign, whereas
286@code{MHD_UNSIGNED_LONG_LONG_PRINTF} is with the percent sign. Newly
287written code should only use the unsigned versions. However, you need
288to define both in "platform.h" if you need to change the definition
289for the specific platform.
290
279 291
280@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 292@c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
281 293
@@ -311,7 +323,11 @@ compiled with messages enabled. This is done by default except you ran
311configure with the @code{--disable-messages} flag set. 323configure with the @code{--disable-messages} flag set.
312 324
313@item MHD_USE_SSL 325@item MHD_USE_SSL
314Run in https mode (this option may not work with all threading modes yet). 326@cindex TLS
327@cindex SSL
328Run in HTTPS-mode. If you specify @code{MHD_USE_SSL} and MHD was
329compiled without SSL support, @code{MHD_start_daemon} will return
330NULL.
315 331
316@item MHD_USE_THREAD_PER_CONNECTION 332@item MHD_USE_THREAD_PER_CONNECTION
317Run using one thread per connection. 333Run using one thread per connection.
@@ -322,7 +338,8 @@ Run using an internal thread doing @code{SELECT}.
322@item MHD_USE_IPv6 338@item MHD_USE_IPv6
323@cindex IPv6 339@cindex IPv6
324Run using the IPv6 protocol (otherwise, MHD will just support IPv4). 340Run using the IPv6 protocol (otherwise, MHD will just support IPv4).
325 341If you specify @code{MHD_USE_IPV6} and the local platform does not
342support it, @code{MHD_start_daemon} will return NULL.
326 343
327@item MHD_USE_PEDANTIC_CHECKS 344@item MHD_USE_PEDANTIC_CHECKS
328Be pedantic about the protocol (as opposed to as tolerant as possible). 345Be pedantic about the protocol (as opposed to as tolerant as possible).
@@ -339,7 +356,9 @@ production.
339@cindex select 356@cindex select
340Use poll instead of select. This allows sockets with descriptors 357Use poll instead of select. This allows sockets with descriptors
341@code{>= FD_SETSIZE}. This option only works in conjunction with 358@code{>= FD_SETSIZE}. This option only works in conjunction with
342@code{MHD_USE_THREAD_PER_CONNECTION} (at this point). 359@code{MHD_USE_THREAD_PER_CONNECTION} (at this point). If you
360specify @code{MHD_USE_POLL} and the local platform does not support
361it, @code{MHD_start_daemon} will return NULL.
343 362
344@item MHD_SUPPRESS_DATE_NO_CLOCK 363@item MHD_SUPPRESS_DATE_NO_CLOCK
345@cindex date 364@cindex date
@@ -581,7 +600,7 @@ Number (unsigned int) of threads in thread pool. Enable
581thread pooling by setting this value to to something 600thread pooling by setting this value to to something
582greater than 1. Currently, thread model must be 601greater than 1. Currently, thread model must be
583MHD_USE_SELECT_INTERNALLY if thread pooling is enabled 602MHD_USE_SELECT_INTERNALLY if thread pooling is enabled
584(MHD_start_daemon returns @code{NULL} for an unsupported thread 603(@code{MHD_start_daemon} returns @code{NULL} for an unsupported thread
585model). 604model).
586 605
587@item MHD_OPTION_ARRAY 606@item MHD_OPTION_ARRAY