#include <internal.h>
Data Fields | |
MHD_AccessHandlerCallback | default_handler |
void * | default_handler_cls |
struct MHD_Connection * | connections |
MHD_AcceptPolicyCallback | apc |
void * | apc_cls |
MHD_RequestCompletedCallback | notify_completed |
void * | notify_completed_cls |
LogCallback | uri_log_callback |
void * | uri_log_callback_cls |
void(* | custom_error_log )(void *cls, const char *fmt, va_list va) |
void * | custom_error_log_cls |
pthread_t | pid |
int | socket_fd |
int | shutdown |
size_t | pool_size |
unsigned int | max_connections |
unsigned int | connection_timeout |
unsigned int | per_ip_connection_limit |
void * | per_ip_connection_count |
pthread_mutex_t | per_ip_connection_mutex |
enum MHD_OPTION | options |
unsigned short | port |
enum MHD_GNUTLS_CredentialsType | cred_type |
MHD_gtls_cert_credentials_t | x509_cred |
MHD_gnutls_priority_t | priority_cache |
MHD_gtls_dh_params_t | dh_params |
const char * | https_mem_key |
const char * | https_mem_cert |
struct MHD_Daemon * | master |
struct MHD_Daemon * | worker_pool |
unsigned int | worker_pool_size |
State kept for each MHD daemon.
Definition at line 672 of file internal.h.
Function to call to check if we should accept or reject an incoming request. May be NULL.
Definition at line 695 of file internal.h.
Referenced by MHD_accept_connection(), and MHD_start_daemon_va().
void* MHD_Daemon::apc_cls |
Closure argument to apc.
Definition at line 700 of file internal.h.
Referenced by MHD_accept_connection(), and MHD_start_daemon_va().
unsigned int MHD_Daemon::connection_timeout |
After how many seconds of inactivity should connections time out? Zero for no timeout.
Definition at line 769 of file internal.h.
Referenced by MHD_connection_handle_idle(), MHD_get_timeout(), MHD_handle_connection(), MHD_start_daemon_va(), MHD_tls_connection_handle_idle(), and parse_options_va().
Linked list of our current connections.
Definition at line 688 of file internal.h.
Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_close_connections(), MHD_get_fdset(), MHD_get_timeout(), and MHD_select().
What kind of credentials are we offering for SSL/TLS?
Definition at line 802 of file internal.h.
Referenced by MHD_accept_connection(), MHD_start_daemon_va(), and MHD_TLS_init().
void(* MHD_Daemon::custom_error_log)(void *cls, const char *fmt, va_list va) |
Function for logging error messages (if we support error reporting).
Referenced by MHD_start_daemon_va(), and parse_options_va().
Closure argument to custom_error_log.
Definition at line 737 of file internal.h.
Referenced by MHD_start_daemon_va(), and parse_options_va().
Callback function for all requests.
Definition at line 678 of file internal.h.
Referenced by call_connection_handler(), MHD_start_daemon_va(), and process_request_body().
Closure argument to default_handler.
Definition at line 683 of file internal.h.
Referenced by MHD_start_daemon_va().
Diffie-Hellman parameters
Definition at line 817 of file internal.h.
const char* MHD_Daemon::https_mem_cert |
Pointer to our SSL/TLS certificate (in ASCII) in memory.
Definition at line 827 of file internal.h.
Referenced by MHD_init_daemon_certificate(), and parse_options_va().
const char* MHD_Daemon::https_mem_key |
Pointer to our SSL/TLS key (in ASCII) in memory.
Definition at line 822 of file internal.h.
Referenced by MHD_init_daemon_certificate(), and parse_options_va().
struct MHD_Daemon* MHD_Daemon::master |
Pointer to master daemon (NULL if this is the master)
Definition at line 833 of file internal.h.
Referenced by MHD_get_master(), and MHD_start_daemon_va().
unsigned int MHD_Daemon::max_connections |
Limit on the number of parallel connections.
Definition at line 763 of file internal.h.
Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_select(), MHD_start_daemon_va(), and parse_options_va().
Function to call when we are done processing a particular request. May be NULL.
Definition at line 706 of file internal.h.
Referenced by MHD_connection_close(), MHD_connection_handle_idle(), and parse_options_va().
Closure argument to notify_completed.
Definition at line 711 of file internal.h.
Referenced by parse_options_va().
Daemon's options.
Definition at line 790 of file internal.h.
Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_connection_get_pollfd(), MHD_connection_handle_write(), MHD_get_fdset(), MHD_handle_connection(), MHD_poll(), MHD_run(), MHD_select(), MHD_select_thread(), MHD_start_daemon_va(), MHD_stop_daemon(), parse_connection_headers(), parse_options_va(), recv_param_adapter(), send_param_adapter(), and try_ready_normal_body().
Table storing number of connections per IP
Definition at line 780 of file internal.h.
Referenced by MHD_ip_limit_add(), and MHD_ip_limit_del().
unsigned int MHD_Daemon::per_ip_connection_limit |
Maximum number of connections per IP, or 0 for unlimited.
Definition at line 775 of file internal.h.
Referenced by MHD_ip_limit_add(), MHD_ip_limit_del(), and parse_options_va().
pthread_mutex_t MHD_Daemon::per_ip_connection_mutex |
Mutex for per-IP connection counts
Definition at line 785 of file internal.h.
Referenced by MHD_ip_count_lock(), MHD_ip_count_unlock(), MHD_start_daemon_va(), and MHD_stop_daemon().
pthread_t MHD_Daemon::pid |
PID of the select thread (if we have internal select)
Definition at line 743 of file internal.h.
Referenced by MHD_start_daemon_va(), and MHD_stop_daemon().
size_t MHD_Daemon::pool_size |
Size of the per-connection memory pools.
Definition at line 758 of file internal.h.
Referenced by MHD_connection_get_pollfd(), MHD_start_daemon_va(), parse_options_va(), and try_ready_chunked_body().
unsigned short MHD_Daemon::port |
Cipher priority cache
Definition at line 812 of file internal.h.
Referenced by MHD_accept_connection(), MHD_start_daemon_va(), MHD_stop_daemon(), and parse_options_va().
Are we shutting down?
Definition at line 753 of file internal.h.
Referenced by MHD_cleanup_connections(), MHD_get_fdset(), MHD_handle_connection(), MHD_poll(), MHD_run(), MHD_select(), MHD_select_thread(), and MHD_stop_daemon().
Listen socket.
Definition at line 748 of file internal.h.
Referenced by MHD_accept_connection(), MHD_get_daemon_info(), MHD_get_fdset(), MHD_poll(), MHD_select(), MHD_start_daemon_va(), and MHD_stop_daemon().
Function to call with the full URI at the beginning of request processing. May be NULL.
Returns the initial pointer to internal state kept by the client for the request.
Definition at line 720 of file internal.h.
Referenced by parse_initial_message_line(), and parse_options_va().
Closure argument to uri_log_callback.
Definition at line 725 of file internal.h.
Referenced by parse_options_va().
struct MHD_Daemon* MHD_Daemon::worker_pool |
Worker daemons (one per thread)
Definition at line 838 of file internal.h.
Referenced by MHD_start_daemon_va(), and MHD_stop_daemon().
unsigned int MHD_Daemon::worker_pool_size |
Number of worker daemons
Definition at line 843 of file internal.h.
Referenced by MHD_start_daemon_va(), MHD_stop_daemon(), and parse_options_va().
Server x509 credentials
Definition at line 807 of file internal.h.
Referenced by MHD_accept_connection(), MHD_init_daemon_certificate(), MHD_stop_daemon(), and MHD_TLS_init().