|
MIDAS
|
#include "mongoose614.h"#include <string.h>#include <stdarg.h>#include <stdio.h>#include <limits.h>#include <stddef.h>#include <sys/time.h>#include <assert.h>#include <ctype.h>#include <stdlib.h>#include <signal.h>#include <reent.h>#include <sys/stat.h>#include <unistd.h>#include <inc/hw_types.h>#include <inc/hw_memmap.h>#include <driverlib/prcm.h>#include <driverlib/rom.h>#include <driverlib/rom_map.h>#include <driverlib/uart.h>#include <driverlib/utils.h>#include <ti/sysbios/BIOS.h>#include <ti/sysbios/knl/Clock.h>#include <errno.h>#include <oslib/osi.h>#include <stdint.h>#include <lwip/init.h>#include <lwip/pbuf.h>#include <lwip/tcp.h>#include <lwip/tcpip.h>#include <lwip/tcp_impl.h>#include <lwip/udp.h>
Go to the source code of this file.
Classes | |
| struct | ctl_msg |
| union | char64long16 |
| struct | mg_q_msg |
| struct | mg_lwip_conn_state |
| struct | mg_lwip_if_connect_tcp_ctx |
| struct | mg_lwip_if_listen_ctx |
| struct | mg_lwip_tcp_write_ctx |
| struct | udp_sendto_ctx |
| struct | tcp_recved_ctx |
| struct | mg_ev_mgr_lwip_signal |
| struct | mg_ev_mgr_lwip_data |
Typedefs | |
| typedef int | cs_dirent_dummy |
Enumerations | |
| enum | cs_log_level { LL_NONE = -1 , LL_ERROR = 0 , LL_WARN = 1 , LL_INFO = 2 , LL_DEBUG = 3 , LL_VERBOSE_DEBUG = 4 , _LL_MIN = -2 , _LL_MAX = 5 } |
| enum | mg_q_msg_type { MG_Q_MSG_CB } |
| enum | mg_sig_type { MG_SIG_CONNECT_RESULT = 1 , MG_SIG_RECV = 2 , MG_SIG_CLOSE_CONN = 3 , MG_SIG_TOMBSTONE = 4 , MG_SIG_ACCEPT = 5 } |
Functions | |
| MG_INTERNAL struct mg_connection * | mg_do_connect (struct mg_connection *nc, int proto, union socket_address *sa) |
| MG_INTERNAL int | mg_parse_address (const char *str, union socket_address *sa, int *proto, char *host, size_t host_len) |
| MG_INTERNAL void | mg_call (struct mg_connection *nc, mg_event_handler_t ev_handler, void *user_data, int ev, void *ev_data) |
| void | mg_forward (struct mg_connection *from, struct mg_connection *to) |
| MG_INTERNAL void | mg_add_conn (struct mg_mgr *mgr, struct mg_connection *c) |
| MG_INTERNAL void | mg_remove_conn (struct mg_connection *c) |
| MG_INTERNAL struct mg_connection * | mg_create_connection (struct mg_mgr *mgr, mg_event_handler_t callback, struct mg_add_sock_opts opts) |
| MG_INTERNAL int | mg_get_errno (void) |
| MG_INTERNAL void | mg_close_conn (struct mg_connection *conn) |
| static void | cs_base64_emit_code (struct cs_base64_ctx *ctx, int v) |
| static void | cs_base64_emit_chunk (struct cs_base64_ctx *ctx) |
| void | cs_base64_init (struct cs_base64_ctx *ctx, cs_base64_putc_t b64_putc, void *user_data) |
| void | cs_base64_update (struct cs_base64_ctx *ctx, const char *str, size_t len) |
| void | cs_base64_finish (struct cs_base64_ctx *ctx) |
| void | cs_base64_encode (const unsigned char *src, int src_len, char *dst) |
| static unsigned char | from_b64 (unsigned char ch) |
| int | cs_base64_decode (const unsigned char *s, int len, char *dst, int *dec_len) |
| void | cs_log_set_level (enum cs_log_level level) |
| void | cs_log_set_file_level (const char *file_level) |
| int | cs_log_print_prefix (enum cs_log_level level, const char *fname, int line) |
| double | cs_time (void) WEAK |
| double | cs_timegm (const struct tm *tm) |
| static void | byteReverse (unsigned char *buf, unsigned longs) |
| void | cs_md5_init (cs_md5_ctx *ctx) |
| static void | cs_md5_transform (uint32_t buf[4], uint32_t const in[16]) |
| void | cs_md5_update (cs_md5_ctx *ctx, const unsigned char *buf, size_t len) |
| void | cs_md5_final (unsigned char digest[16], cs_md5_ctx *ctx) |
| static uint32_t | blk0 (union char64long16 *block, int i) |
| void | cs_sha1_transform (uint32_t state[5], const unsigned char buffer[64]) |
| void | cs_sha1_init (cs_sha1_ctx *context) |
| void | cs_sha1_update (cs_sha1_ctx *context, const unsigned char *data, uint32_t len) |
| void | cs_sha1_final (unsigned char digest[20], cs_sha1_ctx *context) |
| void | cs_hmac_sha1 (const unsigned char *key, size_t keylen, const unsigned char *data, size_t datalen, unsigned char out[20]) |
| void | mbuf_init (struct mbuf *mbuf, size_t initial_size) WEAK |
| void | mbuf_free (struct mbuf *mbuf) WEAK |
| void | mbuf_resize (struct mbuf *a, size_t new_size) WEAK |
| void | mbuf_trim (struct mbuf *mbuf) WEAK |
| size_t | mbuf_insert (struct mbuf *a, size_t off, const void *buf, size_t) WEAK |
| size_t | mbuf_append (struct mbuf *a, const void *buf, size_t len) WEAK |
| size_t | mbuf_append_and_free (struct mbuf *a, void *buf, size_t len) WEAK |
| void | mbuf_remove (struct mbuf *mb, size_t n) WEAK |
| void | mbuf_clear (struct mbuf *mb) WEAK |
| void | mbuf_move (struct mbuf *from, struct mbuf *to) WEAK |
| int | mg_ncasecmp (const char *s1, const char *s2, size_t len) WEAK |
| struct mg_str | mg_mk_str (const char *s) WEAK |
| struct mg_str | mg_mk_str_n (const char *s, size_t len) WEAK |
| int | mg_vcmp (const struct mg_str *str1, const char *str2) WEAK |
| int | mg_vcasecmp (const struct mg_str *str1, const char *str2) WEAK |
| static struct mg_str | mg_strdup_common (const struct mg_str s, int nul_terminate) |
| struct mg_str | mg_strdup (const struct mg_str s) WEAK |
| struct mg_str | mg_strdup_nul (const struct mg_str s) WEAK |
| const char * | mg_strchr (const struct mg_str s, int c) WEAK |
| int | mg_strcmp (const struct mg_str str1, const struct mg_str str2) WEAK |
| int | mg_strncmp (const struct mg_str, const struct mg_str, size_t n) WEAK |
| void | mg_strfree (struct mg_str *s) WEAK |
| const char * | mg_strstr (const struct mg_str haystack, const struct mg_str needle) WEAK |
| struct mg_str | mg_strstrip (struct mg_str s) WEAK |
| int | mg_str_starts_with (struct mg_str s, struct mg_str prefix) WEAK |
| size_t | c_strnlen (const char *s, size_t maxlen) WEAK |
| static int | c_itoa (char *buf, size_t buf_size, int64_t num, int base, int flags, int field_width) |
| int | c_vsnprintf (char *buf, size_t buf_size, const char *fmt, va_list ap) WEAK |
| int | c_snprintf (char *buf, size_t buf_size, const char *fmt,...) WEAK |
| const char * | c_strnstr (const char *s, const char *find, size_t slen) WEAK |
| void | cs_to_hex (char *to, const unsigned char *p, size_t len) WEAK |
| static int | fourbit (int ch) |
| void | cs_from_hex (char *to, const char *p, size_t len) WEAK |
| static int | str_util_lowercase (const char *s) |
| int | mg_casecmp (const char *s1, const char *s2) WEAK |
| int | mg_asprintf (char **buf, size_t size, const char *fmt,...) WEAK |
| int | mg_avprintf (char **buf, size_t size, const char *fmt, va_list ap) WEAK |
| const char * | mg_next_comma_list_entry (const char *, struct mg_str *, struct mg_str *) WEAK |
| struct mg_str | mg_next_comma_list_entry_n (struct mg_str list, struct mg_str *val, struct mg_str *eq_val) WEAK |
| size_t | mg_match_prefix_n (const struct mg_str, const struct mg_str) WEAK |
| size_t | mg_match_prefix (const char *, int, const char *) WEAK |
| MG_INTERNAL void | mg_timer (struct mg_connection *c, double now) |
| MG_INTERNAL size_t | recv_avail_size (struct mg_connection *conn, size_t max) |
| static int | mg_do_recv (struct mg_connection *nc) |
| int | mg_if_poll (struct mg_connection *nc, double now) |
| void | mg_destroy_conn (struct mg_connection *conn, int destroy_if) |
| void | mg_mgr_init (struct mg_mgr *m, void *user_data) |
| void | mg_mgr_init_opt (struct mg_mgr *m, void *user_data, struct mg_mgr_init_opts opts) |
| void | mg_mgr_free (struct mg_mgr *m) |
| int | mg_mgr_poll (struct mg_mgr *m, int timeout_ms) |
| int | mg_vprintf (struct mg_connection *nc, const char *fmt, va_list ap) |
| int | mg_printf (struct mg_connection *conn, const char *fmt,...) |
| MG_INTERNAL struct mg_connection * | mg_create_connection_base (struct mg_mgr *mgr, mg_event_handler_t callback, struct mg_add_sock_opts opts) |
| struct mg_connection * | mg_if_accept_new_conn (struct mg_connection *lc) |
| void | mg_if_accept_tcp_cb (struct mg_connection *nc, union socket_address *sa, size_t sa_len) |
| void | mg_send (struct mg_connection *nc, const void *buf, int len) |
| static int | mg_recv_tcp (struct mg_connection *nc, char *buf, size_t len) |
| static int | mg_recv_udp (struct mg_connection *nc, char *buf, size_t len) |
| void | mg_if_can_recv_cb (struct mg_connection *nc) |
| void | mg_if_can_send_cb (struct mg_connection *nc) |
| void | mg_if_connect_cb (struct mg_connection *nc, int err) |
| struct mg_connection * | mg_connect (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t callback, void *user_data)) |
| struct mg_connection * | mg_connect_opt (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t callback, void *user_data), struct mg_connect_opts opts) |
| struct mg_connection * | mg_bind (struct mg_mgr *srv, const char *address, MG_CB(mg_event_handler_t event_handler, void *user_data)) |
| struct mg_connection * | mg_bind_opt (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t callback, void *user_data), struct mg_bind_opts opts) |
| struct mg_connection * | mg_next (struct mg_mgr *s, struct mg_connection *conn) |
| static int | isbyte (int n) |
| static int | parse_net (const char *spec, uint32_t *net, uint32_t *mask) |
| int | mg_check_ip_acl (const char *acl, uint32_t remote_ip) |
| double | mg_set_timer (struct mg_connection *c, double timestamp) |
| void | mg_sock_set (struct mg_connection *nc, sock_t sock) |
| void | mg_if_get_conn_addr (struct mg_connection *nc, int remote, union socket_address *sa) |
| struct mg_connection * | mg_add_sock_opt (struct mg_mgr *s, sock_t sock, MG_CB(mg_event_handler_t callback, void *user_data), struct mg_add_sock_opts opts) |
| struct mg_connection * | mg_add_sock (struct mg_mgr *s, sock_t sock, MG_CB(mg_event_handler_t callback, void *user_data)) |
| double | mg_time (void) |
| struct mg_iface * | mg_if_create_iface (const struct mg_iface_vtable *vtable, struct mg_mgr *mgr) |
| struct mg_iface * | mg_find_iface (struct mg_mgr *mgr, const struct mg_iface_vtable *vtable, struct mg_iface *from) |
| double | mg_mgr_min_timer (const struct mg_mgr *mgr) |
| static void | mg_null_if_connect_tcp (struct mg_connection *c, const union socket_address *sa) |
| static void | mg_null_if_connect_udp (struct mg_connection *c) |
| static int | mg_null_if_listen_tcp (struct mg_connection *c, union socket_address *sa) |
| static int | mg_null_if_listen_udp (struct mg_connection *c, union socket_address *sa) |
| static int | mg_null_if_tcp_send (struct mg_connection *c, const void *buf, size_t len) |
| static int | mg_null_if_udp_send (struct mg_connection *c, const void *buf, size_t len) |
| int | mg_null_if_tcp_recv (struct mg_connection *c, void *buf, size_t len) |
| int | mg_null_if_udp_recv (struct mg_connection *c, void *buf, size_t len, union socket_address *sa, size_t *sa_len) |
| static int | mg_null_if_create_conn (struct mg_connection *c) |
| static void | mg_null_if_destroy_conn (struct mg_connection *c) |
| static void | mg_null_if_sock_set (struct mg_connection *c, sock_t sock) |
| static void | mg_null_if_init (struct mg_iface *iface) |
| static void | mg_null_if_free (struct mg_iface *iface) |
| static void | mg_null_if_add_conn (struct mg_connection *c) |
| static void | mg_null_if_remove_conn (struct mg_connection *c) |
| static time_t | mg_null_if_poll (struct mg_iface *iface, int timeout_ms) |
| static void | mg_null_if_get_conn_addr (struct mg_connection *c, int remote, union socket_address *sa) |
| static sock_t | mg_open_listening_socket (union socket_address *sa, int type, int proto) |
| void | mg_set_non_blocking_mode (sock_t sock) |
| static int | mg_is_error (void) |
| void | mg_socket_if_connect_tcp (struct mg_connection *nc, const union socket_address *sa) |
| void | mg_socket_if_connect_udp (struct mg_connection *nc) |
| int | mg_socket_if_listen_tcp (struct mg_connection *nc, union socket_address *sa) |
| static int | mg_socket_if_listen_udp (struct mg_connection *nc, union socket_address *sa) |
| static int | mg_socket_if_tcp_send (struct mg_connection *nc, const void *buf, size_t len) |
| static int | mg_socket_if_udp_send (struct mg_connection *nc, const void *buf, size_t len) |
| static int | mg_socket_if_tcp_recv (struct mg_connection *nc, void *buf, size_t len) |
| static int | mg_socket_if_udp_recv (struct mg_connection *nc, void *buf, size_t len, union socket_address *sa, size_t *sa_len) |
| int | mg_socket_if_create_conn (struct mg_connection *nc) |
| void | mg_socket_if_destroy_conn (struct mg_connection *nc) |
| static int | mg_accept_conn (struct mg_connection *lc) |
| void | mg_mgr_handle_conn (struct mg_connection *nc, int fd_flags, double now) |
| void | mg_socket_if_sock_set (struct mg_connection *nc, sock_t sock) |
| void | mg_socket_if_init (struct mg_iface *iface) |
| void | mg_socket_if_free (struct mg_iface *iface) |
| void | mg_socket_if_add_conn (struct mg_connection *nc) |
| void | mg_socket_if_remove_conn (struct mg_connection *nc) |
| void | mg_add_to_set (sock_t sock, fd_set *set, sock_t *max_fd) |
| time_t | mg_socket_if_poll (struct mg_iface *iface, int timeout_ms) |
| static void | mg_sock_get_addr (sock_t sock, int remote, union socket_address *sa) |
| void | mg_sock_to_str (sock_t sock, char *buf, size_t len, int flags) |
| void | mg_socket_if_get_conn_addr (struct mg_connection *nc, int remote, union socket_address *sa) |
| static void | parse_uri_component (const char **p, const char *end, const char *seps, struct mg_str *res) |
| int | mg_parse_uri (const struct mg_str uri, struct mg_str *scheme, struct mg_str *user_info, struct mg_str *host, unsigned int *port, struct mg_str *path, struct mg_str *query, struct mg_str *fragment) |
| int | mg_normalize_uri_path (const struct mg_str *in, struct mg_str *out) |
| int | mg_assemble_uri (const struct mg_str *scheme, const struct mg_str *user_info, const struct mg_str *host, unsigned int port, const struct mg_str *path, const struct mg_str *query, const struct mg_str *fragment, int normalize_path, struct mg_str *uri) |
| const char * | mg_skip (const char *s, const char *end, const char *delims, struct mg_str *v) |
| void | mg_base64_encode (const unsigned char *src, int src_len, char *dst) |
| int | mg_base64_decode (const unsigned char *s, int len, char *dst) |
| void | mg_set_close_on_exec (sock_t sock) |
| int | mg_sock_addr_to_str (const union socket_address *sa, char *buf, size_t len, int flags) |
| int | mg_conn_addr_to_str (struct mg_connection *nc, char *buf, size_t len, int flags) |
| int | mg_is_big_endian (void) |
| void | mg_mbuf_append_base64_putc (char ch, void *user_data) |
| void | mg_mbuf_append_base64 (struct mbuf *mbuf, const void *data, size_t len) |
| void | mg_basic_auth_header (const struct mg_str user, const struct mg_str pass, struct mbuf *buf) |
| struct mg_str | mg_url_encode_opt (const struct mg_str src, const struct mg_str safe, unsigned int flags) |
| struct mg_str | mg_url_encode (const struct mg_str src) |
| void | fprint_str (FILE *fp, const char *str) |
| void | _exit (int status) |
| void | _not_implemented (const char *what) |
| int | _kill (int pid, int sig) |
| int | _getpid () |
| int | _isatty (int fd) |
| int | gettimeofday (struct timeval *tp, void *tzp) |
| const char * | inet_ntop (int af, const void *src, char *dst, socklen_t size) |
| char * | inet_ntoa (struct in_addr n) |
| int | inet_pton (int af, const char *src, void *dst) |
| static void | mg_task (void *arg) |
| bool | mg_start_task (int priority, int stack_size, mg_init_cb mg_init) |
| void | mg_run_in_task (void(*cb)(struct mg_mgr *mgr, void *arg), void *cb_arg) |
| static sock_t | mg_open_listening_socket (struct mg_connection *nc, union socket_address *sa, int type, int proto) |
| static int | mg_is_error (int n) |
| static void | mg_sl_if_connect_tcp (struct mg_connection *nc, const union socket_address *sa) |
| static void | mg_sl_if_connect_udp (struct mg_connection *nc) |
| static int | mg_sl_if_listen_tcp (struct mg_connection *nc, union socket_address *sa) |
| static int | mg_sl_if_listen_udp (struct mg_connection *nc, union socket_address *sa) |
| static int | mg_sl_if_tcp_send (struct mg_connection *nc, const void *buf, size_t len) |
| static int | mg_sl_if_udp_send (struct mg_connection *nc, const void *buf, size_t len) |
| static int | mg_sl_if_tcp_recv (struct mg_connection *nc, void *buf, size_t len) |
| static int | mg_sl_if_udp_recv (struct mg_connection *nc, void *buf, size_t len, union socket_address *sa, size_t *sa_len) |
| static int | mg_sl_if_create_conn (struct mg_connection *nc) |
| void | mg_sl_if_destroy_conn (struct mg_connection *nc) |
| void | mg_sl_if_sock_set (struct mg_connection *nc, sock_t sock) |
| void | mg_sl_if_init (struct mg_iface *iface) |
| void | mg_sl_if_free (struct mg_iface *iface) |
| void | mg_sl_if_add_conn (struct mg_connection *nc) |
| void | mg_sl_if_remove_conn (struct mg_connection *nc) |
| time_t | mg_sl_if_poll (struct mg_iface *iface, int timeout_ms) |
| void | mg_sl_if_get_conn_addr (struct mg_connection *nc, int remote, union socket_address *sa) |
| void | sl_restart_cb (struct mg_mgr *mgr) |
| void | mg_lwip_post_signal (enum mg_sig_type sig, struct mg_connection *nc) |
| void | mg_lwip_mgr_schedule_poll (struct mg_mgr *mgr) |
| void | mg_lwip_if_init (struct mg_iface *iface) |
| void | mg_lwip_if_free (struct mg_iface *iface) |
| void | mg_lwip_if_add_conn (struct mg_connection *nc) |
| void | mg_lwip_if_remove_conn (struct mg_connection *nc) |
| time_t | mg_lwip_if_poll (struct mg_iface *iface, int timeout_ms) |
| static void | mg_lwip_recv_common (struct mg_connection *nc, struct pbuf *p) |
| static err_t | mg_lwip_tcp_conn_cb (void *arg, struct tcp_pcb *tpcb, err_t err) |
| static void | mg_lwip_tcp_error_cb (void *arg, err_t err) |
| static err_t | mg_lwip_tcp_recv_cb (void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) |
| static err_t | mg_lwip_tcp_sent_cb (void *arg, struct tcp_pcb *tpcb, u16_t num_sent) |
| static void | mg_lwip_if_connect_tcp_tcpip (void *arg) |
| void | mg_lwip_if_connect_tcp (struct mg_connection *nc, const union socket_address *sa) |
| static void | mg_lwip_udp_recv_cb (void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port) |
| static int | mg_lwip_if_udp_recv (struct mg_connection *nc, void *buf, size_t len, union socket_address *sa, size_t *sa_len) |
| static void | mg_lwip_if_connect_udp_tcpip (void *arg) |
| void | mg_lwip_if_connect_udp (struct mg_connection *nc) |
| static void | tcp_close_tcpip (void *arg) |
| void | mg_lwip_handle_accept (struct mg_connection *nc) |
| static err_t | mg_lwip_accept_cb (void *arg, struct tcp_pcb *newtpcb, err_t err) |
| static void | mg_lwip_if_listen_tcp_tcpip (void *arg) |
| int | mg_lwip_if_listen_tcp (struct mg_connection *nc, union socket_address *sa) |
| static void | mg_lwip_if_listen_udp_tcpip (void *arg) |
| int | mg_lwip_if_listen_udp (struct mg_connection *nc, union socket_address *sa) |
| static void | tcp_output_tcpip (void *arg) |
| static void | mg_lwip_tcp_write_tcpip (void *arg) |
| int | mg_lwip_if_tcp_send (struct mg_connection *nc, const void *buf, size_t len) |
| static void | udp_sendto_tcpip (void *arg) |
| static int | mg_lwip_if_udp_send (struct mg_connection *nc, const void *data, size_t len) |
| static int | mg_lwip_if_can_send (struct mg_connection *nc, struct mg_lwip_conn_state *cs) |
| void | tcp_recved_tcpip (void *arg) |
| static int | mg_lwip_if_tcp_recv (struct mg_connection *nc, void *buf, size_t len) |
| int | mg_lwip_if_create_conn (struct mg_connection *nc) |
| static void | udp_remove_tcpip (void *arg) |
| void | mg_lwip_if_destroy_conn (struct mg_connection *nc) |
| void | mg_lwip_if_get_conn_addr (struct mg_connection *nc, int remote, union socket_address *sa) |
| void | mg_lwip_if_sock_set (struct mg_connection *nc, sock_t sock) |
| void | mg_ev_mgr_lwip_process_signals (struct mg_mgr *mgr) |
| int | mg_pic32_if_create_conn (struct mg_connection *nc) |
| void | mg_pic32_if_recved (struct mg_connection *nc, size_t len) |
| void | mg_pic32_if_add_conn (struct mg_connection *nc) |
| void | mg_pic32_if_init (struct mg_iface *iface) |
| void | mg_pic32_if_free (struct mg_iface *iface) |
| void | mg_pic32_if_remove_conn (struct mg_connection *nc) |
| void | mg_pic32_if_destroy_conn (struct mg_connection *nc) |
| int | mg_pic32_if_listen_udp (struct mg_connection *nc, union socket_address *sa) |
| void | mg_pic32_if_udp_send (struct mg_connection *nc, const void *buf, size_t len) |
| void | mg_pic32_if_tcp_send (struct mg_connection *nc, const void *buf, size_t len) |
| int | mg_pic32_if_listen_tcp (struct mg_connection *nc, union socket_address *sa) |
| static void | mg_handle_send (struct mg_connection *nc) |
| static void | mg_handle_recv (struct mg_connection *nc) |
| time_t | mg_pic32_if_poll (struct mg_iface *iface, int timeout_ms) |
| void | mg_pic32_if_sock_set (struct mg_connection *nc, sock_t sock) |
| void | mg_pic32_if_get_conn_addr (struct mg_connection *nc, int remote, union socket_address *sa) |
| void | mg_pic32_if_connect_tcp (struct mg_connection *nc, const union socket_address *sa) |
| void | mg_pic32_if_connect_udp (struct mg_connection *nc) |
Variables | |
| void *(* | test_malloc )(size_t size) |
| void *(* | test_calloc )(size_t count, size_t size) |
| enum cs_log_level | cs_log_level |
| enum cs_log_level cs_log_level | WEAK |
| const struct mg_iface_vtable | mg_socket_iface_vtable = MG_SOCKET_IFACE_VTABLE |
| const struct mg_iface_vtable | mg_default_iface_vtable = MG_NULL_IFACE_VTABLE |
| const struct mg_iface_vtable * | mg_ifaces [] |
| int | mg_num_ifaces = (int) (sizeof(mg_ifaces) / sizeof(mg_ifaces[0])) |
| const struct mg_iface_vtable | mg_null_iface_vtable = MG_NULL_IFACE_VTABLE |
| static OsiMsgQ_t | s_mg_q |
| const struct mg_iface_vtable | mg_simplelink_iface_vtable = MG_SL_IFACE_VTABLE |
| const struct mg_iface_vtable | mg_lwip_iface_vtable = MG_LWIP_IFACE_VTABLE |
| const struct mg_iface_vtable | mg_pic32_iface_vtable = MG_PIC32_IFACE_VTABLE |
| #define _MG_ALLOWED_CONNECT_FLAGS_MASK |
Definition at line 2402 of file mongoose614.cxx.
| #define _MG_CALLBACK_MODIFIABLE_FLAGS_MASK |
Definition at line 2406 of file mongoose614.cxx.
| #define _MG_F_FD_CAN_READ 1 |
Definition at line 4034 of file mongoose614.cxx.
| #define _MG_F_FD_CAN_READ 1 |
Definition at line 4034 of file mongoose614.cxx.
| #define _MG_F_FD_CAN_WRITE 1 << 1 |
Definition at line 4035 of file mongoose614.cxx.
| #define _MG_F_FD_CAN_WRITE 1 << 1 |
Definition at line 4035 of file mongoose614.cxx.
| #define _MG_F_FD_ERROR 1 << 2 |
Definition at line 4036 of file mongoose614.cxx.
| #define _MG_F_FD_ERROR 1 << 2 |
Definition at line 4036 of file mongoose614.cxx.
| #define BASE64_ENCODE_BODY |
Definition at line 311 of file mongoose614.cxx.
| #define BASE64_FLUSH | ( | ) |
Definition at line 341 of file mongoose614.cxx.
| #define BASE64_OUT | ( | ch | ) |
Definition at line 336 of file mongoose614.cxx.
| #define blk | ( | i | ) |
Definition at line 1294 of file mongoose614.cxx.
| #define C_DISABLE_BUILTIN_SNPRINTF 0 |
Definition at line 1854 of file mongoose614.cxx.
| #define C_SNPRINTF_APPEND_CHAR | ( | ch | ) |
| #define C_SNPRINTF_FLAG_ZERO 1 |
Definition at line 1873 of file mongoose614.cxx.
| #define CONSOLE_UART UARTA0_BASE |
Definition at line 13352 of file mongoose614.cxx.
| #define CS_COMMON_CS_DBG_H_ |
Definition at line 453 of file mongoose614.cxx.
| #define CS_COMMON_CS_DIRENT_H_ |
Definition at line 750 of file mongoose614.cxx.
| #define CS_COMMON_CS_ENDIAN_H_ |
Definition at line 1013 of file mongoose614.cxx.
| #define CS_COMMON_MG_MEM_H_ |
Definition at line 185 of file mongoose614.cxx.
| #define CS_COMMON_PLATFORMS_LWIP_MG_NET_IF_LWIP_H_ |
Definition at line 15141 of file mongoose614.cxx.
| #define CS_COMMON_PLATFORMS_PIC32_NET_IF_H_ |
Definition at line 16191 of file mongoose614.cxx.
| #define CS_COMMON_PLATFORMS_SIMPLELINK_SL_FS_SLFS_H_ |
Definition at line 13512 of file mongoose614.cxx.
| #define CS_COMMON_PLATFORMS_SIMPLELINK_SL_NET_IF_H_ |
Definition at line 14412 of file mongoose614.cxx.
| #define CS_ENABLE_DEBUG 0 |
Definition at line 462 of file mongoose614.cxx.
| #define CS_LOG_ENABLE_TS_DIFF 0 |
Definition at line 470 of file mongoose614.cxx.
| #define CS_LOG_PREFIX_LEN 24 |
Definition at line 466 of file mongoose614.cxx.
| #define CS_MONGOOSE_SRC_INTERNAL_H_ |
Definition at line 11 of file mongoose614.cxx.
| #define CS_MONGOOSE_SRC_NET_IF_SOCKET_H_ |
Definition at line 3575 of file mongoose614.cxx.
| #define CS_MONGOOSE_SRC_NET_IF_SOCKS_H_ |
Definition at line 3603 of file mongoose614.cxx.
| #define DBG | ( | x | ) |
Definition at line 574 of file mongoose614.cxx.
| #define F1 | ( | x, | |
| y, | |||
| z | |||
| ) | (z ^ (x & (y ^ z))) |
Definition at line 1082 of file mongoose614.cxx.
| #define F2 | ( | x, | |
| y, | |||
| z | |||
| ) | F1(z, x, y) |
Definition at line 1083 of file mongoose614.cxx.
| #define F3 | ( | x, | |
| y, | |||
| z | |||
| ) | (x ^ y ^ z) |
Definition at line 1084 of file mongoose614.cxx.
| #define F4 | ( | x, | |
| y, | |||
| z | |||
| ) | (y ^ (x | ~z)) |
Definition at line 1085 of file mongoose614.cxx.
| #define intptr_t long |
Definition at line 2412 of file mongoose614.cxx.
Definition at line 15233 of file mongoose614.cxx.
| #define IPADDR_NTOA ipaddr_ntoa |
Definition at line 15253 of file mongoose614.cxx.
| #define LOG | ( | l, | |
| x | |||
| ) |
Definition at line 573 of file mongoose614.cxx.
| #define MAX | ( | a, | |
| b | |||
| ) | ((a) > (b) ? (a) : (b)) |
Definition at line 10465 of file mongoose614.cxx.
| #define MBUF_FREE MG_FREE |
Definition at line 20 of file mongoose614.cxx.
| #define MBUF_REALLOC MG_REALLOC |
Definition at line 16 of file mongoose614.cxx.
| #define MD5STEP | ( | f, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| data, | |||
| s | |||
| ) | (w += f(x, y, z) + data, w = w << s | w >> (32 - s), w += x) |
Definition at line 1087 of file mongoose614.cxx.
| #define MG_CALLOC calloc |
Definition at line 196 of file mongoose614.cxx.
| #define MG_COPY_COMMON_CONNECTION_OPTIONS | ( | dst, | |
| src | |||
| ) | memcpy(dst, src, sizeof(*dst)); |
Definition at line 2398 of file mongoose614.cxx.
| #define MG_CTL_MSG_MESSAGE_SIZE 8192 |
Definition at line 42 of file mongoose614.cxx.
| #define MG_ENABLE_NET_IF_LWIP_LOW_LEVEL MG_NET_IF == MG_NET_IF_LWIP_LOW_LEVEL |
Definition at line 15144 of file mongoose614.cxx.
| #define MG_ENABLE_NET_IF_PIC32 MG_NET_IF == MG_NET_IF_PIC32 |
Definition at line 16200 of file mongoose614.cxx.
| #define MG_ENABLE_NET_IF_SIMPLELINK MG_NET_IF == MG_NET_IF_SIMPLELINK |
Definition at line 14421 of file mongoose614.cxx.
| #define MG_ENABLE_NET_IF_SOCKET MG_NET_IF == MG_NET_IF_SOCKET |
Definition at line 3584 of file mongoose614.cxx.
| #define MG_FREE free |
Definition at line 204 of file mongoose614.cxx.
| #define MG_INTERNAL static |
Definition at line 29 of file mongoose614.cxx.
| #define MG_LWIP_IFACE_VTABLE |
Definition at line 15881 of file mongoose614.cxx.
| #define MG_MALLOC malloc |
Definition at line 192 of file mongoose614.cxx.
| #define MG_MAX_HOST_LEN 200 |
Definition at line 2389 of file mongoose614.cxx.
| #define MG_NULL_IFACE_VTABLE |
Definition at line 3804 of file mongoose614.cxx.
| #define MG_PIC32_IFACE_VTABLE |
Definition at line 16490 of file mongoose614.cxx.
| #define MG_REALLOC realloc |
Definition at line 200 of file mongoose614.cxx.
| #define MG_SET_PTRPTR | ( | _ptr, | |
| _v | |||
| ) |
Definition at line 23 of file mongoose614.cxx.
| #define MG_SIG_QUEUE_LEN 32 |
Definition at line 15932 of file mongoose614.cxx.
| #define MG_SL_IFACE_VTABLE |
Definition at line 14838 of file mongoose614.cxx.
| #define MG_SOCKET_IFACE_VTABLE |
Definition at line 4376 of file mongoose614.cxx.
| #define MG_TCP_IO_SIZE 1460 |
Definition at line 2392 of file mongoose614.cxx.
| #define MG_TCP_RECV_BUFFER_SIZE 1024 |
Definition at line 14458 of file mongoose614.cxx.
| #define MG_UDP_IO_SIZE 1460 |
Definition at line 2395 of file mongoose614.cxx.
| #define MG_UDP_RECV_BUFFER_SIZE 1500 |
Definition at line 14459 of file mongoose614.cxx.
| #define mgos_lock | ( | ) |
Definition at line 15272 of file mongoose614.cxx.
| #define mgos_unlock | ( | ) |
Definition at line 15273 of file mongoose614.cxx.
| #define MIN | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
Definition at line 85 of file mongoose614.cxx.
| #define NUM_DIGITS ('9' - '0' + 1) |
Definition at line 244 of file mongoose614.cxx.
| #define NUM_LETTERS (NUM_UPPERCASES * 2) |
Definition at line 243 of file mongoose614.cxx.
| #define NUM_UPPERCASES ('Z' - 'A' + 1) |
Definition at line 242 of file mongoose614.cxx.
| #define R0 | ( | v, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| i | |||
| ) |
Definition at line 1298 of file mongoose614.cxx.
| #define R1 | ( | v, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| i | |||
| ) |
Definition at line 1301 of file mongoose614.cxx.
| #define R2 | ( | v, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| i | |||
| ) |
| #define R3 | ( | v, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| i | |||
| ) |
| #define R4 | ( | v, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| i | |||
| ) |
Definition at line 1275 of file mongoose614.cxx.
Definition at line 15254 of file mongoose614.cxx.
| #define SHA1HANDSOFF |
Definition at line 1265 of file mongoose614.cxx.
| #define TCP_BIND tcp_bind |
Definition at line 15251 of file mongoose614.cxx.
| #define TCP_NEW tcp_new |
Definition at line 15250 of file mongoose614.cxx.
| #define UDP_BIND udp_bind |
Definition at line 15252 of file mongoose614.cxx.
| typedef int cs_dirent_dummy |
Definition at line 893 of file mongoose614.cxx.
| enum cs_log_level |
| Enumerator | |
|---|---|
| LL_NONE | |
| LL_ERROR | |
| LL_WARN | |
| LL_INFO | |
| LL_DEBUG | |
| LL_VERBOSE_DEBUG | |
| _LL_MIN | |
| _LL_MAX | |
Definition at line 480 of file mongoose614.cxx.
| enum mg_q_msg_type |
| Enumerator | |
|---|---|
| MG_Q_MSG_CB | |
Definition at line 14345 of file mongoose614.cxx.
| enum mg_sig_type |
| Enumerator | |
|---|---|
| MG_SIG_CONNECT_RESULT | |
| MG_SIG_RECV | |
| MG_SIG_CLOSE_CONN | |
| MG_SIG_TOMBSTONE | |
| MG_SIG_ACCEPT | |
Definition at line 15172 of file mongoose614.cxx.
| void _exit | ( | int | status | ) |
Definition at line 13397 of file mongoose614.cxx.


| int _getpid | ( | ) |
| int _isatty | ( | int | fd | ) |
Definition at line 13423 of file mongoose614.cxx.
| int _kill | ( | int | pid, |
| int | sig | ||
| ) |
Definition at line 13411 of file mongoose614.cxx.

| void _not_implemented | ( | const char * | what | ) |
Definition at line 13405 of file mongoose614.cxx.


|
static |
Definition at line 1277 of file mongoose614.cxx.
|
static |
Definition at line 1067 of file mongoose614.cxx.

|
static |
Definition at line 1881 of file mongoose614.cxx.


| int cs_base64_decode | ( | const unsigned char * | s, |
| int | len, | ||
| char * | dst, | ||
| int * | dec_len | ||
| ) |
Definition at line 410 of file mongoose614.cxx.

|
static |
Definition at line 264 of file mongoose614.cxx.


|
static |
Definition at line 251 of file mongoose614.cxx.

| void cs_from_hex | ( | char * | to, |
| const char * | p, | ||
| size_t | len | ||
| ) |
| int cs_log_print_prefix | ( | enum cs_log_level | level, |
| const char * | fname, | ||
| int | line | ||
| ) |
| void cs_log_set_file_level | ( | const char * | file_level | ) |
Definition at line 716 of file mongoose614.cxx.
| void cs_md5_final | ( | unsigned char | digest[16], |
| cs_md5_ctx * | ctx | ||
| ) |
Definition at line 1221 of file mongoose614.cxx.

| void cs_md5_init | ( | cs_md5_ctx * | ctx | ) |
|
static |
| void cs_md5_update | ( | cs_md5_ctx * | ctx, |
| const unsigned char * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 1186 of file mongoose614.cxx.
| void cs_sha1_transform | ( | uint32_t | state[5], |
| const unsigned char | buffer[64] | ||
| ) |
Definition at line 1314 of file mongoose614.cxx.


| double cs_timegm | ( | const struct tm * | tm | ) |
Definition at line 958 of file mongoose614.cxx.
|
static |
Definition at line 2142 of file mongoose614.cxx.

| void fprint_str | ( | FILE * | fp, |
| const char * | str | ||
| ) |
Definition at line 13390 of file mongoose614.cxx.

|
static |
Definition at line 371 of file mongoose614.cxx.

| int gettimeofday | ( | struct timeval * | tp, |
| void * | tzp | ||
| ) |
Definition at line 13454 of file mongoose614.cxx.

| char * inet_ntoa | ( | struct in_addr | n | ) |
Definition at line 14313 of file mongoose614.cxx.


| const char * inet_ntop | ( | int | af, |
| const void * | src, | ||
| char * | dst, | ||
| socklen_t | size | ||
| ) |
Definition at line 14300 of file mongoose614.cxx.

| int inet_pton | ( | int | af, |
| const char * | src, | ||
| void * | dst | ||
| ) |
Definition at line 14318 of file mongoose614.cxx.

|
static |
| size_t mbuf_append_and_free | ( | struct mbuf * | a, |
| void * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 1628 of file mongoose614.cxx.
| void mbuf_clear | ( | struct mbuf * | mb | ) |
Definition at line 1652 of file mongoose614.cxx.
Definition at line 1657 of file mongoose614.cxx.
|
static |
Definition at line 3963 of file mongoose614.cxx.


| MG_INTERNAL void mg_add_conn | ( | struct mg_mgr * | mgr, |
| struct mg_connection * | c | ||
| ) |
Definition at line 2415 of file mongoose614.cxx.

| struct mg_connection * mg_add_sock | ( | struct mg_mgr * | s, |
| sock_t | sock, | ||
| MG_CB(mg_event_handler_t callback, void *user_data) | |||
| ) |
Definition at line 3555 of file mongoose614.cxx.

| struct mg_connection * mg_add_sock_opt | ( | struct mg_mgr * | s, |
| sock_t | sock, | ||
| MG_CB(mg_event_handler_t callback, void *user_data) | , | ||
| struct mg_add_sock_opts | opts | ||
| ) |
Definition at line 3539 of file mongoose614.cxx.


| void mg_add_to_set | ( | sock_t | sock, |
| fd_set * | set, | ||
| sock_t * | max_fd | ||
| ) |
Definition at line 4146 of file mongoose614.cxx.

| int mg_asprintf | ( | char ** | buf, |
| size_t | size, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 2203 of file mongoose614.cxx.
| int mg_assemble_uri | ( | const struct mg_str * | scheme, |
| const struct mg_str * | user_info, | ||
| const struct mg_str * | host, | ||
| unsigned int | port, | ||
| const struct mg_str * | path, | ||
| const struct mg_str * | query, | ||
| const struct mg_str * | fragment, | ||
| int | normalize_path, | ||
| struct mg_str * | uri | ||
| ) |
Definition at line 5751 of file mongoose614.cxx.
Definition at line 10750 of file mongoose614.cxx.
| struct mg_connection * mg_bind | ( | struct mg_mgr * | srv, |
| const char * | address, | ||
| MG_CB(mg_event_handler_t event_handler, void *user_data) | |||
| ) |
Definition at line 3346 of file mongoose614.cxx.

| struct mg_connection * mg_bind_opt | ( | struct mg_mgr * | mgr, |
| const char * | address, | ||
| MG_CB(mg_event_handler_t callback, void *user_data) | , | ||
| struct mg_bind_opts | opts | ||
| ) |
Definition at line 3354 of file mongoose614.cxx.


| MG_INTERNAL void mg_call | ( | struct mg_connection * | nc, |
| mg_event_handler_t | ev_handler, | ||
| void * | user_data, | ||
| int | ev, | ||
| void * | ev_data | ||
| ) |
Definition at line 2435 of file mongoose614.cxx.


| struct mg_connection * mg_connect | ( | struct mg_mgr * | mgr, |
| const char * | address, | ||
| MG_CB(mg_event_handler_t callback, void *user_data) | |||
| ) |
Definition at line 3236 of file mongoose614.cxx.

| struct mg_connection * mg_connect_opt | ( | struct mg_mgr * | mgr, |
| const char * | address, | ||
| MG_CB(mg_event_handler_t callback, void *user_data) | , | ||
| struct mg_connect_opts | opts | ||
| ) |
Definition at line 3244 of file mongoose614.cxx.


| MG_INTERNAL struct mg_connection * mg_create_connection | ( | struct mg_mgr * | mgr, |
| mg_event_handler_t | callback, | ||
| struct mg_add_sock_opts | opts | ||
| ) |
Definition at line 2758 of file mongoose614.cxx.


| MG_INTERNAL struct mg_connection * mg_create_connection_base | ( | struct mg_mgr * | mgr, |
| mg_event_handler_t | callback, | ||
| struct mg_add_sock_opts | opts | ||
| ) |
Definition at line 2731 of file mongoose614.cxx.


| void mg_destroy_conn | ( | struct mg_connection * | conn, |
| int | destroy_if | ||
| ) |
Definition at line 2528 of file mongoose614.cxx.


| MG_INTERNAL struct mg_connection * mg_do_connect | ( | struct mg_connection * | nc, |
| int | proto, | ||
| union socket_address * | sa | ||
| ) |
Definition at line 3155 of file mongoose614.cxx.


|
static |
Definition at line 2940 of file mongoose614.cxx.


| void mg_ev_mgr_lwip_process_signals | ( | struct mg_mgr * | mgr | ) |
Definition at line 15962 of file mongoose614.cxx.


| struct mg_iface * mg_find_iface | ( | struct mg_mgr * | mgr, |
| const struct mg_iface_vtable * | vtable, | ||
| struct mg_iface * | from | ||
| ) |
Definition at line 3643 of file mongoose614.cxx.
| void mg_forward | ( | struct mg_connection * | from, |
| struct mg_connection * | to | ||
| ) |
Definition at line 3507 of file mongoose614.cxx.

| DO_NOT_WARN_UNUSED MG_INTERNAL int mg_get_errno | ( | void | ) |
Definition at line 10729 of file mongoose614.cxx.

|
static |
Definition at line 16386 of file mongoose614.cxx.


|
static |
Definition at line 16348 of file mongoose614.cxx.


| void mg_if_can_recv_cb | ( | struct mg_connection * | nc | ) |
Definition at line 2968 of file mongoose614.cxx.

| void mg_if_can_send_cb | ( | struct mg_connection * | nc | ) |
Definition at line 3091 of file mongoose614.cxx.

| struct mg_iface * mg_if_create_iface | ( | const struct mg_iface_vtable * | vtable, |
| struct mg_mgr * | mgr | ||
| ) |
Definition at line 3634 of file mongoose614.cxx.

| int mg_if_poll | ( | struct mg_connection * | nc, |
| double | now | ||
| ) |
Definition at line 2494 of file mongoose614.cxx.

|
static |
Definition at line 14475 of file mongoose614.cxx.
|
static |
Definition at line 3846 of file mongoose614.cxx.


|
static |
Definition at line 15547 of file mongoose614.cxx.


| void mg_lwip_handle_accept | ( | struct mg_connection * | nc | ) |
Definition at line 15537 of file mongoose614.cxx.


| void mg_lwip_if_add_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16012 of file mongoose614.cxx.
|
static |
Definition at line 15748 of file mongoose614.cxx.

| void mg_lwip_if_connect_tcp | ( | struct mg_connection * | nc, |
| const union socket_address * | sa | ||
| ) |
Definition at line 15434 of file mongoose614.cxx.

|
static |
Definition at line 15405 of file mongoose614.cxx.


| void mg_lwip_if_connect_udp | ( | struct mg_connection * | nc | ) |
Definition at line 15529 of file mongoose614.cxx.

|
static |
Definition at line 15514 of file mongoose614.cxx.


| int mg_lwip_if_create_conn | ( | struct mg_connection * | nc | ) |
Definition at line 15808 of file mongoose614.cxx.
| void mg_lwip_if_destroy_conn | ( | struct mg_connection * | nc | ) |
Definition at line 15821 of file mongoose614.cxx.

| void mg_lwip_if_free | ( | struct mg_iface * | iface | ) |
Definition at line 16007 of file mongoose614.cxx.
| void mg_lwip_if_get_conn_addr | ( | struct mg_connection * | nc, |
| int | remote, | ||
| union socket_address * | sa | ||
| ) |
Definition at line 15852 of file mongoose614.cxx.
| void mg_lwip_if_init | ( | struct mg_iface * | iface | ) |
Definition at line 16001 of file mongoose614.cxx.
| int mg_lwip_if_listen_tcp | ( | struct mg_connection * | nc, |
| union socket_address * | sa | ||
| ) |
Definition at line 15614 of file mongoose614.cxx.

|
static |
Definition at line 15592 of file mongoose614.cxx.


| int mg_lwip_if_listen_udp | ( | struct mg_connection * | nc, |
| union socket_address * | sa | ||
| ) |
Definition at line 15640 of file mongoose614.cxx.

|
static |
Definition at line 15620 of file mongoose614.cxx.


| time_t mg_lwip_if_poll | ( | struct mg_iface * | iface, |
| int | timeout_ms | ||
| ) |
Definition at line 16027 of file mongoose614.cxx.

| void mg_lwip_if_remove_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16016 of file mongoose614.cxx.
| void mg_lwip_if_sock_set | ( | struct mg_connection * | nc, |
| sock_t | sock | ||
| ) |
Definition at line 15876 of file mongoose614.cxx.
|
static |
Definition at line 15777 of file mongoose614.cxx.

| int mg_lwip_if_tcp_send | ( | struct mg_connection * | nc, |
| const void * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 15703 of file mongoose614.cxx.

|
static |
Definition at line 15490 of file mongoose614.cxx.
|
static |
Definition at line 15727 of file mongoose614.cxx.

| void mg_lwip_mgr_schedule_poll | ( | struct mg_mgr * | mgr | ) |

| void mg_lwip_post_signal | ( | enum mg_sig_type | sig, |
| struct mg_connection * | nc | ||
| ) |
Definition at line 15946 of file mongoose614.cxx.


|
static |
Definition at line 15477 of file mongoose614.cxx.


|
static |
Definition at line 15299 of file mongoose614.cxx.


|
static |
Definition at line 15316 of file mongoose614.cxx.


|
static |
Definition at line 15330 of file mongoose614.cxx.


|
static |
Definition at line 15384 of file mongoose614.cxx.


|
static |
Definition at line 15657 of file mongoose614.cxx.


|
static |
Definition at line 15448 of file mongoose614.cxx.


| void mg_mbuf_append_base64 | ( | struct mbuf * | mbuf, |
| const void * | data, | ||
| size_t | len | ||
| ) |
Definition at line 10743 of file mongoose614.cxx.
| void mg_mbuf_append_base64_putc | ( | char | ch, |
| void * | user_data | ||
| ) |
Definition at line 10738 of file mongoose614.cxx.

| void mg_mgr_handle_conn | ( | struct mg_connection * | nc, |
| int | fd_flags, | ||
| double | now | ||
| ) |
Definition at line 4038 of file mongoose614.cxx.


| void mg_mgr_init_opt | ( | struct mg_mgr * | m, |
| void * | user_data, | ||
| struct mg_mgr_init_opts | opts | ||
| ) |
Definition at line 2576 of file mongoose614.cxx.

| double mg_mgr_min_timer | ( | const struct mg_mgr * | mgr | ) |
Definition at line 3664 of file mongoose614.cxx.
| struct mg_str mg_mk_str_n | ( | const char * | s, |
| size_t | len | ||
| ) |
| struct mg_str mg_next_comma_list_entry_n | ( | struct mg_str | list, |
| struct mg_str * | val, | ||
| struct mg_str * | eq_val | ||
| ) |
Definition at line 2271 of file mongoose614.cxx.

|
static |
Definition at line 3775 of file mongoose614.cxx.
|
static |
Definition at line 3696 of file mongoose614.cxx.
|
static |
Definition at line 3702 of file mongoose614.cxx.
|
static |
Definition at line 3753 of file mongoose614.cxx.
|
static |
Definition at line 3758 of file mongoose614.cxx.
|
static |
Definition at line 3771 of file mongoose614.cxx.
|
static |
Definition at line 3797 of file mongoose614.cxx.
|
static |
Definition at line 3767 of file mongoose614.cxx.
|
static |
Definition at line 3706 of file mongoose614.cxx.
|
static |
Definition at line 3713 of file mongoose614.cxx.
|
static |
Definition at line 3784 of file mongoose614.cxx.

|
static |
Definition at line 3780 of file mongoose614.cxx.
|
static |
Definition at line 3762 of file mongoose614.cxx.
| int mg_null_if_tcp_recv | ( | struct mg_connection * | c, |
| void * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 3736 of file mongoose614.cxx.
|
static |
Definition at line 3720 of file mongoose614.cxx.
| int mg_null_if_udp_recv | ( | struct mg_connection * | c, |
| void * | buf, | ||
| size_t | len, | ||
| union socket_address * | sa, | ||
| size_t * | sa_len | ||
| ) |
Definition at line 3743 of file mongoose614.cxx.
|
static |
Definition at line 3728 of file mongoose614.cxx.
|
static |
Definition at line 14600 of file mongoose614.cxx.

|
static |
Definition at line 3988 of file mongoose614.cxx.


| MG_INTERNAL int mg_parse_address | ( | const char * | str, |
| union socket_address * | sa, | ||
| int * | proto, | ||
| char * | host, | ||
| size_t | host_len | ||
| ) |
Definition at line 2787 of file mongoose614.cxx.


| void mg_pic32_if_add_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16242 of file mongoose614.cxx.
| void mg_pic32_if_connect_tcp | ( | struct mg_connection * | nc, |
| const union socket_address * | sa | ||
| ) |
Definition at line 16475 of file mongoose614.cxx.
| void mg_pic32_if_connect_udp | ( | struct mg_connection * | nc | ) |
Definition at line 16484 of file mongoose614.cxx.
| int mg_pic32_if_create_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16232 of file mongoose614.cxx.
| void mg_pic32_if_destroy_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16259 of file mongoose614.cxx.
| void mg_pic32_if_free | ( | struct mg_iface * | iface | ) |
Definition at line 16251 of file mongoose614.cxx.
| void mg_pic32_if_get_conn_addr | ( | struct mg_connection * | nc, |
| int | remote, | ||
| union socket_address * | sa | ||
| ) |
Definition at line 16470 of file mongoose614.cxx.
| void mg_pic32_if_init | ( | struct mg_iface * | iface | ) |
| int mg_pic32_if_listen_tcp | ( | struct mg_connection * | nc, |
| union socket_address * | sa | ||
| ) |
Definition at line 16295 of file mongoose614.cxx.
| int mg_pic32_if_listen_udp | ( | struct mg_connection * | nc, |
| union socket_address * | sa | ||
| ) |
Definition at line 16273 of file mongoose614.cxx.
| time_t mg_pic32_if_poll | ( | struct mg_iface * | iface, |
| int | timeout_ms | ||
| ) |
Definition at line 16424 of file mongoose614.cxx.

| void mg_pic32_if_recved | ( | struct mg_connection * | nc, |
| size_t | len | ||
| ) |
Definition at line 16237 of file mongoose614.cxx.
| void mg_pic32_if_remove_conn | ( | struct mg_connection * | nc | ) |
Definition at line 16255 of file mongoose614.cxx.
| void mg_pic32_if_sock_set | ( | struct mg_connection * | nc, |
| sock_t | sock | ||
| ) |
Definition at line 16466 of file mongoose614.cxx.
| void mg_pic32_if_tcp_send | ( | struct mg_connection * | nc, |
| const void * | buf, | ||
| size_t | len | ||
| ) |
| void mg_pic32_if_udp_send | ( | struct mg_connection * | nc, |
| const void * | buf, | ||
| size_t | len | ||
| ) |
|
static |
Definition at line 2972 of file mongoose614.cxx.


|
static |
Definition at line 3015 of file mongoose614.cxx.


| MG_INTERNAL void mg_remove_conn | ( | struct mg_connection * | c | ) |
Definition at line 2427 of file mongoose614.cxx.

| void mg_run_in_task | ( | void(*)(struct mg_mgr *mgr, void *arg) | cb, |
| void * | cb_arg | ||
| ) |
Definition at line 14384 of file mongoose614.cxx.
| void mg_set_non_blocking_mode | ( | sock_t | sock | ) |
Definition at line 3836 of file mongoose614.cxx.

| void mg_sl_if_add_conn | ( | struct mg_connection * | nc | ) |
Definition at line 14700 of file mongoose614.cxx.
|
static |
Definition at line 14479 of file mongoose614.cxx.

|
static |
Definition at line 14501 of file mongoose614.cxx.

|
static |
Definition at line 14564 of file mongoose614.cxx.
| void mg_sl_if_destroy_conn | ( | struct mg_connection * | nc | ) |
Definition at line 14569 of file mongoose614.cxx.
| void mg_sl_if_free | ( | struct mg_iface * | iface | ) |
Definition at line 14696 of file mongoose614.cxx.
| void mg_sl_if_get_conn_addr | ( | struct mg_connection * | nc, |
| int | remote, | ||
| union socket_address * | sa | ||
| ) |
Definition at line 14804 of file mongoose614.cxx.
| void mg_sl_if_init | ( | struct mg_iface * | iface | ) |
Definition at line 14691 of file mongoose614.cxx.
|
static |
Definition at line 14511 of file mongoose614.cxx.


|
static |
Definition at line 14521 of file mongoose614.cxx.


| time_t mg_sl_if_poll | ( | struct mg_iface * | iface, |
| int | timeout_ms | ||
| ) |
Definition at line 14708 of file mongoose614.cxx.

| void mg_sl_if_remove_conn | ( | struct mg_connection * | nc | ) |
Definition at line 14704 of file mongoose614.cxx.
| void mg_sl_if_sock_set | ( | struct mg_connection * | nc, |
| sock_t | sock | ||
| ) |
Definition at line 14685 of file mongoose614.cxx.

|
static |
Definition at line 14543 of file mongoose614.cxx.

|
static |
Definition at line 14529 of file mongoose614.cxx.

|
static |
Definition at line 14554 of file mongoose614.cxx.

|
static |
|
static |
Definition at line 4349 of file mongoose614.cxx.

| void mg_socket_if_add_conn | ( | struct mg_connection * | nc | ) |
Definition at line 4138 of file mongoose614.cxx.
| void mg_socket_if_connect_tcp | ( | struct mg_connection * | nc, |
| const union socket_address * | sa | ||
| ) |
Definition at line 3858 of file mongoose614.cxx.

| void mg_socket_if_connect_udp | ( | struct mg_connection * | nc | ) |
Definition at line 3875 of file mongoose614.cxx.

| int mg_socket_if_create_conn | ( | struct mg_connection * | nc | ) |
Definition at line 3947 of file mongoose614.cxx.
| void mg_socket_if_destroy_conn | ( | struct mg_connection * | nc | ) |
Definition at line 3952 of file mongoose614.cxx.
| void mg_socket_if_free | ( | struct mg_iface * | iface | ) |
Definition at line 4134 of file mongoose614.cxx.
| void mg_socket_if_get_conn_addr | ( | struct mg_connection * | nc, |
| int | remote, | ||
| union socket_address * | sa | ||
| ) |
Definition at line 4366 of file mongoose614.cxx.

| void mg_socket_if_init | ( | struct mg_iface * | iface | ) |
Definition at line 4126 of file mongoose614.cxx.

| int mg_socket_if_listen_tcp | ( | struct mg_connection * | nc, |
| union socket_address * | sa | ||
| ) |
Definition at line 3892 of file mongoose614.cxx.

|
static |
Definition at line 3903 of file mongoose614.cxx.

| time_t mg_socket_if_poll | ( | struct mg_iface * | iface, |
| int | timeout_ms | ||
| ) |
Definition at line 4159 of file mongoose614.cxx.

| void mg_socket_if_remove_conn | ( | struct mg_connection * | nc | ) |
Definition at line 4142 of file mongoose614.cxx.
| void mg_socket_if_sock_set | ( | struct mg_connection * | nc, |
| sock_t | sock | ||
| ) |
Definition at line 4119 of file mongoose614.cxx.

|
static |
Definition at line 3925 of file mongoose614.cxx.

|
static |
Definition at line 3911 of file mongoose614.cxx.

|
static |
Definition at line 3937 of file mongoose614.cxx.

|
static |
| bool mg_start_task | ( | int | priority, |
| int | stack_size, | ||
| mg_init_cb | mg_init | ||
| ) |
Definition at line 14356 of file mongoose614.cxx.

Definition at line 1822 of file mongoose614.cxx.
| const char * mg_strchr | ( | const struct mg_str | s, |
| int | c | ||
| ) |
Definition at line 1761 of file mongoose614.cxx.

Definition at line 1742 of file mongoose614.cxx.

Definition at line 1726 of file mongoose614.cxx.

Definition at line 1747 of file mongoose614.cxx.
| void mg_strfree | ( | struct mg_str * | s | ) |
Definition at line 1788 of file mongoose614.cxx.
Definition at line 1797 of file mongoose614.cxx.
|
static |
Definition at line 14367 of file mongoose614.cxx.


| MG_INTERNAL void mg_timer | ( | struct mg_connection * | c, |
| double | now | ||
| ) |
Definition at line 2477 of file mongoose614.cxx.


Definition at line 10795 of file mongoose614.cxx.
| struct mg_str mg_url_encode_opt | ( | const struct mg_str | src, |
| const struct mg_str | safe, | ||
| unsigned int | flags | ||
| ) |
Definition at line 10769 of file mongoose614.cxx.
|
static |
Definition at line 3466 of file mongoose614.cxx.


|
static |
Definition at line 5573 of file mongoose614.cxx.


| MG_INTERNAL size_t recv_avail_size | ( | struct mg_connection * | conn, |
| size_t | max | ||
| ) |
Definition at line 2485 of file mongoose614.cxx.

| void sl_restart_cb | ( | struct mg_mgr * | mgr | ) |
Definition at line 14812 of file mongoose614.cxx.

|
static |
Definition at line 2182 of file mongoose614.cxx.

|
static |
Definition at line 15533 of file mongoose614.cxx.

|
static |
Definition at line 15653 of file mongoose614.cxx.

| void tcp_recved_tcpip | ( | void * | arg | ) |
Definition at line 15772 of file mongoose614.cxx.

|
static |
Definition at line 15817 of file mongoose614.cxx.

|
static |
Definition at line 15722 of file mongoose614.cxx.

| const struct mg_iface_vtable mg_default_iface_vtable = MG_NULL_IFACE_VTABLE |
Definition at line 3817 of file mongoose614.cxx.
| const struct mg_iface_vtable* mg_ifaces[] |
Definition at line 3628 of file mongoose614.cxx.
| const struct mg_iface_vtable mg_lwip_iface_vtable = MG_LWIP_IFACE_VTABLE |
Definition at line 15903 of file mongoose614.cxx.
| const struct mg_iface_vtable mg_null_iface_vtable = MG_NULL_IFACE_VTABLE |
Definition at line 3814 of file mongoose614.cxx.
Definition at line 3632 of file mongoose614.cxx.
| const struct mg_iface_vtable mg_pic32_iface_vtable = MG_PIC32_IFACE_VTABLE |
Definition at line 16511 of file mongoose614.cxx.
| const struct mg_iface_vtable mg_simplelink_iface_vtable = MG_SL_IFACE_VTABLE |
Definition at line 14860 of file mongoose614.cxx.
| const struct mg_iface_vtable mg_socket_iface_vtable = MG_SOCKET_IFACE_VTABLE |
Definition at line 4398 of file mongoose614.cxx.
|
static |
Definition at line 14353 of file mongoose614.cxx.
|
extern |
|
extern |
| enum cs_log_level cs_log_level WEAK |
Definition at line 612 of file mongoose614.cxx.