MHD_Daemon Struct Reference

#include <internal.h>


Data Fields

MHD_AccessHandlerCallback default_handler
void * default_handler_cls
MHD_Connectionconnections
MHD_AcceptPolicyCallback apc
void * apc_cls
MHD_RequestCompletedCallback notify_completed
void * notify_completed_cls
void *(* uri_log_callback )(void *cls, const char *uri)
void * uri_log_callback_cls
pthread_t pid
int socket_fd
int shutdown
unsigned int pool_size
unsigned int max_connections
unsigned int connection_timeout
unsigned int per_ip_connection_limit
enum MHD_OPTION options
unsigned short port


Detailed Description

Definition at line 576 of file internal.h.


Field Documentation

MHD_AccessHandlerCallback MHD_Daemon::default_handler

Callback function for all requests.

Definition at line 582 of file internal.h.

Referenced by call_connection_handler(), and MHD_start_daemon_va().

void* MHD_Daemon::default_handler_cls

Closure argument to default_handler.

Definition at line 587 of file internal.h.

Referenced by MHD_start_daemon_va().

struct MHD_Connection* MHD_Daemon::connections

Linked list of our current connections.

Definition at line 592 of file internal.h.

Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_get_fdset(), MHD_get_timeout(), and MHD_stop_daemon().

MHD_AcceptPolicyCallback MHD_Daemon::apc

Definition at line 594 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

void* MHD_Daemon::apc_cls

Definition at line 596 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

MHD_RequestCompletedCallback MHD_Daemon::notify_completed

Definition at line 598 of file internal.h.

Referenced by MHD_connection_close(), and MHD_start_daemon_va().

void* MHD_Daemon::notify_completed_cls

Definition at line 600 of file internal.h.

Referenced by MHD_start_daemon_va().

void*(* MHD_Daemon::uri_log_callback)(void *cls, const char *uri)

Referenced by MHD_start_daemon_va(), and parse_initial_message_line().

void* MHD_Daemon::uri_log_callback_cls

Definition at line 604 of file internal.h.

Referenced by MHD_start_daemon_va(), and parse_initial_message_line().

pthread_t MHD_Daemon::pid

PID of the select thread (if we have internal select)

Definition at line 609 of file internal.h.

Referenced by MHD_stop_daemon().

int MHD_Daemon::socket_fd

Listen socket.

Definition at line 614 of file internal.h.

Referenced by MHD_accept_connection(), MHD_get_fdset(), MHD_select(), MHD_start_daemon_va(), and MHD_stop_daemon().

int MHD_Daemon::shutdown

Are we shutting down?

Definition at line 619 of file internal.h.

Referenced by MHD_cleanup_connections(), MHD_get_fdset(), MHD_handle_connection(), MHD_run(), MHD_select(), MHD_select_thread(), and MHD_stop_daemon().

unsigned int MHD_Daemon::pool_size

Size of the per-connection memory pools.

Definition at line 624 of file internal.h.

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

unsigned int MHD_Daemon::max_connections

Limit on the number of parallel connections.

Definition at line 629 of file internal.h.

Referenced by MHD_accept_connection(), MHD_cleanup_connections(), 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 635 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().

unsigned int MHD_Daemon::per_ip_connection_limit

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

Definition at line 641 of file internal.h.

Referenced by MHD_accept_connection(), and MHD_start_daemon_va().

enum MHD_OPTION MHD_Daemon::options

Daemon's options.

Definition at line 646 of file internal.h.

Referenced by MHD_accept_connection(), MHD_cleanup_connections(), MHD_get_fdset(), MHD_run(), MHD_select(), MHD_start_daemon_va(), MHD_stop_daemon(), parse_connection_headers(), and try_ready_normal_body().

unsigned short MHD_Daemon::port

Listen port.

Definition at line 651 of file internal.h.

Referenced by MHD_start_daemon_va().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 16 17:00:21 2008 for GNU libmicrohttpd by  doxygen 1.5.1