aboutsummaryrefslogtreecommitdiff
path: root/doc/libmicrohttpd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libmicrohttpd.texi')
-rw-r--r--doc/libmicrohttpd.texi22
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.
2394Request information about the key size for a particular cipher 2394Request information about the key size for a particular cipher
2395algorithm. The cipher algorithm should be passed as an extra argument 2395algorithm. 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,
2397using this value will cause MHD_get_daemon_info to return NULL. 2397using 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
2400Request information about the key size for a particular cipher 2400Request information about the key size for a particular cipher
2401algorithm. The cipher algorithm should be passed as an extra argument 2401algorithm. 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,
2403using this value will cause MHD_get_daemon_info to return NULL. 2403using 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.
2415Request the file-descriptor number that MHD is using for epoll. If 2415Request the file-descriptor number that MHD is using for epoll. If
2416the build is not supporting epoll, NULL is returned; if we are using a 2416the build is not supporting epoll, NULL is returned; if we are using a
2417thread pool or this daemon was not started with 2417thread pool or this daemon was not started with
2418MHD_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
2419using MHD_USE_SELECT_INTERNALLY or are in 'external' select mode, the 2419using @code{MHD_USE_SELECT_INTERNALLY} or are in 'external' select mode, the
2420internal epoll FD is returned. This function must be used in external 2420internal epoll FD is returned. This function must be used in external
2421select mode with epoll to obtain the FD to call epoll on. No extra 2421select mode with epoll to obtain the FD to call epoll on. No extra
2422arguments should be passed. 2422arguments should be passed.
2423 2423
2424@item MHD_DAEMON_INFO_CURRENT_CONNECTIONS
2425@cindex connection, limiting number of connections
2426Request the number of current connections handled by the daemon. No
2427extra arguments should be passed and a pointer to a @code{union
2428MHD_DaemonInfo} value is returned, with the @code{num_connections}
2429member of type @code{unsigned int} set to the number of active
2430connections.
2431
2432Note that in multi-threaded or internal-select mode, the real number of current
2433connections may already be different when @code{MHD_get_daemon_info} returns.
2434The number of current connections can be used (even in multi-threaded and
2435internal-select mode) after @code{MHD_quiesce_daemon} to detect whether all
2436connections have been handled.
2437
2424@end table 2438@end table
2425@end deftp 2439@end deftp
2426 2440