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"
Include dependency graph for daemon_create.c:

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

struct MHD_Daemon * MHD_daemon_create ( MHD_RequestCallback  cb,
void *  cb_cls 
)

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

Referenced by MHD_daemon_create().

Here is the call graph for this function:
Here is the caller graph for this function: