GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
MHD_Daemon Struct Reference

#include </builddir/build/BUILD/libmicrohttpd-0.9.77/src/lib/internal.h>

Data Fields

MHD_RequestCallback rc
 
void * rc_cls
 
MHD_LoggingCallback logger
 
void * logger_cls
 
MHD_AcceptPolicyCallback accept_policy_cb
 
void * accept_policy_cb_cls
 
MHD_EarlyUriLogCallback early_uri_logger_cb
 
void * early_uri_logger_cb_cls
 
MHD_NotifyConnectionCallback notify_connection_cb
 
void * notify_connection_cb_cls
 
MHD_UnescapeCallback unescape_cb
 
void * unescape_cb_cls
 
struct MHD_Daemonmaster
 
struct MHD_Daemonworker_pool
 
struct MHD_Connectionnormal_timeout_head
 
struct MHD_Connectionnormal_timeout_tail
 
struct MHD_Connectionmanual_timeout_head
 
struct MHD_Connectionmanual_timeout_tail
 
struct MHD_Connectionconnections_head
 
struct MHD_Connectionconnections_tail
 
struct MHD_Connectionsuspended_connections_head
 
struct MHD_Connectionsuspended_connections_tail
 
struct MHD_Connectioncleanup_head
 
struct MHD_Connectioncleanup_tail
 
void * per_ip_connection_count
 
MHD_thread_handle_ID_ pid
 
struct sockaddr_storage listen_sa
 
MHD_mutex_ per_ip_connection_mutex
 
MHD_mutex_ cleanup_connection_mutex
 
size_t listen_sa_len
 
size_t connection_memory_limit_b
 
size_t connection_memory_increment_b
 
size_t thread_stack_limit_b
 
int listen_backlog
 
unsigned int fo_queue_length
 
unsigned int global_connection_limit
 
unsigned int ip_connection_limit
 
unsigned int connections
 
unsigned int worker_pool_size
 
time_t connection_default_timeout
 
MHD_socket listen_socket
 
struct MHD_itc_ itc
 
enum MHD_ThreadingMode threading_mode
 
enum MHD_FastOpenMethod fast_open_method
 
enum MHD_AddressFamily listen_af
 
enum MHD_EventLoopSyscall event_loop_syscall
 
enum MHD_ProtocolStrictLevel protocol_strict_level
 
uint16_t listen_port
 
bool suppress_date
 
bool disable_itc
 
bool disallow_suspend_resume
 
bool disallow_upgrade
 
bool at_limit
 
bool enable_turbo
 
bool data_already_pending
 
bool was_quiesced
 
bool resuming
 
bool allow_address_reuse
 
bool enable_shoutcast
 
volatile bool shutdown
 
MHD_AccessHandlerCallback default_handler
 
void * default_handler_cls
 
enum MHD_FLAG options
 
struct MHD_Connectionnew_connections_head
 
struct MHD_Connectionnew_connections_tail
 
enum MHD_tristate listen_is_unix
 
MHD_AcceptPolicyCallback apc
 
void * apc_cls
 
MHD_RequestCompletedCallback notify_completed
 
void * notify_completed_cls
 
MHD_NotifyConnectionCallback notify_connection
 
void * notify_connection_cls
 
LogCallback uri_log_callback
 
void * uri_log_callback_cls
 
UnescapeCallback unescape_callback
 
void * unescape_callback_cls
 
uint16_t port
 
MHD_socket listen_fd
 
bool listen_nonblk
 
size_t pool_size
 
size_t pool_increment
 
enum MHD_DisableSanityCheck insanity_level
 
int listening_address_reuse
 
volatile bool was_quiesced
 
volatile bool resuming
 
volatile bool have_new
 
unsigned int connection_limit
 
uint64_t connection_timeout_ms
 
unsigned int per_ip_connection_limit
 
int strict_for_client
 
bool sigpipe_blocked
 
unsigned int listen_backlog_size
 
size_t num_opts
 

Detailed Description

State kept for each MHD daemon. All connections are kept in two doubly-linked lists. The first one reflects the state of the connection in terms of what operations we are waiting for (read, write, locally blocked, cleanup) whereas the second is about its timeout state (default or custom).

Definition at line 1000 of file internal.h.

Field Documentation

◆ accept_policy_cb

MHD_AcceptPolicyCallback MHD_Daemon::accept_policy_cb

Function to call to accept/reject connections based on the client's IP address.

Definition at line 1026 of file internal.h.

Referenced by internal_add_connection(), and MHD_daemon_accept_policy().

◆ accept_policy_cb_cls

void* MHD_Daemon::accept_policy_cb_cls

Closure for accept_policy_cb.

Definition at line 1031 of file internal.h.

Referenced by internal_add_connection(), and MHD_daemon_accept_policy().

◆ allow_address_reuse

bool MHD_Daemon::allow_address_reuse

Allow reusing the address:port combination when binding. See MHD_daemon_listen_allow_address_reuse().

Definition at line 1516 of file internal.h.

Referenced by configure_listen_reuse(), and MHD_daemon_listen_allow_address_reuse().

◆ apc

MHD_AcceptPolicyCallback MHD_Daemon::apc

Function to call to check if we should accept or reject an incoming request. May be NULL.

Definition at line 1760 of file internal.h.

Referenced by MHD_start_daemon(), MHD_start_daemon_va(), and new_connection_prepare_().

◆ apc_cls

void* MHD_Daemon::apc_cls

Closure argument to apc.

Definition at line 1765 of file internal.h.

Referenced by MHD_start_daemon(), MHD_start_daemon_va(), and new_connection_prepare_().

◆ at_limit

bool MHD_Daemon::at_limit

Did we hit some system or process-wide resource limit while trying to accept() the last time? If so, we don't accept new connections until we close an existing one. This effectively temporarily lowers the "connection_limit" to the current number of connections.

Definition at line 1483 of file internal.h.

Referenced by MHD_accept_connection(), MHD_accept_connection_(), MHD_cleanup_connections(), MHD_connection_cleanup_(), MHD_daemon_select_(), and MHD_select().

◆ cleanup_connection_mutex

◆ cleanup_head

◆ cleanup_tail

struct MHD_Connection * MHD_Daemon::cleanup_tail

◆ connection_default_timeout

◆ connection_limit

unsigned int MHD_Daemon::connection_limit

Limit on the number of parallel connections.

Definition at line 1985 of file internal.h.

Referenced by MHD_add_connection(), MHD_select(), MHD_start_daemon_va(), new_connection_prepare_(), new_connection_process_(), and parse_options_va().

◆ connection_memory_increment_b

size_t MHD_Daemon::connection_memory_increment_b

Increment to use when growing the read buffer. Smaller than connection_memory_limit_b.

Definition at line 1296 of file internal.h.

Referenced by MHD_daemon_connection_memory_limit(), MHD_daemon_create(), MHD_request_handle_read_(), and try_grow_read_buffer().

◆ connection_memory_limit_b

size_t MHD_Daemon::connection_memory_limit_b

◆ connection_timeout_ms

uint64_t MHD_Daemon::connection_timeout_ms

After how many milliseconds of inactivity should this connection time out? Zero for no timeout.

Definition at line 1992 of file internal.h.

Referenced by cleanup_connection(), close_connection(), internal_suspend_connection_(), MHD_set_connection_option(), MHD_start_daemon_va(), MHD_update_last_activity_(), new_connection_prepare_(), parse_options_va(), and resume_suspended_connections().

◆ connections

unsigned int MHD_Daemon::connections

Number of active parallel connections.

Number of active parallel connections.

Remarks
Keep this member after pointer value to keep it properly aligned as it will be used as member of union MHD_DaemonInfo.

Definition at line 1361 of file internal.h.

Referenced by internal_add_connection(), MHD_accept_connection(), MHD_accept_connection_(), MHD_add_connection(), MHD_cleanup_connections(), MHD_connection_cleanup_(), MHD_daemon_get_information_sz(), MHD_daemon_select_(), MHD_get_daemon_info(), MHD_select(), MHD_start_daemon_va(), new_connection_prepare_(), and new_connection_process_().

◆ connections_head

◆ connections_tail

◆ data_already_pending

bool MHD_Daemon::data_already_pending

'True' if some data is already waiting to be processed. If set to 'true' - zero timeout for select()/poll*() is used. Should be reset each time before processing connections and raised by any connection which require additional immediately processing (application does not provide data for response, data waiting in TLS buffers etc.)

Definition at line 1500 of file internal.h.

Referenced by call_handlers(), close_connection(), internal_run_from_select(), internal_run_from_select(), MHD_connection_call_handlers_(), MHD_daemon_get_timeout(), MHD_get_timeout(), and resume_suspended_connections().

◆ default_handler

MHD_AccessHandlerCallback MHD_Daemon::default_handler

Callback function for all requests.

Definition at line 1606 of file internal.h.

Referenced by call_connection_handler(), MHD_start_daemon_va(), and process_request_body().

◆ default_handler_cls

void* MHD_Daemon::default_handler_cls

Closure argument to default_handler.

Definition at line 1611 of file internal.h.

Referenced by call_connection_handler(), MHD_start_daemon_va(), and process_request_body().

◆ disable_itc

bool MHD_Daemon::disable_itc

The use of the inter-thread communication channel is disabled. See MHD_daemon_disable_itc().

Definition at line 1462 of file internal.h.

Referenced by MHD_daemon_disable_itc(), MHD_daemon_quiesce(), MHD_daemon_start(), and setup_thread_pool().

◆ disallow_suspend_resume

◆ disallow_upgrade

bool MHD_Daemon::disallow_upgrade

Disable #MHD_action_upgrade() functionality. See MHD_daemon_disallow_upgrade().

Definition at line 1474 of file internal.h.

Referenced by MHD_daemon_close_all_connections_(), MHD_daemon_disallow_upgrade(), and response_action().

◆ early_uri_logger_cb

MHD_EarlyUriLogCallback MHD_Daemon::early_uri_logger_cb

Function to call on the full URL early for logging.

Definition at line 1036 of file internal.h.

Referenced by MHD_daemon_set_early_uri_logger(), and parse_initial_message_line().

◆ early_uri_logger_cb_cls

void* MHD_Daemon::early_uri_logger_cb_cls

Closure for early_uri_logger_cb.

Definition at line 1041 of file internal.h.

Referenced by MHD_daemon_set_early_uri_logger(), and parse_initial_message_line().

◆ enable_shoutcast

bool MHD_Daemon::enable_shoutcast

MHD should speak SHOUTcast instead of HTTP.

Definition at line 1521 of file internal.h.

Referenced by MHD_daemon_enable_shoutcast().

◆ enable_turbo

bool MHD_Daemon::enable_turbo

Disables optional calls to shutdown() and enables aggressive non-blocking optimistic reads and other potentially unsafe optimizations. See MHD_daemon_enable_turbo().

Definition at line 1490 of file internal.h.

Referenced by internal_add_connection(), MHD_connection_mark_closed_(), MHD_daemon_add_connection(), and MHD_daemon_enable_turbo().

◆ event_loop_syscall

enum MHD_EventLoopSyscall MHD_Daemon::event_loop_syscall

◆ fast_open_method

enum MHD_FastOpenMethod MHD_Daemon::fast_open_method

When should we use TCP_FASTOPEN? See MHD_daemon_tcp_fastopen().

Definition at line 1423 of file internal.h.

Referenced by MHD_daemon_tcp_fastopen(), and open_listen_socket().

◆ fo_queue_length

unsigned int MHD_Daemon::fo_queue_length

Queue length to use with fast open.

Definition at line 1346 of file internal.h.

Referenced by MHD_daemon_create(), MHD_daemon_tcp_fastopen(), and open_listen_socket().

◆ global_connection_limit

unsigned int MHD_Daemon::global_connection_limit

Maximum number of connections MHD accepts. 0 for unlimited.

Definition at line 1351 of file internal.h.

Referenced by internal_add_connection(), MHD_daemon_connection_limits(), MHD_daemon_select_(), and setup_thread_pool().

◆ have_new

volatile bool MHD_Daemon::have_new

Indicate that new connections in new_connections_head list need to be processed.

Definition at line 1969 of file internal.h.

Referenced by internal_add_connection(), internal_run_from_select(), and new_connections_list_process_().

◆ insanity_level

enum MHD_DisableSanityCheck MHD_Daemon::insanity_level

Our MHD_OPTION_SERVER_INSANITY level, bits indicating which sanity checks are off.

Definition at line 1919 of file internal.h.

Referenced by parse_options_va().

◆ ip_connection_limit

unsigned int MHD_Daemon::ip_connection_limit

Maximum number of connections we accept per IP, 0 for unlimited.

Definition at line 1356 of file internal.h.

Referenced by MHD_daemon_connection_limits(), MHD_ip_limit_add(), and MHD_ip_limit_del().

◆ itc

◆ listen_af

enum MHD_AddressFamily MHD_Daemon::listen_af

Address family to use when listening. Default is #MHD_AF_NONE (do not listen).

Definition at line 1429 of file internal.h.

Referenced by MHD_daemon_bind_port(), and open_listen_socket().

◆ listen_backlog

int MHD_Daemon::listen_backlog

Backlog argument to use for listen. See MHD_daemon_listen_backlog().

Definition at line 1336 of file internal.h.

Referenced by MHD_daemon_create(), MHD_daemon_listen_backlog(), and open_listen_socket().

◆ listen_backlog_size

unsigned int MHD_Daemon::listen_backlog_size

The size of queue for listen socket.

Definition at line 2157 of file internal.h.

Referenced by MHD_start_daemon_va(), and parse_options_va().

◆ listen_fd

MHD_socket MHD_Daemon::listen_fd

Listen socket.

Remarks
Keep this member after pointer value to keep it properly aligned as it will be used as member of union MHD_DaemonInfo.

Definition at line 1845 of file internal.h.

Referenced by internal_get_fdset2(), internal_run_from_select(), MHD_accept_connection(), MHD_get_daemon_info(), MHD_quiesce_daemon(), MHD_select(), MHD_start_daemon_va(), MHD_stop_daemon(), and parse_options_va().

◆ listen_is_unix

enum MHD_tristate MHD_Daemon::listen_is_unix

_MHD_YES if the listen_fd socket is a UNIX domain socket.

Definition at line 1664 of file internal.h.

Referenced by MHD_accept_connection(), MHD_start_daemon_va(), and parse_options_va().

◆ listen_nonblk

bool MHD_Daemon::listen_nonblk

Listen socket is non-blocking.

Definition at line 1850 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

◆ listen_port

uint16_t MHD_Daemon::listen_port

On which port should we listen on? Only effective if we were not given a listen socket or a full address via #MHD_daemon_bind_sa(). 0 means to bind to random free port.

Definition at line 1449 of file internal.h.

Referenced by get_listen_port_number(), MHD_daemon_bind_port(), MHD_daemon_get_information_sz(), and open_listen_socket().

◆ listen_sa

struct sockaddr_storage MHD_Daemon::listen_sa

Socket address to bind to for the listen socket.

Definition at line 1254 of file internal.h.

Referenced by MHD_daemon_bind_socket_address(), and open_listen_socket().

◆ listen_sa_len

size_t MHD_Daemon::listen_sa_len

Number of (valid) bytes in listen_sa. Zero if listen_sa is not initialized.

Definition at line 1271 of file internal.h.

Referenced by MHD_daemon_bind_socket_address(), and open_listen_socket().

◆ listen_socket

◆ listening_address_reuse

int MHD_Daemon::listening_address_reuse

Whether to allow/disallow/ignore reuse of listening address. The semantics is the following: 0: ignore (user did not ask for neither allow/disallow, use SO_REUSEADDR except W32) >0: allow (use SO_REUSEPORT on most platforms, SO_REUSEADDR on Windows) <0: disallow (mostly no action, SO_EXCLUSIVEADDRUSE on Windows or SO_EXCLBIND on Solaris)

Definition at line 1930 of file internal.h.

Referenced by MHD_start_daemon_va(), and parse_options_va().

◆ logger

MHD_LoggingCallback MHD_Daemon::logger

Function to call for logging.

Definition at line 1015 of file internal.h.

Referenced by MHD_daemon_create(), and MHD_daemon_set_logger().

◆ logger_cls

void* MHD_Daemon::logger_cls

Closure for logger.

Definition at line 1020 of file internal.h.

Referenced by MHD_daemon_create(), and MHD_daemon_set_logger().

◆ manual_timeout_head

struct MHD_Connection * MHD_Daemon::manual_timeout_head

Head of the XDLL of ALL connections with a non-default/custom timeout, unsorted. MHD will do a O(n) scan over this list to determine the current timeout. Not used in MHD_USE_THREAD_PER_CONNECTION mode.

Definition at line 1143 of file internal.h.

Referenced by cleanup_connection(), cleanup_connection(), close_connection(), close_connection(), internal_suspend_connection_(), MHD_connection_set_timeout(), MHD_resume_suspended_connections_(), MHD_set_connection_option(), resume_suspended_connections(), and suspend_action().

◆ manual_timeout_tail

struct MHD_Connection * MHD_Daemon::manual_timeout_tail

Tail of the XDLL of ALL connections with a non-default/custom timeout, unsorted. Not used in MHD_USE_THREAD_PER_CONNECTION mode.

Definition at line 1150 of file internal.h.

Referenced by cleanup_connection(), cleanup_connection(), close_connection(), close_connection(), internal_suspend_connection_(), MHD_connection_set_timeout(), MHD_daemon_get_timeout(), MHD_get_timeout(), MHD_resume_suspended_connections_(), MHD_set_connection_option(), resume_suspended_connections(), and suspend_action().

◆ master

struct MHD_Daemon * MHD_Daemon::master

Pointer to master daemon (NULL if this is the master)

Definition at line 1068 of file internal.h.

Referenced by get_master(), MHD_daemon_destroy(), MHD_get_master(), MHD_start_daemon_va(), MHD_stop_daemon(), and setup_thread_pool().

◆ new_connections_head

struct MHD_Connection* MHD_Daemon::new_connections_head

Head of doubly-linked list of new, externally added connections.

Definition at line 1624 of file internal.h.

Referenced by close_all_connections(), internal_add_connection(), MHD_stop_daemon(), and new_connections_list_process_().

◆ new_connections_tail

struct MHD_Connection* MHD_Daemon::new_connections_tail

Tail of doubly-linked list of new, externally added connections.

Definition at line 1629 of file internal.h.

Referenced by close_all_connections(), internal_add_connection(), and new_connections_list_process_().

◆ normal_timeout_head

struct MHD_Connection * MHD_Daemon::normal_timeout_head

Head of the XDLL of ALL connections with a default ('normal') timeout, sorted by timeout (earliest at the tail, most recently used connection at the head). MHD can just look at the tail of this list to determine the timeout for all of its elements; whenever there is an event of a connection, the connection is moved back to the tail of the list.

All connections by default start in this list; if a custom timeout that does not match connection_timeout is set, they are moved to the manual_timeout_head-XDLL. Not used in MHD_USE_THREAD_PER_CONNECTION mode as each thread needs only one connection-specific timeout.

Head of the XDLL of ALL connections with a default ('normal') timeout, sorted by timeout (earliest at the tail, most recently used connection at the head). MHD can just look at the tail of this list to determine the timeout for all of its elements; whenever there is an event of a connection, the connection is moved back to the tail of the list.

All connections by default start in this list; if a custom timeout that does not match connection_timeout_ms is set, they are moved to the manual_timeout_head-XDLL. Not used in MHD_USE_THREAD_PER_CONNECTION mode as each thread needs only one connection-specific timeout.

Definition at line 1128 of file internal.h.

Referenced by cleanup_connection(), cleanup_connection(), close_connection(), close_connection(), internal_add_connection(), internal_suspend_connection_(), MHD_connection_set_timeout(), MHD_connection_update_last_activity_(), MHD_resume_suspended_connections_(), MHD_set_connection_option(), MHD_update_last_activity_(), new_connection_process_(), resume_suspended_connections(), and suspend_action().

◆ normal_timeout_tail

◆ notify_completed

MHD_RequestCompletedCallback MHD_Daemon::notify_completed

Function to call when we are done processing a particular request. May be NULL.

Definition at line 1771 of file internal.h.

Referenced by connection_reset(), MHD_connection_close_(), MHD_start_daemon_va(), parse_options_va(), and resume_suspended_connections().

◆ notify_completed_cls

void* MHD_Daemon::notify_completed_cls

Closure argument to notify_completed.

Definition at line 1776 of file internal.h.

Referenced by connection_reset(), MHD_connection_close_(), parse_options_va(), and resume_suspended_connections().

◆ notify_connection

MHD_NotifyConnectionCallback MHD_Daemon::notify_connection

Function to call when we are starting/stopping a connection. May be NULL.

Definition at line 1782 of file internal.h.

Referenced by MHD_cleanup_connections(), MHD_start_daemon_va(), new_connection_process_(), and parse_options_va().

◆ notify_connection_cb

MHD_NotifyConnectionCallback MHD_Daemon::notify_connection_cb

Function to call whenever a connection is started or closed.

Definition at line 1047 of file internal.h.

Referenced by internal_add_connection(), MHD_connection_cleanup_(), MHD_connection_close_(), and MHD_daemon_set_notify_connection().

◆ notify_connection_cb_cls

void* MHD_Daemon::notify_connection_cb_cls

Closure for notify_connection_cb.

Definition at line 1052 of file internal.h.

Referenced by internal_add_connection(), MHD_connection_cleanup_(), MHD_connection_close_(), and MHD_daemon_set_notify_connection().

◆ notify_connection_cls

void* MHD_Daemon::notify_connection_cls

Closure argument to notify_connection.

Definition at line 1787 of file internal.h.

Referenced by MHD_cleanup_connections(), new_connection_process_(), and parse_options_va().

◆ num_opts

size_t MHD_Daemon::num_opts

The number of user options used.

Contains number of only meaningful options, i.e. MHD_OPTION_END and MHD_OPTION_ARRAY are not counted, while options inside MHD_OPTION_ARRAY are counted.

Definition at line 2166 of file internal.h.

Referenced by parse_options_va().

◆ options

◆ per_ip_connection_count

void * MHD_Daemon::per_ip_connection_count

Table storing number of connections per IP

Definition at line 1187 of file internal.h.

Referenced by MHD_ip_limit_add(), MHD_ip_limit_add(), MHD_ip_limit_del(), and MHD_ip_limit_del().

◆ per_ip_connection_limit

unsigned int MHD_Daemon::per_ip_connection_limit

Maximum number of connections per IP, or 0 for unlimited.

Definition at line 1998 of file internal.h.

Referenced by MHD_ip_limit_add(), MHD_ip_limit_del(), and parse_options_va().

◆ per_ip_connection_mutex

MHD_mutex_ MHD_Daemon::per_ip_connection_mutex

◆ pid

◆ pool_increment

size_t MHD_Daemon::pool_increment

Increment for growth of the per-connection memory pools.

Definition at line 1880 of file internal.h.

Referenced by MHD_connection_handle_read(), MHD_start_daemon_va(), and parse_options_va().

◆ pool_size

size_t MHD_Daemon::pool_size

Size of the per-connection memory pools.

Definition at line 1875 of file internal.h.

Referenced by connection_reset(), MHD_start_daemon_va(), new_connection_process_(), and parse_options_va().

◆ port

uint16_t MHD_Daemon::port

Listen port.

Remarks
Keep this member after pointer value to keep it properly aligned as it will be used as member of union MHD_DaemonInfo.

Definition at line 1819 of file internal.h.

Referenced by MHD_get_daemon_info(), MHD_start_daemon(), and MHD_start_daemon_va().

◆ protocol_strict_level

enum MHD_ProtocolStrictLevel MHD_Daemon::protocol_strict_level

How strictly do we enforce the HTTP protocol? See MHD_daemon_protocol_strict_level().

Definition at line 1442 of file internal.h.

Referenced by MHD_daemon_protocol_strict_level(), parse_initial_message_line(), parse_request_headers(), and process_header_line().

◆ rc

MHD_RequestCallback MHD_Daemon::rc

Function to call to handle incoming requests.

Definition at line 1005 of file internal.h.

Referenced by call_request_handler(), MHD_daemon_create(), and process_request_body().

◆ rc_cls

void* MHD_Daemon::rc_cls

Closure for rc.

Definition at line 1010 of file internal.h.

Referenced by call_request_handler(), MHD_daemon_create(), and process_request_body().

◆ resuming [1/2]

bool MHD_Daemon::resuming

◆ resuming [2/2]

volatile bool MHD_Daemon::resuming

Definition at line 1963 of file internal.h.

◆ shutdown

◆ sigpipe_blocked

bool MHD_Daemon::sigpipe_blocked

◆ strict_for_client

int MHD_Daemon::strict_for_client

Be neutral (zero), strict (1) or permissive (-1) to client.

Definition at line 2003 of file internal.h.

Referenced by MHD_start_daemon_va(), parse_connection_headers(), parse_initial_message_line(), parse_options_va(), and process_header_line().

◆ suppress_date

bool MHD_Daemon::suppress_date

Suppress generating the "Date:" header, this system lacks an RTC (or developer is hyper-optimizing). See MHD_daemon_suppress_date_no_clock().

Definition at line 1456 of file internal.h.

Referenced by build_header_response(), and MHD_daemon_suppress_date_no_clock().

◆ suspended_connections_head

struct MHD_Connection * MHD_Daemon::suspended_connections_head

◆ suspended_connections_tail

struct MHD_Connection * MHD_Daemon::suspended_connections_tail

◆ thread_stack_limit_b

size_t MHD_Daemon::thread_stack_limit_b

Desired size of the stack for threads created by MHD, 0 for system default.

Definition at line 1302 of file internal.h.

Referenced by internal_add_connection(), MHD_daemon_start(), MHD_daemon_thread_stack_size(), and setup_thread_pool().

◆ threading_mode

◆ unescape_callback

UnescapeCallback MHD_Daemon::unescape_callback

Function to call when we unescape escape sequences.

Definition at line 1806 of file internal.h.

Referenced by digest_auth_check_all(), MHD_parse_arguments_(), MHD_start_daemon_va(), parse_initial_message_line(), and parse_options_va().

◆ unescape_callback_cls

void* MHD_Daemon::unescape_callback_cls

Closure for unescape_callback.

Definition at line 1811 of file internal.h.

Referenced by digest_auth_check_all(), MHD_parse_arguments_(), parse_initial_message_line(), and parse_options_va().

◆ unescape_cb

MHD_UnescapeCallback MHD_Daemon::unescape_cb

Function to call to unescape sequences in URIs and URI arguments. See MHD_daemon_unescape_cb().

Definition at line 1058 of file internal.h.

Referenced by MHD_daemon_create(), MHD_daemon_unescape_cb(), MHD_parse_arguments_(), and parse_initial_message_line().

◆ unescape_cb_cls

void* MHD_Daemon::unescape_cb_cls

Closure for unescape_cb.

Definition at line 1063 of file internal.h.

Referenced by MHD_daemon_unescape_cb(), MHD_parse_arguments_(), and parse_initial_message_line().

◆ uri_log_callback

LogCallback MHD_Daemon::uri_log_callback

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 1796 of file internal.h.

Referenced by parse_initial_message_line(), and parse_options_va().

◆ uri_log_callback_cls

void* MHD_Daemon::uri_log_callback_cls

Closure argument to uri_log_callback.

Definition at line 1801 of file internal.h.

Referenced by parse_initial_message_line(), and parse_options_va().

◆ was_quiesced [1/2]

◆ was_quiesced [2/2]

volatile bool MHD_Daemon::was_quiesced

Has this daemon been quiesced via MHD_quiesce_daemon()? If so, we should no longer use the listen_fd (including removing it from the epoll_fd when possible).

Definition at line 1949 of file internal.h.

◆ worker_pool

◆ worker_pool_size


The documentation for this struct was generated from the following files: