MHD_Daemon Struct Reference

#include <internal.h>

Data Fields

MHD_AccessHandlerCallback default_handler
void * default_handler_cls
struct MHD_Connectionconnections
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
struct MHD_Daemonmaster
struct MHD_Daemonworker_pool
unsigned int worker_pool_size

Detailed Description

State kept for each MHD daemon.

Definition at line 623 of file internal.h.


Field Documentation

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

Definition at line 646 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

Closure argument to apc.

Definition at line 651 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

After how many seconds of inactivity should connections time out? Zero for no timeout.

Definition at line 720 of file internal.h.

Referenced by MHD_connection_handle_idle(), MHD_get_timeout(), MHD_handle_connection(), MHD_start_daemon_va(), and MHD_tls_connection_handle_idle().

Linked list of our current connections.

Definition at line 639 of file internal.h.

Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_close_connections(), MHD_get_fdset(), MHD_get_timeout(), and MHD_select().

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().

Closure argument to custom_error_log.

Definition at line 688 of file internal.h.

Referenced by MHD_start_daemon_va().

Callback function for all requests.

Definition at line 629 of file internal.h.

Referenced by call_connection_handler(), and MHD_start_daemon_va().

Closure argument to default_handler.

Definition at line 634 of file internal.h.

Referenced by MHD_start_daemon_va().

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

Definition at line 784 of file internal.h.

Referenced by MHD_get_master(), and MHD_start_daemon_va().

Limit on the number of parallel connections.

Definition at line 714 of file internal.h.

Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_select(), and MHD_start_daemon_va().

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

Definition at line 657 of file internal.h.

Referenced by MHD_connection_close(), MHD_connection_handle_idle(), and MHD_start_daemon_va().

Closure argument to notify_completed.

Definition at line 662 of file internal.h.

Referenced by MHD_start_daemon_va().

Table storing number of connections per IP

Definition at line 731 of file internal.h.

Referenced by MHD_ip_limit_add(), and MHD_ip_limit_del().

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

Definition at line 726 of file internal.h.

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

Mutex for per-IP connection counts

Definition at line 736 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 694 of file internal.h.

Referenced by MHD_start_daemon_va(), and MHD_stop_daemon().

Size of the per-connection memory pools.

Definition at line 709 of file internal.h.

Referenced by MHD_connection_get_fdset(), MHD_start_daemon_va(), and try_ready_chunked_body().

unsigned short MHD_Daemon::port

Listen port.

Definition at line 746 of file internal.h.

Referenced by MHD_start_daemon_va().

Listen socket.

Definition at line 699 of file internal.h.

Referenced by MHD_accept_connection(), MHD_get_fdset(), 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 671 of file internal.h.

Referenced by MHD_start_daemon_va(), and parse_initial_message_line().

Closure argument to uri_log_callback.

Definition at line 676 of file internal.h.

Referenced by MHD_start_daemon_va().

Worker daemons (one per thread)

Definition at line 789 of file internal.h.

Referenced by MHD_start_daemon_va(), and MHD_stop_daemon().

Number of worker daemons

Definition at line 794 of file internal.h.

Referenced by MHD_start_daemon_va(), and MHD_stop_daemon().


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

Generated by  doxygen 1.6.2