#include <stddef.h>
Go to the source code of this file.
|
struct mg_context * | mg_start (mg_callback_t callback, void *user_data, const char **options) |
|
void | mg_stop (struct mg_context *) |
|
const char * | mg_get_option (const struct mg_context *ctx, const char *name) |
|
const char ** | mg_get_valid_option_names (void) |
|
int | mg_modify_passwords_file (const char *passwords_file_name, const char *domain, const char *user, const char *password) |
|
int | mg_write (struct mg_connection *, const void *buf, size_t len) |
|
int | mg_printf (struct mg_connection *, const char *fmt,...) |
|
void | mg_send_file (struct mg_connection *conn, const char *path) |
|
int | mg_read (struct mg_connection *, void *buf, size_t len) |
|
const char * | mg_get_header (const struct mg_connection *, const char *name) |
|
int | mg_get_var (const char *data, size_t data_len, const char *var_name, char *buf, size_t buf_len) |
|
int | mg_get_cookie (const struct mg_connection *, const char *cookie_name, char *buf, size_t buf_len) |
|
const char * | mg_version (void) |
|
void | mg_md5 (char *buf,...) |
|
◆ mg_callback_t
◆ mg_event
Enumerator |
---|
MG_NEW_REQUEST | |
MG_HTTP_ERROR | |
MG_EVENT_LOG | |
MG_INIT_SSL | |
◆ mg_get_cookie()
int mg_get_cookie |
( |
const struct mg_connection * |
conn, |
|
|
const char * |
cookie_name, |
|
|
char * |
buf, |
|
|
size_t |
buf_len |
|
) |
| |
◆ mg_get_header()
const char * mg_get_header |
( |
const struct mg_connection * |
conn, |
|
|
const char * |
name |
|
) |
| |
◆ mg_get_option()
const char * mg_get_option |
( |
const struct mg_context * |
ctx, |
|
|
const char * |
name |
|
) |
| |
◆ mg_get_valid_option_names()
const char ** mg_get_valid_option_names |
( |
void |
| ) |
|
◆ mg_get_var()
int mg_get_var |
( |
const char * |
data, |
|
|
size_t |
data_len, |
|
|
const char * |
var_name, |
|
|
char * |
buf, |
|
|
size_t |
buf_len |
|
) |
| |
◆ mg_md5()
void mg_md5 |
( |
char * |
buf, |
|
|
|
... |
|
) |
| |
◆ mg_modify_passwords_file()
int mg_modify_passwords_file |
( |
const char * |
passwords_file_name, |
|
|
const char * |
domain, |
|
|
const char * |
user, |
|
|
const char * |
password |
|
) |
| |
◆ mg_printf()
int mg_printf |
( |
struct mg_connection * |
conn, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ mg_read()
int mg_read |
( |
struct mg_connection * |
conn, |
|
|
void * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ mg_send_file()
void mg_send_file |
( |
struct mg_connection * |
conn, |
|
|
const char * |
path |
|
) |
| |
◆ mg_start()
◆ mg_stop()
◆ mg_version()
const char * mg_version |
( |
void |
| ) |
|
◆ mg_write()
int mg_write |
( |
struct mg_connection * |
conn, |
|
|
const void * |
buf, |
|
|
size_t |
len |
|
) |
| |