GNU libmicrohttpd 0.9.77
|
main functions to create a daemon More...
Go to the source code of this file.
Functions | |
static void | file_logger (void *cls, enum MHD_StatusCode sc, const char *fm, va_list ap) |
static size_t | unescape_wrapper (void *cls, struct MHD_Request *req, char *val) |
struct MHD_Daemon * | MHD_daemon_create (MHD_RequestCallback cb, void *cb_cls) |
main functions to create a daemon
Definition in file daemon_create.c.
struct MHD_Daemon * MHD_daemon_create | ( | MHD_RequestCallback | cb, |
void * | cb_cls | ||
) |
Create (but do not yet start) an MHD daemon. Usually, you will want to set various options before starting the daemon with MHD_daemon_start().
cb | function to be called for incoming requests |
cb_cls | closure for cb |
Definition at line 86 of file daemon_create.c.
References BUF_INC_SIZE_DEFAULT, MHD_Daemon::cleanup_connection_mutex, MHD_Daemon::connection_memory_increment_b, MHD_Daemon::connection_memory_limit_b, file_logger(), MHD_Daemon::fo_queue_length, FO_QUEUE_LENGTH_DEFAULT, MHD_Daemon::listen_backlog, LISTEN_BACKLOG_DEFAULT, MHD_Daemon::listen_socket, MHD_Daemon::logger, MHD_Daemon::logger_cls, MHD_check_global_init_(), MHD_INVALID_SOCKET, MHD_mutex_destroy_, MHD_mutex_init_, NULL, MHD_Daemon::per_ip_connection_mutex, POOL_SIZE_DEFAULT, MHD_Daemon::rc, MHD_Daemon::rc_cls, MHD_Daemon::unescape_cb, and unescape_wrapper().
|
static |
Process escape sequences ('HH') Updates val in place; the result should be UTF-8 encoded and cannot be larger than the input. The result must also still be 0-terminated.
cls | closure (use NULL) |
req | handle to request, not used |
val | value to unescape (modified in the process) |
Definition at line 66 of file daemon_create.c.
References MHD_http_unescape().
Referenced by MHD_daemon_create().