GNU libmicrohttpd  0.9.29
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
internal.c File Reference

internal shared structures More...

#include "internal.h"
Include dependency graph for internal.c:

Go to the source code of this file.

Functions

void MHD_unescape_plus (char *arg)
 
size_t MHD_http_unescape (char *val)
 
time_t MHD_monotonic_time (void)
 

Detailed Description

internal shared structures

Author
Daniel Pittman
Christian Grothoff

Definition in file internal.c.

Function Documentation

size_t MHD_http_unescape ( char *  val)

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
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 132 of file internal.c.

Referenced by post_process_urlencoded(), and unescape_wrapper().

Here is the caller graph for this function:

time_t MHD_monotonic_time ( void  )

Equivalent to time(NULL) but tries to use some sort of monotonic clock that isn't affected by someone setting the system real time clock.

Returns
'current' time

Definition at line 182 of file internal.c.

References NULL.

Referenced by internal_add_connection(), MHD_connection_handle_idle(), MHD_digest_auth_check(), MHD_get_timeout(), MHD_handle_connection(), MHD_queue_auth_fail_response(), MHD_tls_connection_handle_idle(), run_tls_handshake(), and update_last_activity().

Here is the caller graph for this function:

void MHD_unescape_plus ( char *  arg)

Convert all occurences of '+' to ' '.

Parameters
argstring that is modified (in place), must be 0-terminated

Definition at line 113 of file internal.c.

References NULL.

Referenced by parse_arguments(), and post_process_urlencoded().

Here is the caller graph for this function: