GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
daemon_create.c File Reference

main functions to create a daemon More...

#include "internal.h"
#include "init.h"

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_DaemonMHD_daemon_create (MHD_RequestCallback cb, void *cb_cls)
 

Detailed Description

main functions to create a daemon

Author
Christian Grothoff

Definition in file daemon_create.c.

Function Documentation

◆ MHD_daemon_create()

◆ unescape_wrapper()

static size_t unescape_wrapper ( void cls,
struct MHD_Request req,
char val 
)
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.

Parameters
clsclosure (use NULL)
reqhandle to request, not used
valvalue to unescape (modified in the process)
Returns
length of the resulting val (strlen(val) maybe shorter afterwards due to elimination of escape sequences)

Definition at line 66 of file daemon_create.c.

References MHD_HTTP_OK, and MHD_http_unescape().

Referenced by MHD_daemon_create().