Next: , Up: microhttpd-info


11.1 Obtaining state information about an MHD daemon

— Function: const union MHD_DaemonInfo * MHD_get_daemon_info (struct MHD_Daemon *daemon, enum MHD_DaemonInfoType infoType, ...)

Obtain information about the given daemon. This function is currently not fully implemented.

daemon
the daemon about which information is desired;
infoType
type of information that is desired
...
additional arguments about the desired information (depending on infoType)

Returns a union with the respective member (depending on infoType) set to the desired information), or NULL in case the desired information is not available or applicable.

— Enumeration: MHD_DaemonInfoType

Values of this enum are used to specify what information about a daemon is desired.

MHD_DAEMON_INFO_KEY_SIZE
Request information about the key size for a particular cipher algorithm. The cipher algorithm should be passed as an extra argument (of type 'enum MHD_GNUTLS_CipherAlgorithm').
MHD_DAEMON_INFO_MAC_KEY_SIZE
Request information about the key size for a particular cipher algorithm. The cipher algorithm should be passed as an extra argument (of type 'enum MHD_GNUTLS_HashAlgorithm').
MHD_DAEMON_INFO_LISTEN_FD
Request the file-descriptor number that MHD is using to listen to the server socket. This can be useful if no port was specified and a client needs to learn what port is actually being used by MHD. No extra arguments should be passed.