diff options
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r-- | doc/libmicrohttpd.texi | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index 7ad26155..dcfbfc9d 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi | |||
@@ -2394,13 +2394,13 @@ information about a daemon is desired. | |||
2394 | Request information about the key size for a particular cipher | 2394 | Request information about the key size for a particular cipher |
2395 | algorithm. The cipher algorithm should be passed as an extra argument | 2395 | algorithm. The cipher algorithm should be passed as an extra argument |
2396 | (of type 'enum MHD_GNUTLS_CipherAlgorithm'). No longer supported, | 2396 | (of type 'enum MHD_GNUTLS_CipherAlgorithm'). No longer supported, |
2397 | using this value will cause MHD_get_daemon_info to return NULL. | 2397 | using this value will cause @code{MHD_get_daemon_info} to return NULL. |
2398 | 2398 | ||
2399 | @item MHD_DAEMON_INFO_MAC_KEY_SIZE | 2399 | @item MHD_DAEMON_INFO_MAC_KEY_SIZE |
2400 | Request information about the key size for a particular cipher | 2400 | Request information about the key size for a particular cipher |
2401 | algorithm. The cipher algorithm should be passed as an extra argument | 2401 | algorithm. The cipher algorithm should be passed as an extra argument |
2402 | (of type 'enum MHD_GNUTLS_HashAlgorithm'). No longer supported, | 2402 | (of type 'enum MHD_GNUTLS_HashAlgorithm'). No longer supported, |
2403 | using this value will cause MHD_get_daemon_info to return NULL. | 2403 | using this value will cause @code{MHD_get_daemon_info} to return NULL. |
2404 | 2404 | ||
2405 | @item MHD_DAEMON_INFO_LISTEN_FD | 2405 | @item MHD_DAEMON_INFO_LISTEN_FD |
2406 | @cindex listen | 2406 | @cindex listen |
@@ -2415,12 +2415,26 @@ No extra arguments should be passed. | |||
2415 | Request the file-descriptor number that MHD is using for epoll. If | 2415 | Request the file-descriptor number that MHD is using for epoll. If |
2416 | the build is not supporting epoll, NULL is returned; if we are using a | 2416 | the build is not supporting epoll, NULL is returned; if we are using a |
2417 | thread pool or this daemon was not started with | 2417 | thread pool or this daemon was not started with |
2418 | MHD_USE_EPOLL_LINUX_ONLY, (a pointer to) -1 is returned. If we are | 2418 | @code{MHD_USE_EPOLL_LINUX_ONLY}, (a pointer to) -1 is returned. If we are |
2419 | using MHD_USE_SELECT_INTERNALLY or are in 'external' select mode, the | 2419 | using @code{MHD_USE_SELECT_INTERNALLY} or are in 'external' select mode, the |
2420 | internal epoll FD is returned. This function must be used in external | 2420 | internal epoll FD is returned. This function must be used in external |
2421 | select mode with epoll to obtain the FD to call epoll on. No extra | 2421 | select mode with epoll to obtain the FD to call epoll on. No extra |
2422 | arguments should be passed. | 2422 | arguments should be passed. |
2423 | 2423 | ||
2424 | @item MHD_DAEMON_INFO_CURRENT_CONNECTIONS | ||
2425 | @cindex connection, limiting number of connections | ||
2426 | Request the number of current connections handled by the daemon. No | ||
2427 | extra arguments should be passed and a pointer to a @code{union | ||
2428 | MHD_DaemonInfo} value is returned, with the @code{num_connections} | ||
2429 | member of type @code{unsigned int} set to the number of active | ||
2430 | connections. | ||
2431 | |||
2432 | Note that in multi-threaded or internal-select mode, the real number of current | ||
2433 | connections may already be different when @code{MHD_get_daemon_info} returns. | ||
2434 | The number of current connections can be used (even in multi-threaded and | ||
2435 | internal-select mode) after @code{MHD_quiesce_daemon} to detect whether all | ||
2436 | connections have been handled. | ||
2437 | |||
2424 | @end table | 2438 | @end table |
2425 | @end deftp | 2439 | @end deftp |
2426 | 2440 | ||