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 } |
#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.
Definition at line 70 of file mongoose4.h.
Definition at line 218 of file mongoose4.h.
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) | , | ||
... | |||
) |
Definition at line 2895 of file mongoose4.cxx.
Definition at line 2678 of file mongoose4.cxx.
Definition at line 693 of file mongoose4.cxx.
Definition at line 870 of file mongoose4.cxx.
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.
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.
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.
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 | ||
) |
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] |
Definition at line 39 of file mongoose4.h.
int mg_request_info::is_ssl |
Definition at line 44 of file mongoose4.h.
Definition at line 48 of file mongoose4.h.
int mg_request_info::num_headers |
Definition at line 46 of file mongoose4.h.
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.
Definition at line 41 of file mongoose4.h.
struct mg_request_info* mg_event::request_info |
Definition at line 67 of file mongoose4.h.
Definition at line 37 of file mongoose4.h.
int mg_event::type |
Definition at line 54 of file mongoose4.h.
Definition at line 38 of file mongoose4.h.
void* mg_event::user_data |
Definition at line 62 of file mongoose4.h.
Definition at line 49 of file mongoose4.h.