|
MIDAS
|
Classes | |
| struct | mg_request_info |
| struct | mg_request_info::mg_header |
| struct | mg_event |
Macros | |
| #define | MG_REQUEST_BEGIN 1 |
| #define | MG_REQUEST_END 2 |
| #define | MG_HTTP_ERROR 3 |
| #define | MG_EVENT_LOG 4 |
| #define | MG_THREAD_BEGIN 5 |
| #define | MG_THREAD_END 6 |
| #define | PRINTF_FORMAT_STRING(s) s |
| #define | PRINTF_ARGS(x, y) |
Typedefs | |
| typedef int(* | mg_event_handler_t) (struct mg_event *event) |
| typedef void *(* | mg_thread_func_t) (void *) |
Enumerations | |
| enum | { WEBSOCKET_OPCODE_CONTINUATION = 0x0 , WEBSOCKET_OPCODE_TEXT = 0x1 , WEBSOCKET_OPCODE_BINARY = 0x2 , WEBSOCKET_OPCODE_CONNECTION_CLOSE = 0x8 , WEBSOCKET_OPCODE_PING = 0x9 , WEBSOCKET_OPCODE_PONG = 0xa } |
Functions | |
| struct mg_context * | mg_start (const char **configuration_options, mg_event_handler_t func, void *user_data) |
| void | mg_stop (struct mg_context *) |
| void | mg_websocket_handshake (struct mg_connection *) |
| int | mg_websocket_read (struct mg_connection *, int *bits, char **data) |
| int | mg_websocket_write (struct mg_connection *conn, int opcode, const char *data, size_t data_len) |
| 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, int len) |
| int | mg_printf (struct mg_connection *, PRINTF_FORMAT_STRING(const char *fmt),...) PRINTF_ARGS(2 |
| int void | mg_send_file (struct mg_connection *conn, const char *path) |
| int | mg_read (struct mg_connection *, void *buf, int 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 *dst, size_t dst_len) |
| int | mg_get_cookie (const char *cookie, const char *var_name, char *buf, size_t buf_len) |
| struct mg_connection * | mg_download (const char *host, int port, int use_ssl, char *error_buffer, size_t error_buffer_size, PRINTF_FORMAT_STRING(const char *request_fmt),...) PRINTF_ARGS(6 |
| struct mg_connection void | mg_close_connection (struct mg_connection *conn) |
| FILE * | mg_upload (struct mg_connection *conn, const char *destination_dir, char *path, int path_len) |
| int | mg_start_thread (mg_thread_func_t f, void *p) |
| const char * | mg_get_builtin_mime_type (const char *file_name) |
| const char * | mg_version (void) |
| int | mg_url_decode (const char *src, int src_len, char *dst, int dst_len, int is_form_url_encoded) |
| char * | mg_md5 (char buf[33],...) |
Variables | |
| const char * | mg_request_info::request_method |
| const char * | mg_request_info::uri |
| const char * | mg_request_info::http_version |
| const char * | mg_request_info::query_string |
| const char * | mg_request_info::remote_user |
| long | mg_request_info::remote_ip |
| int | mg_request_info::remote_port |
| int | mg_request_info::is_ssl |
| int | mg_request_info::num_headers |
| const char * | mg_request_info::mg_header::name |
| const char * | mg_request_info::mg_header::value |
| struct mg_request_info::mg_header | mg_request_info::http_headers [64] |
| int | mg_event::type |
| void * | mg_event::user_data |
| void * | mg_event::conn_data |
| void * | mg_event::event_param |
| struct mg_connection * | mg_event::conn |
| struct mg_request_info * | mg_event::request_info |
| #define MG_EVENT_LOG 4 |
Definition at line 58 of file mongoose4.h.
| #define MG_HTTP_ERROR 3 |
Definition at line 57 of file mongoose4.h.
| #define MG_REQUEST_BEGIN 1 |
Definition at line 55 of file mongoose4.h.
| #define MG_REQUEST_END 2 |
Definition at line 56 of file mongoose4.h.
| #define MG_THREAD_BEGIN 5 |
Definition at line 59 of file mongoose4.h.
| #define MG_THREAD_END 6 |
Definition at line 60 of file mongoose4.h.
| #define PRINTF_ARGS | ( | x, | |
| y | |||
| ) |
Definition at line 114 of file mongoose4.h.
| #define PRINTF_FORMAT_STRING | ( | s | ) | s |
Definition at line 108 of file mongoose4.h.
| typedef int(* mg_event_handler_t) (struct mg_event *event) |
Definition at line 70 of file mongoose4.h.
| typedef void *(* mg_thread_func_t) (void *) |
Definition at line 218 of file mongoose4.h.
| anonymous enum |
| Enumerator | |
|---|---|
| WEBSOCKET_OPCODE_CONTINUATION | |
| WEBSOCKET_OPCODE_TEXT | |
| WEBSOCKET_OPCODE_BINARY | |
| WEBSOCKET_OPCODE_CONNECTION_CLOSE | |
| WEBSOCKET_OPCODE_PING | |
| WEBSOCKET_OPCODE_PONG | |
Definition at line 81 of file mongoose4.h.
| struct mg_connection void mg_close_connection | ( | struct mg_connection * | conn | ) |
Definition at line 5097 of file mongoose4.cxx.


| struct mg_connection * mg_download | ( | const char * | host, |
| int | port, | ||
| int | use_ssl, | ||
| char * | error_buffer, | ||
| size_t | error_buffer_size, | ||
| PRINTF_FORMAT_STRING(const char *request_fmt) | , | ||
| ... | |||
| ) |
| const char * mg_get_builtin_mime_type | ( | const char * | file_name | ) |
Definition at line 2895 of file mongoose4.cxx.


| int mg_get_cookie | ( | const char * | cookie, |
| const char * | var_name, | ||
| char * | buf, | ||
| size_t | buf_len | ||
| ) |
Definition at line 2678 of file mongoose4.cxx.

| const char * mg_get_header | ( | const struct mg_connection * | conn, |
| const char * | name | ||
| ) |
Definition at line 693 of file mongoose4.cxx.


| const char * mg_get_option | ( | const struct mg_context * | ctx, |
| const char * | name | ||
| ) |
Definition at line 870 of file mongoose4.cxx.

| const char ** mg_get_valid_option_names | ( | void | ) |
Definition at line 855 of file mongoose4.cxx.
| int mg_get_var | ( | const char * | data, |
| size_t | data_len, | ||
| const char * | var_name, | ||
| char * | dst, | ||
| size_t | dst_len | ||
| ) |
Definition at line 2631 of file mongoose4.cxx.

| char * mg_md5 | ( | char | buf[33], |
| ... | |||
| ) |
Definition at line 1090 of file mongoose4.cxx.


| int mg_modify_passwords_file | ( | const char * | passwords_file_name, |
| const char * | domain, | ||
| const char * | user, | ||
| const char * | password | ||
| ) |
Definition at line 1314 of file mongoose4.cxx.

| int mg_printf | ( | struct mg_connection * | , |
| PRINTF_FORMAT_STRING(const char *fmt) | , | ||
| ... | |||
| ) |

| int mg_read | ( | struct mg_connection * | conn, |
| void * | buf, | ||
| int | len | ||
| ) |
Definition at line 2529 of file mongoose4.cxx.

| int void mg_send_file | ( | struct mg_connection * | conn, |
| const char * | path | ||
| ) |
Definition at line 3332 of file mongoose4.cxx.

| struct mg_context * mg_start | ( | const char ** | configuration_options, |
| mg_event_handler_t | func, | ||
| void * | user_data | ||
| ) |
Definition at line 5466 of file mongoose4.cxx.

| int mg_start_thread | ( | mg_thread_func_t | f, |
| void * | p | ||
| ) |
Definition at line 1802 of file mongoose4.cxx.

| void mg_stop | ( | struct mg_context * | ctx | ) |
Definition at line 5452 of file mongoose4.cxx.

| FILE * mg_upload | ( | struct mg_connection * | conn, |
| const char * | destination_dir, | ||
| char * | path, | ||
| int | path_len | ||
| ) |
Definition at line 4543 of file mongoose4.cxx.

| int mg_url_decode | ( | const char * | src, |
| int | src_len, | ||
| char * | dst, | ||
| int | dst_len, | ||
| int | is_form_url_encoded | ||
| ) |
Definition at line 2606 of file mongoose4.cxx.
| const char * mg_version | ( | void | ) |
Definition at line 2396 of file mongoose4.cxx.

| void mg_websocket_handshake | ( | struct mg_connection * | ) |
| int mg_websocket_read | ( | struct mg_connection * | , |
| int * | bits, | ||
| char ** | data | ||
| ) |
| int mg_websocket_write | ( | struct mg_connection * | conn, |
| int | opcode, | ||
| const char * | data, | ||
| size_t | data_len | ||
| ) |
| int mg_write | ( | struct mg_connection * | conn, |
| const void * | buf, | ||
| int | len | ||
| ) |
Definition at line 2568 of file mongoose4.cxx.


| struct mg_connection* mg_event::conn |
Definition at line 66 of file mongoose4.h.
| void* mg_event::conn_data |
Definition at line 63 of file mongoose4.h.
| void* mg_event::event_param |
Definition at line 64 of file mongoose4.h.
| struct mg_request_info::mg_header mg_request_info::http_headers[64] |
| const char* mg_request_info::http_version |
Definition at line 39 of file mongoose4.h.
| int mg_request_info::is_ssl |
Definition at line 44 of file mongoose4.h.
| const char* mg_request_info::mg_header::name |
Definition at line 48 of file mongoose4.h.
| int mg_request_info::num_headers |
Definition at line 46 of file mongoose4.h.
| const char* mg_request_info::query_string |
Definition at line 40 of file mongoose4.h.
| long mg_request_info::remote_ip |
Definition at line 42 of file mongoose4.h.
| int mg_request_info::remote_port |
Definition at line 43 of file mongoose4.h.
| const char* mg_request_info::remote_user |
Definition at line 41 of file mongoose4.h.
| struct mg_request_info* mg_event::request_info |
Definition at line 67 of file mongoose4.h.
| const char* mg_request_info::request_method |
Definition at line 37 of file mongoose4.h.
| int mg_event::type |
Definition at line 54 of file mongoose4.h.
| const char* mg_request_info::uri |
Definition at line 38 of file mongoose4.h.
| void* mg_event::user_data |
Definition at line 62 of file mongoose4.h.
| const char* mg_request_info::mg_header::value |
Definition at line 49 of file mongoose4.h.