rtl433
UNKNOWN
RTL-433 utility
|
Go to the source code of this file.
Data Structures | |
struct | stat |
struct | stat |
struct | stat |
struct | timeval |
struct | _stati64 |
struct | cs_md5_ctx |
struct | cs_sha1_ctx |
struct | mg_str |
struct | mbuf |
struct | cs_base64_ctx |
struct | qm_trace |
struct | mg_iface |
struct | mg_iface_vtable |
struct | mg_ssl_if_conn_params |
union | socket_address |
struct | mg_mgr |
struct | mg_connection |
struct | mg_mgr_init_opts |
struct | mg_add_sock_opts |
struct | mg_bind_opts |
struct | mg_connect_opts |
struct | http_message |
struct | websocket_message |
struct | mg_http_multipart_part |
struct | mg_ssi_call_ctx |
struct | mg_serve_http_opts |
struct | mg_http_endpoint_opts |
struct | mg_mqtt_message |
struct | mg_mqtt_topic_expression |
struct | mg_send_mqtt_handshake_opts |
struct | mg_mqtt_proto_data |
struct | mg_mqtt_session |
struct | mg_mqtt_broker |
struct | mg_dns_resource_record |
struct | mg_dns_message |
struct | mg_dns_reply |
struct | mg_resolve_async_opts |
struct | mg_coap_option |
struct | mg_coap_message |
struct | mg_sntp_message |
Typedefs | |
typedef int | bool |
typedef unsigned long | uintptr_t |
typedef long | intptr_t |
typedef int | socklen_t |
typedef signed char | int8_t |
typedef unsigned char | uint8_t |
typedef int | int32_t |
typedef unsigned int | uint32_t |
typedef short | int16_t |
typedef unsigned short | uint16_t |
typedef __int64 | int64_t |
typedef unsigned __int64 | uint64_t |
typedef SOCKET | sock_t |
typedef uint32_t | in_addr_t |
typedef struct _stati64 | cs_stat_t |
typedef unsigned int | mode_t |
typedef size_t | _off_t |
typedef long | ssize_t |
typedef long | suseconds_t |
typedef void(* | mg_init_cb) (struct mg_mgr *mgr) |
typedef void(* | cs_base64_putc_t) (char, void *) |
typedef void(* | mg_event_handler_t) (struct mg_connection *nc, int ev, void *ev_data MG_UD_ARG(void *user_data)) |
typedef struct mg_str(* | mg_fu_fname_fn) (struct mg_connection *nc, struct mg_str fname) |
typedef void(* | mg_resolve_callback_t) (struct mg_dns_message *dns_message, void *user_data, enum mg_resolve_err) |
Enumerations | |
enum | mg_ssl_if_result { MG_SSL_OK = 0, MG_SSL_WANT_READ = -1, MG_SSL_WANT_WRITE = -2, MG_SSL_ERROR = -3 } |
enum | mg_dns_resource_record_kind { MG_DNS_INVALID_RECORD = 0, MG_DNS_QUESTION, MG_DNS_ANSWER } |
enum | mg_resolve_err { MG_RESOLVE_OK = 0, MG_RESOLVE_NO_ANSWERS = 1, MG_RESOLVE_EXCEEDED_RETRY_COUNT = 2, MG_RESOLVE_TIMEOUT = 3 } |
enum | mg_socks_handshake_method { MG_SOCKS_HANDSHAKE_NOAUTH = 0, MG_SOCKS_HANDSHAKE_GSSAPI = 1, MG_SOCKS_HANDSHAKE_USERPASS = 2, MG_SOCKS_HANDSHAKE_FAILURE = 0xff } |
enum | mg_socks_command { MG_SOCKS_CMD_CONNECT = 1, MG_SOCKS_CMD_BIND = 2, MG_SOCKS_CMD_UDP_ASSOCIATE = 3 } |
enum | mg_socks_address_type { MG_SOCKS_ADDR_IPV4 = 1, MG_SOCKS_ADDR_DOMAIN = 3, MG_SOCKS_ADDR_IPV6 = 4 } |
enum | mg_socks_response { MG_SOCKS_SUCCESS = 0, MG_SOCKS_FAILURE = 1, MG_SOCKS_NOT_ALLOWED = 2, MG_SOCKS_NET_UNREACHABLE = 3, MG_SOCKS_HOST_UNREACHABLE = 4, MG_SOCKS_CONN_REFUSED = 5, MG_SOCKS_TTL_EXPIRED = 6, MG_SOCKS_CMD_NOT_SUPPORTED = 7, MG_SOCKS_ADDR_NOT_SUPPORTED = 8 } |
Functions | |
long long | strtoll (const char *, char **, int) |
const char * | inet_ntop (int af, const void *src, char *dst, socklen_t size) |
char * | inet_ntoa (struct in_addr in) |
int | inet_pton (int af, const char *src, void *dst) |
int | gettimeofday (struct timeval *t, void *tz) |
int | settimeofday (const struct timeval *tv, const void *tz) |
int | asprintf (char **strp, const char *fmt,...) |
int | _stat (const char *pathname, struct stat *st) |
int | stat (const char *pathname, struct stat *st) |
int | inet_aton (const char *cp, struct in_addr *inp) |
in_addr_t | inet_addr (const char *cp) |
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) |
int | sl_fs_init (void) |
void | sl_restart_cb (struct mg_mgr *mgr) |
int | sl_set_ssl_opts (int sock, struct mg_connection *nc) |
int | slfs_open (const unsigned char *fname, uint32_t flags) |
int | open (const char *filename, int oflag, int pmode) |
int | _wstati64 (const wchar_t *path, cs_stat_t *st) |
const char * | strerror () |
void | mg_lwip_set_keepalive_params (struct mg_connection *nc, int idle, int interval, int count) |
void | cs_md5_init (cs_md5_ctx *c) |
void | cs_md5_update (cs_md5_ctx *c, const unsigned char *data, size_t len) |
void | cs_md5_final (unsigned char *md, cs_md5_ctx *c) |
void | cs_sha1_init (cs_sha1_ctx *) |
void | cs_sha1_update (cs_sha1_ctx *, const unsigned char *data, uint32_t len) |
void | cs_sha1_final (unsigned char digest[20], cs_sha1_ctx *) |
void | cs_hmac_sha1 (const unsigned char *key, size_t key_len, const unsigned char *text, size_t text_len, unsigned char out[20]) |
double | cs_time (void) |
double | cs_timegm (const struct tm *tm) |
struct mg_str | mg_mk_str (const char *s) |
struct mg_str | mg_mk_str_n (const char *s, size_t len) |
int | mg_vcmp (const struct mg_str *str2, const char *str1) |
int | mg_vcasecmp (const struct mg_str *str2, const char *str1) |
struct mg_str | mg_strdup (const struct mg_str s) |
struct mg_str | mg_strdup_nul (const struct mg_str s) |
const char * | mg_strchr (const struct mg_str s, int c) |
int | mg_strcmp (const struct mg_str str1, const struct mg_str str2) |
int | mg_strncmp (const struct mg_str str1, const struct mg_str str2, size_t n) |
const char * | mg_strstr (const struct mg_str haystack, const struct mg_str needle) |
struct mg_str | mg_strstrip (struct mg_str s) |
void | mbuf_init (struct mbuf *, size_t initial_capacity) |
void | mbuf_free (struct mbuf *) |
size_t | mbuf_append (struct mbuf *, const void *data, size_t data_size) |
size_t | mbuf_insert (struct mbuf *, size_t, const void *, size_t) |
void | mbuf_remove (struct mbuf *, size_t data_size) |
void | mbuf_resize (struct mbuf *, size_t new_size) |
void | mbuf_trim (struct mbuf *) |
void | cs_base64_init (struct cs_base64_ctx *ctx, cs_base64_putc_t 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) |
void | cs_fprint_base64 (FILE *f, const unsigned char *src, int src_len) |
int | cs_base64_decode (const unsigned char *s, int len, char *dst, int *dec_len) |
size_t | c_strnlen (const char *s, size_t maxlen) |
int | c_snprintf (char *buf, size_t buf_size, const char *format,...) PRINTF_LIKE(3 |
int int | c_vsnprintf (char *buf, size_t buf_size, const char *format, va_list ap) |
const char * | c_strnstr (const char *s, const char *find, size_t slen) |
void | cs_to_hex (char *to, const unsigned char *p, size_t len) |
void | cs_from_hex (char *to, const char *p, size_t len) |
char * | strdup (const char *src) |
int64_t | cs_to64 (const char *s) |
int | mg_ncasecmp (const char *s1, const char *s2, size_t len) |
int | mg_casecmp (const char *s1, const char *s2) |
int | mg_asprintf (char **buf, size_t size, const char *fmt,...) PRINTF_LIKE(3 |
int int | mg_avprintf (char **buf, size_t size, const char *fmt, va_list ap) |
const char * | mg_next_comma_list_entry (const char *list, struct mg_str *val, struct mg_str *eq_val) |
struct mg_str | mg_next_comma_list_entry_n (struct mg_str list, struct mg_str *val, struct mg_str *eq_val) |
size_t | mg_match_prefix (const char *pattern, int pattern_len, const char *str) |
size_t | mg_match_prefix_n (const struct mg_str pattern, const struct mg_str str) |
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) |
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_if_connect_cb (struct mg_connection *nc, int err) |
void | mg_if_can_recv_cb (struct mg_connection *nc) |
void | mg_if_can_send_cb (struct mg_connection *nc) |
void | mg_if_recv_udp_cb (struct mg_connection *nc, void *buf, int len, union socket_address *sa, size_t sa_len) |
int | mg_if_poll (struct mg_connection *nc, double now) |
double | mg_mgr_min_timer (const struct mg_mgr *mgr) |
void | mg_ssl_if_init () |
enum mg_ssl_if_result | mg_ssl_if_conn_init (struct mg_connection *nc, const struct mg_ssl_if_conn_params *params, const char **err_msg) |
enum mg_ssl_if_result | mg_ssl_if_conn_accept (struct mg_connection *nc, struct mg_connection *lc) |
void | mg_ssl_if_conn_close_notify (struct mg_connection *nc) |
void | mg_ssl_if_conn_free (struct mg_connection *nc) |
enum mg_ssl_if_result | mg_ssl_if_handshake (struct mg_connection *nc) |
int | mg_ssl_if_read (struct mg_connection *nc, void *buf, size_t buf_size) |
int | mg_ssl_if_write (struct mg_connection *nc, const void *data, size_t len) |
void | mg_mgr_init (struct mg_mgr *mgr, void *user_data) |
void | mg_mgr_init_opt (struct mg_mgr *mgr, void *user_data, struct mg_mgr_init_opts opts) |
void | mg_mgr_free (struct mg_mgr *mgr) |
int | mg_mgr_poll (struct mg_mgr *mgr, int milli) |
void | mg_broadcast (struct mg_mgr *mgr, mg_event_handler_t cb, void *data, size_t len) |
struct mg_connection * | mg_next (struct mg_mgr *mgr, struct mg_connection *c) |
struct mg_connection * | mg_add_sock (struct mg_mgr *mgr, sock_t sock, MG_CB(mg_event_handler_t handler, void *user_data)) |
struct mg_connection * | mg_add_sock_opt (struct mg_mgr *mgr, sock_t sock, MG_CB(mg_event_handler_t handler, void *user_data), struct mg_add_sock_opts opts) |
struct mg_connection * | mg_bind (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t handler, void *user_data)) |
struct mg_connection * | mg_bind_opt (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t handler, void *user_data), struct mg_bind_opts opts) |
struct mg_connection * | mg_connect (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t handler, void *user_data)) |
struct mg_connection * | mg_connect_opt (struct mg_mgr *mgr, const char *address, MG_CB(mg_event_handler_t handler, void *user_data), struct mg_connect_opts opts) |
const char * | mg_set_ssl (struct mg_connection *nc, const char *cert, const char *ca_cert) |
void | mg_send (struct mg_connection *, const void *buf, int len) |
__attribute__ ((format(printf, 2, 3))) int mg_printf(struct mg_connection * | |
const char int | mg_vprintf (struct mg_connection *, const char *fmt, va_list ap) |
int | mg_socketpair (sock_t[2], int sock_type) |
int | mg_resolve (const char *domain_name, char *ip_addr_buf, size_t buf_len) |
int | mg_check_ip_acl (const char *acl, uint32_t remote_ip) |
double | mg_set_timer (struct mg_connection *c, double timestamp) |
double | mg_time (void) |
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_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) |
int | mg_normalize_uri_path (const struct mg_str *in, struct mg_str *out) |
const char * | mg_skip (const char *s, const char *end_string, const char *delimiters, struct mg_str *v) |
int | mg_base64_decode (const unsigned char *s, int len, char *dst) |
void | mg_base64_encode (const unsigned char *src, int src_len, char *dst) |
int | mg_stat (const char *path, cs_stat_t *st) |
FILE * | mg_fopen (const char *path, const char *mode) |
int | mg_open (const char *path, int flag, int mode) |
size_t | mg_fread (void *ptr, size_t size, size_t count, FILE *f) |
size_t | mg_fwrite (const void *ptr, size_t size, size_t count, FILE *f) |
void * | mg_start_thread (void *(*thread_func)(void *), void *thread_func_param) |
void | mg_set_close_on_exec (sock_t) |
int | mg_conn_addr_to_str (struct mg_connection *c, char *buf, size_t len, int flags) |
void | mg_sock_to_str (sock_t sock, char *buf, size_t len, int flags) |
int | mg_sock_addr_to_str (const union socket_address *sa, char *buf, size_t len, int flags) |
int | mg_hexdump (const void *buf, int len, char *dst, int dst_len) |
void | mg_hexdumpf (FILE *fp, const void *buf, int len) |
void | mg_hexdump_connection (struct mg_connection *nc, const char *path, const void *buf, int num_bytes, int ev) |
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 | mg_set_protocol_http_websocket (struct mg_connection *nc) |
void | mg_send_websocket_handshake (struct mg_connection *nc, const char *uri, const char *extra_headers) |
void | mg_send_websocket_handshake2 (struct mg_connection *nc, const char *path, const char *host, const char *protocol, const char *extra_headers) |
void | mg_send_websocket_handshake3 (struct mg_connection *nc, const char *path, const char *host, const char *protocol, const char *extra_headers, const char *user, const char *pass) |
void | mg_send_websocket_handshake3v (struct mg_connection *nc, const struct mg_str path, const struct mg_str host, const struct mg_str protocol, const struct mg_str extra_headers, const struct mg_str user, const struct mg_str pass) |
struct mg_connection * | mg_connect_ws (struct mg_mgr *mgr, MG_CB(mg_event_handler_t event_handler, void *user_data), const char *url, const char *protocol, const char *extra_headers) |
struct mg_connection * | mg_connect_ws_opt (struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), struct mg_connect_opts opts, const char *url, const char *protocol, const char *extra_headers) |
void | mg_send_websocket_frame (struct mg_connection *nc, int op_and_flags, const void *data, size_t data_len) |
void | mg_send_websocket_framev (struct mg_connection *nc, int op_and_flags, const struct mg_str *strings, int num_strings) |
void | mg_printf_websocket_frame (struct mg_connection *nc, int op_and_flags, const char *fmt,...) |
int | mg_url_decode (const char *src, int src_len, char *dst, int dst_len, int is_form_url_encoded) |
void | mg_hash_md5_v (size_t num_msgs, const uint8_t *msgs[], const size_t *msg_lens, uint8_t *digest) |
void | mg_hash_sha1_v (size_t num_msgs, const uint8_t *msgs[], const size_t *msg_lens, uint8_t *digest) |
int | mg_http_is_authorized (struct http_message *hm, struct mg_str path, const char *domain, const char *passwords_file, int flags) |
void | mg_http_send_digest_auth_request (struct mg_connection *c, const char *domain) |
int | mg_parse_http (const char *s, int n, struct http_message *hm, int is_req) |
struct mg_str * | mg_get_http_header (struct http_message *hm, const char *name) |
int | mg_http_parse_header2 (struct mg_str *hdr, const char *var_name, char **buf, size_t buf_size) |
int | mg_http_parse_header (struct mg_str *hdr, const char *var_name, char *buf, size_t buf_size) __attribute__((deprecated)) |
int | mg_get_http_basic_auth (struct http_message *hm, char *user, size_t user_len, char *pass, size_t pass_len) |
int | mg_parse_http_basic_auth (struct mg_str *hdr, char *user, size_t user_len, char *pass, size_t pass_len) |
size_t | mg_parse_multipart (const char *buf, size_t buf_len, char *var_name, size_t var_name_len, char *file_name, size_t file_name_len, const char **chunk, size_t *chunk_len) |
int | mg_get_http_var (const struct mg_str *buf, const char *name, char *dst, size_t dst_len) |
void | mg_serve_http (struct mg_connection *nc, struct http_message *hm, struct mg_serve_http_opts opts) |
void | mg_http_serve_file (struct mg_connection *nc, struct http_message *hm, const char *path, const struct mg_str mime_type, const struct mg_str extra_headers) |
void | mg_file_upload_handler (struct mg_connection *nc, int ev, void *ev_data, mg_fu_fname_fn local_name_fn MG_UD_ARG(void *user_data)) |
void | mg_register_http_endpoint (struct mg_connection *nc, const char *uri_path, MG_CB(mg_event_handler_t handler, void *user_data)) |
void | mg_register_http_endpoint_opt (struct mg_connection *nc, const char *uri_path, mg_event_handler_t handler, struct mg_http_endpoint_opts opts) |
int | mg_http_check_digest_auth (struct http_message *hm, const char *auth_domain, FILE *fp) |
int | mg_check_digest_auth (struct mg_str method, struct mg_str uri, struct mg_str username, struct mg_str cnonce, struct mg_str response, struct mg_str qop, struct mg_str nc, struct mg_str nonce, struct mg_str auth_domain, FILE *fp) |
void | mg_send_http_chunk (struct mg_connection *nc, const char *buf, size_t len) |
void | mg_printf_http_chunk (struct mg_connection *nc, const char *fmt,...) |
void | mg_send_response_line (struct mg_connection *nc, int status_code, const char *extra_headers) |
void | mg_http_send_error (struct mg_connection *nc, int code, const char *reason) |
void | mg_http_send_redirect (struct mg_connection *nc, int status_code, const struct mg_str location, const struct mg_str extra_headers) |
void | mg_send_head (struct mg_connection *n, int status_code, int64_t content_length, const char *extra_headers) |
void | mg_printf_html_escape (struct mg_connection *nc, const char *fmt,...) |
void | mg_http_reverse_proxy (struct mg_connection *nc, const struct http_message *hm, struct mg_str mount, struct mg_str upstream) |
struct mg_connection * | mg_connect_http (struct mg_mgr *mgr, MG_CB(mg_event_handler_t event_handler, void *user_data), const char *url, const char *extra_headers, const char *post_data) |
struct mg_connection * | mg_connect_http_opt (struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), struct mg_connect_opts opts, const char *url, const char *extra_headers, const char *post_data) |
int | mg_http_create_digest_auth_header (char *buf, size_t buf_len, const char *method, const char *uri, const char *auth_domain, const char *user, const char *passwd, const char *nonce) |
void | mg_set_protocol_mqtt (struct mg_connection *nc) |
void | mg_send_mqtt_handshake (struct mg_connection *nc, const char *client_id) |
void | mg_send_mqtt_handshake_opt (struct mg_connection *nc, const char *client_id, struct mg_send_mqtt_handshake_opts) |
void | mg_mqtt_publish (struct mg_connection *nc, const char *topic, uint16_t message_id, int flags, const void *data, size_t len) |
void | mg_mqtt_subscribe (struct mg_connection *nc, const struct mg_mqtt_topic_expression *topics, size_t topics_len, uint16_t message_id) |
void | mg_mqtt_unsubscribe (struct mg_connection *nc, char **topics, size_t topics_len, uint16_t message_id) |
void | mg_mqtt_disconnect (struct mg_connection *nc) |
void | mg_mqtt_connack (struct mg_connection *nc, uint8_t return_code) |
void | mg_mqtt_puback (struct mg_connection *nc, uint16_t message_id) |
void | mg_mqtt_pubrec (struct mg_connection *nc, uint16_t message_id) |
void | mg_mqtt_pubrel (struct mg_connection *nc, uint16_t message_id) |
void | mg_mqtt_pubcomp (struct mg_connection *nc, uint16_t message_id) |
void | mg_mqtt_suback (struct mg_connection *nc, uint8_t *qoss, size_t qoss_len, uint16_t message_id) |
void | mg_mqtt_unsuback (struct mg_connection *nc, uint16_t message_id) |
void | mg_mqtt_ping (struct mg_connection *nc) |
void | mg_mqtt_pong (struct mg_connection *nc) |
int | mg_mqtt_next_subscribe_topic (struct mg_mqtt_message *msg, struct mg_str *topic, uint8_t *qos, int pos) |
int | mg_mqtt_match_topic_expression (struct mg_str exp, struct mg_str topic) |
int | mg_mqtt_vmatch_topic_expression (const char *exp, struct mg_str topic) |
void | mg_mqtt_broker_init (struct mg_mqtt_broker *brk, void *user_data) |
void | mg_mqtt_broker (struct mg_connection *brk, int ev, void *data) |
struct mg_mqtt_session * | mg_mqtt_next (struct mg_mqtt_broker *brk, struct mg_mqtt_session *s) |
struct mg_dns_resource_record * | mg_dns_next_record (struct mg_dns_message *msg, int query, struct mg_dns_resource_record *prev) |
int | mg_dns_parse_record_data (struct mg_dns_message *msg, struct mg_dns_resource_record *rr, void *data, size_t data_len) |
void | mg_send_dns_query (struct mg_connection *nc, const char *name, int query_type) |
int | mg_dns_insert_header (struct mbuf *io, size_t pos, struct mg_dns_message *msg) |
int | mg_dns_copy_questions (struct mbuf *io, struct mg_dns_message *msg) |
int | mg_dns_encode_record (struct mbuf *io, struct mg_dns_resource_record *rr, const char *name, size_t nlen, const void *rdata, size_t rlen) |
int | mg_dns_encode_name (struct mbuf *io, const char *name, size_t len) |
int | mg_parse_dns (const char *buf, int len, struct mg_dns_message *msg) |
size_t | mg_dns_uncompress_name (struct mg_dns_message *msg, struct mg_str *name, char *dst, int dst_len) |
void | mg_set_protocol_dns (struct mg_connection *nc) |
struct mg_dns_reply | mg_dns_create_reply (struct mbuf *io, struct mg_dns_message *msg) |
int | mg_dns_reply_record (struct mg_dns_reply *reply, struct mg_dns_resource_record *question, const char *name, int rtype, int ttl, const void *rdata, size_t rdata_len) |
void | mg_dns_send_reply (struct mg_connection *nc, struct mg_dns_reply *r) |
int | mg_resolve_async (struct mg_mgr *mgr, const char *name, int query, mg_resolve_callback_t cb, void *data) |
void | mg_set_nameserver (struct mg_mgr *mgr, const char *nameserver) |
int | mg_resolve_async_opt (struct mg_mgr *mgr, const char *name, int query, mg_resolve_callback_t cb, void *data, struct mg_resolve_async_opts opts) |
int | mg_resolve_from_hosts_file (const char *host, union socket_address *usa) |
int | mg_set_protocol_coap (struct mg_connection *nc) |
struct mg_coap_option * | mg_coap_add_option (struct mg_coap_message *cm, uint32_t number, char *value, size_t len) |
void | mg_coap_free_options (struct mg_coap_message *cm) |
uint32_t | mg_coap_send_message (struct mg_connection *nc, struct mg_coap_message *cm) |
uint32_t | mg_coap_send_ack (struct mg_connection *nc, uint16_t msg_id) |
uint32_t | mg_coap_parse (struct mbuf *io, struct mg_coap_message *cm) |
uint32_t | mg_coap_compose (struct mg_coap_message *cm, struct mbuf *io) |
struct mg_connection * | mg_sntp_connect (struct mg_mgr *mgr, MG_CB(mg_event_handler_t event_handler, void *user_data), const char *sntp_server_name) |
void | mg_sntp_send_request (struct mg_connection *c) |
struct mg_connection * | mg_sntp_get_time (struct mg_mgr *mgr, mg_event_handler_t event_handler, const char *sntp_server_name) |
void | mg_set_protocol_socks (struct mg_connection *c) |
struct mg_iface * | mg_socks_mk_iface (struct mg_mgr *, const char *proxy_addr) |
Variables | |
const struct mg_iface_vtable * | mg_ifaces [] |
int | mg_num_ifaces |
const char * | fmt |
typedef size_t _off_t |
typedef int bool |
typedef void(* cs_base64_putc_t) (char, void *) |
typedef short int16_t |
typedef int int32_t |
typedef __int64 int64_t |
typedef signed char int8_t |
typedef long intptr_t |
typedef void(* mg_event_handler_t) (struct mg_connection *nc, int ev, void *ev_data MG_UD_ARG(void *user_data)) |
typedef struct mg_str(* mg_fu_fname_fn) (struct mg_connection *nc, struct mg_str fname) |
typedef void(* mg_init_cb) (struct mg_mgr *mgr) |
typedef void(* mg_resolve_callback_t) (struct mg_dns_message *dns_message, void *user_data, enum mg_resolve_err) |
typedef unsigned int mode_t |
typedef int sock_t |
typedef int socklen_t |
typedef long ssize_t |
typedef long suseconds_t |
typedef unsigned short uint16_t |
typedef unsigned int uint32_t |
typedef unsigned __int64 uint64_t |
typedef unsigned char uint8_t |
typedef unsigned int * uintptr_t |
enum mg_resolve_err |
enum mg_socks_command |
enum mg_socks_response |
enum mg_ssl_if_result |
__attribute__ | ( | (format(printf, 2, 3)) | ) |
Referenced by deliver_chunk().
int _stat | ( | const char * | pathname, |
struct stat * | st | ||
) |
Referenced by mg_http_handler2().
int _wstati64 | ( | const wchar_t * | path, |
cs_stat_t * | st | ||
) |
Referenced by mg_http_handler2().
int asprintf | ( | char ** | strp, |
const char * | fmt, | ||
... | |||
) |
Referenced by mg_http_handler2().
int c_snprintf | ( | char * | buf, |
size_t | buf_size, | ||
const char * | format, | ||
... | |||
) |
size_t c_strnlen | ( | const char * | s, |
size_t | maxlen | ||
) |
References c_vsnprintf(), and WEAK.
Referenced by c_itoa(), and mg_strstrip().
const char * c_strnstr | ( | const char * | s, |
const char * | find, | ||
size_t | slen | ||
) |
References strdup(), strlen(), and WEAK.
Referenced by mg_http_handler2(), and to_wchar().
int c_vsnprintf | ( | char * | buf, |
size_t | buf_size, | ||
const char * | format, | ||
va_list | ap | ||
) |
Referenced by c_itoa(), c_snprintf(), and c_strnlen().
int cs_base64_decode | ( | const unsigned char * | s, |
int | len, | ||
char * | dst, | ||
int * | dec_len | ||
) |
References from_b64().
Referenced by mg_http_handler2().
void cs_base64_encode | ( | const unsigned char * | src, |
int | src_len, | ||
char * | dst | ||
) |
Referenced by mg_http_handler2().
void cs_base64_finish | ( | struct cs_base64_ctx * | ctx | ) |
References cs_base64_ctx::b64_putc, cs_base64_ctx::chunk, cs_base64_ctx::chunk_size, cs_base64_emit_chunk(), and cs_base64_ctx::user_data.
Referenced by mg_http_handler2().
void cs_base64_init | ( | struct cs_base64_ctx * | ctx, |
cs_base64_putc_t | putc, | ||
void * | user_data | ||
) |
References cs_base64_ctx::b64_putc, cs_base64_ctx::chunk_size, and cs_base64_ctx::user_data.
Referenced by mg_http_handler2().
void cs_base64_update | ( | struct cs_base64_ctx * | ctx, |
const char * | str, | ||
size_t | len | ||
) |
References cs_base64_ctx::chunk, cs_base64_ctx::chunk_size, and cs_base64_emit_chunk().
Referenced by mg_http_handler2().
void cs_fprint_base64 | ( | FILE * | f, |
const unsigned char * | src, | ||
int | src_len | ||
) |
void cs_from_hex | ( | char * | to, |
const char * | p, | ||
size_t | len | ||
) |
void cs_hmac_sha1 | ( | const unsigned char * | key, |
size_t | key_len, | ||
const unsigned char * | text, | ||
size_t | text_len, | ||
unsigned char | out[20] | ||
) |
References cs_sha1_final(), cs_sha1_init(), cs_sha1_update(), mbuf_init(), and WEAK.
void cs_md5_final | ( | unsigned char * | md, |
cs_md5_ctx * | c | ||
) |
void cs_md5_init | ( | cs_md5_ctx * | c | ) |
References cs_md5_ctx::bits, and cs_md5_ctx::buf.
Referenced by mg_http_handler2().
void cs_md5_update | ( | cs_md5_ctx * | c, |
const unsigned char * | data, | ||
size_t | len | ||
) |
References cs_md5_ctx::bits, cs_md5_ctx::buf, byteReverse(), cs_md5_transform(), and cs_md5_ctx::in.
Referenced by mg_http_handler2().
void cs_sha1_final | ( | unsigned char | digest[20], |
cs_sha1_ctx * | |||
) |
References char64long16::c, cs_sha1_ctx::count, cs_sha1_update(), and cs_sha1_ctx::state.
Referenced by cs_hmac_sha1(), and mg_http_handler2().
void cs_sha1_init | ( | cs_sha1_ctx * | ) |
References cs_sha1_ctx::count, and cs_sha1_ctx::state.
Referenced by cs_hmac_sha1(), and mg_http_handler2().
void cs_sha1_update | ( | cs_sha1_ctx * | , |
const unsigned char * | data, | ||
uint32_t | len | ||
) |
References cs_sha1_ctx::buffer, cs_sha1_ctx::count, cs_sha1_transform(), and cs_sha1_ctx::state.
Referenced by cs_hmac_sha1(), cs_sha1_final(), and mg_http_handler2().
double cs_time | ( | void | ) |
References gettimeofday(), timeval::tv_sec, and timeval::tv_usec.
Referenced by cs_log_print_prefix(), cs_log_set_level(), mg_socks_if_poll(), and mg_time().
double cs_timegm | ( | const struct tm * | tm | ) |
int64_t cs_to64 | ( | const char * | s | ) |
Referenced by cs_from_hex().
void cs_to_hex | ( | char * | to, |
const unsigned char * | p, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2(), and strdup().
int gettimeofday | ( | struct timeval * | t, |
void * | tz | ||
) |
References timeval::tv_sec, and timeval::tv_usec.
in_addr_t inet_addr | ( | const char * | cp | ) |
int inet_aton | ( | const char * | cp, |
struct in_addr * | inp | ||
) |
char * inet_ntoa | ( | struct in_addr | in | ) |
Referenced by mg_accept_conn(), mg_do_connect(), mg_http_handler2(), mg_if_accept_tcp_cb(), mg_if_connect_cb(), mg_recv_udp(), and mg_resolve().
const char * inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
socklen_t | size | ||
) |
Referenced by mg_http_handler2().
int inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
Referenced by mg_http_handler2(), and mg_parse_address().
size_t mbuf_append | ( | struct mbuf * | a, |
const void * | data, | ||
size_t | data_size | ||
) |
References mbuf::len, mbuf_insert(), mbuf_remove(), and WEAK.
Referenced by altbuf_append(), mbuf_insert(), mg_assemble_uri(), mg_http_handler2(), mg_recv_udp(), mg_send(), mg_set_cipher_list(), mg_socks_if_tcp_send(), and mg_ssl_if_ossl_set_psk().
void mbuf_free | ( | struct mbuf * | mbuf | ) |
References mbuf::buf, mbuf_init(), mbuf_resize(), and WEAK.
Referenced by altbuf_reset(), mbuf_init(), mg_assemble_uri(), mg_destroy_conn(), mg_http_handler2(), mg_recv_udp(), and mg_ssl_if_conn_free().
void mbuf_init | ( | struct mbuf * | mbuf, |
size_t | initial_capacity | ||
) |
References mbuf::buf, mbuf::len, mbuf_free(), mbuf_resize(), mbuf::size, and WEAK.
Referenced by altbuf_init(), cs_hmac_sha1(), mbuf_free(), mg_assemble_uri(), mg_http_handler2(), and mg_ssl_if_conn_init().
size_t mbuf_insert | ( | struct mbuf * | a, |
size_t | off, | ||
const void * | buf, | ||
size_t | len | ||
) |
References mbuf::buf, mbuf::len, mbuf_append(), mbuf::size, and WEAK.
Referenced by mbuf_append(), mbuf_trim(), and mg_http_handler2().
void mbuf_remove | ( | struct mbuf * | mb, |
size_t | data_size | ||
) |
References mbuf::buf, mbuf::len, mg_ncasecmp(), and WEAK.
Referenced by mbuf_append(), mg_forward(), mg_http_handler2(), mg_http_transfer_file_data(), mg_if_can_send_cb(), mg_socks_if_tcp_recv(), and socks_if_handler().
void mbuf_resize | ( | struct mbuf * | a, |
size_t | new_size | ||
) |
References mbuf::buf, mbuf::len, mbuf_trim(), mbuf::size, and WEAK.
Referenced by mbuf_free(), mbuf_init(), mbuf_trim(), and mg_do_recv().
void mbuf_trim | ( | struct mbuf * | mbuf | ) |
References mbuf::len, mbuf_insert(), mbuf_resize(), and WEAK.
Referenced by altbuf_get_buf(), mbuf_resize(), mg_http_handler2(), mg_if_can_send_cb(), mg_recv_tcp(), mg_recv_udp(), and mg_set_cipher_list().
struct mg_connection* mg_add_sock | ( | struct mg_mgr * | mgr, |
sock_t | sock, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | |||
) |
struct mg_connection* mg_add_sock_opt | ( | struct mg_mgr * | mgr, |
sock_t | sock, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | , | ||
struct mg_add_sock_opts | opts | ||
) |
int mg_asprintf | ( | char ** | buf, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
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 | ||
) |
References mbuf::buf, mg_str::len, mbuf::len, mbuf_append(), mbuf_free(), mbuf_init(), mg_normalize_uri_path(), mg_strdup(), and mg_str::p.
int mg_avprintf | ( | char ** | buf, |
size_t | size, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Referenced by mg_asprintf(), mg_http_handler2(), and mg_vprintf().
int mg_base64_decode | ( | const unsigned char * | s, |
int | len, | ||
char * | dst | ||
) |
Referenced by mg_http_handler2().
void mg_base64_encode | ( | const unsigned char * | src, |
int | src_len, | ||
char * | dst | ||
) |
Referenced by mg_http_handler2().
Referenced by mg_http_handler2().
struct mg_connection* mg_bind | ( | struct mg_mgr * | mgr, |
const char * | address, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | |||
) |
struct mg_connection* mg_bind_opt | ( | struct mg_mgr * | mgr, |
const char * | address, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | , | ||
struct mg_bind_opts | opts | ||
) |
void mg_broadcast | ( | struct mg_mgr * | mgr, |
mg_event_handler_t | cb, | ||
void * | data, | ||
size_t | len | ||
) |
References ctl_msg::callback, mg_mgr::ctl, and ctl_msg::message.
int mg_casecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
References mg_asprintf(), mg_ncasecmp(), and WEAK.
Referenced by mg_get_mime_type(), and mg_ncasecmp().
int mg_check_digest_auth | ( | struct mg_str | method, |
struct mg_str | uri, | ||
struct mg_str | username, | ||
struct mg_str | cnonce, | ||
struct mg_str | response, | ||
struct mg_str | qop, | ||
struct mg_str | nc, | ||
struct mg_str | nonce, | ||
struct mg_str | auth_domain, | ||
FILE * | fp | ||
) |
Referenced by mg_http_handler2().
int mg_check_ip_acl | ( | const char * | acl, |
uint32_t | remote_ip | ||
) |
References mg_next_comma_list_entry(), mg_str::p, and parse_net().
Referenced by mg_http_handler2().
struct mg_coap_option* mg_coap_add_option | ( | struct mg_coap_message * | cm, |
uint32_t | number, | ||
char * | value, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2().
uint32_t mg_coap_compose | ( | struct mg_coap_message * | cm, |
struct mbuf * | io | ||
) |
Referenced by mg_http_handler2().
void mg_coap_free_options | ( | struct mg_coap_message * | cm | ) |
Referenced by mg_http_handler2().
uint32_t mg_coap_parse | ( | struct mbuf * | io, |
struct mg_coap_message * | cm | ||
) |
Referenced by mg_http_handler2().
uint32_t mg_coap_send_ack | ( | struct mg_connection * | nc, |
uint16_t | msg_id | ||
) |
Referenced by mg_http_handler2().
uint32_t mg_coap_send_message | ( | struct mg_connection * | nc, |
struct mg_coap_message * | cm | ||
) |
Referenced by mg_http_handler2().
int mg_conn_addr_to_str | ( | struct mg_connection * | c, |
char * | buf, | ||
size_t | len, | ||
int | flags | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_connect | ( | struct mg_mgr * | mgr, |
const char * | address, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | |||
) |
Referenced by mqtt_client_event(), and mqtt_client_init().
struct mg_connection* mg_connect_http | ( | struct mg_mgr * | mgr, |
MG_CB(mg_event_handler_t event_handler, void *user_data) | , | ||
const char * | url, | ||
const char * | extra_headers, | ||
const char * | post_data | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_connect_http_opt | ( | struct mg_mgr * | mgr, |
MG_CB(mg_event_handler_t ev_handler, void *user_data) | , | ||
struct mg_connect_opts | opts, | ||
const char * | url, | ||
const char * | extra_headers, | ||
const char * | post_data | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_connect_opt | ( | struct mg_mgr * | mgr, |
const char * | address, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | , | ||
struct mg_connect_opts | opts | ||
) |
struct mg_connection* mg_connect_ws | ( | struct mg_mgr * | mgr, |
MG_CB(mg_event_handler_t event_handler, void *user_data) | , | ||
const char * | url, | ||
const char * | protocol, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_connect_ws_opt | ( | struct mg_mgr * | mgr, |
MG_CB(mg_event_handler_t ev_handler, void *user_data) | , | ||
struct mg_connect_opts | opts, | ||
const char * | url, | ||
const char * | protocol, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
int mg_dns_copy_questions | ( | struct mbuf * | io, |
struct mg_dns_message * | msg | ||
) |
Referenced by mg_http_handler2().
struct mg_dns_reply mg_dns_create_reply | ( | struct mbuf * | io, |
struct mg_dns_message * | msg | ||
) |
int mg_dns_encode_name | ( | struct mbuf * | io, |
const char * | name, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2().
int mg_dns_encode_record | ( | struct mbuf * | io, |
struct mg_dns_resource_record * | rr, | ||
const char * | name, | ||
size_t | nlen, | ||
const void * | rdata, | ||
size_t | rlen | ||
) |
Referenced by mg_http_handler2().
int mg_dns_insert_header | ( | struct mbuf * | io, |
size_t | pos, | ||
struct mg_dns_message * | msg | ||
) |
Referenced by mg_http_handler2().
struct mg_dns_resource_record* mg_dns_next_record | ( | struct mg_dns_message * | msg, |
int | query, | ||
struct mg_dns_resource_record * | prev | ||
) |
Referenced by mg_http_handler2().
int mg_dns_parse_record_data | ( | struct mg_dns_message * | msg, |
struct mg_dns_resource_record * | rr, | ||
void * | data, | ||
size_t | data_len | ||
) |
Referenced by mg_http_handler2(), and resolve_cb().
int mg_dns_reply_record | ( | struct mg_dns_reply * | reply, |
struct mg_dns_resource_record * | question, | ||
const char * | name, | ||
int | rtype, | ||
int | ttl, | ||
const void * | rdata, | ||
size_t | rdata_len | ||
) |
Referenced by mg_http_handler2().
void mg_dns_send_reply | ( | struct mg_connection * | nc, |
struct mg_dns_reply * | r | ||
) |
Referenced by mg_http_handler2().
size_t mg_dns_uncompress_name | ( | struct mg_dns_message * | msg, |
struct mg_str * | name, | ||
char * | dst, | ||
int | dst_len | ||
) |
Referenced by mg_http_handler2().
void mg_file_upload_handler | ( | struct mg_connection * | nc, |
int | ev, | ||
void * | ev_data, | ||
mg_fu_fname_fn local_name_fn | MG_UD_ARGvoid *user_data | ||
) |
Referenced by mg_http_handler2().
struct mg_iface* mg_find_iface | ( | struct mg_mgr * | mgr, |
const struct mg_iface_vtable * | vtable, | ||
struct mg_iface * | from | ||
) |
References mg_mgr::ifaces, mg_mgr::num_ifaces, and mg_iface::vtable.
FILE* mg_fopen | ( | const char * | path, |
const char * | mode | ||
) |
Referenced by mg_http_handler2().
size_t mg_fread | ( | void * | ptr, |
size_t | size, | ||
size_t | count, | ||
FILE * | f | ||
) |
Referenced by mg_http_handler2(), and mg_http_transfer_file_data().
size_t mg_fwrite | ( | const void * | ptr, |
size_t | size, | ||
size_t | count, | ||
FILE * | f | ||
) |
Referenced by mg_http_handler2(), and mg_http_transfer_file_data().
int mg_get_http_basic_auth | ( | struct http_message * | hm, |
char * | user, | ||
size_t | user_len, | ||
char * | pass, | ||
size_t | pass_len | ||
) |
Referenced by mg_http_handler2().
struct mg_str* mg_get_http_header | ( | struct http_message * | hm, |
const char * | name | ||
) |
References http_message::header_names, http_message::header_values, mg_str::len, mg_ncasecmp(), mg_str::p, and strlen().
Referenced by mg_http_handler2().
int mg_get_http_var | ( | const struct mg_str * | buf, |
const char * | name, | ||
char * | dst, | ||
size_t | dst_len | ||
) |
Referenced by mg_http_handler2().
void mg_hash_md5_v | ( | size_t | num_msgs, |
const uint8_t * | msgs[], | ||
const size_t * | msg_lens, | ||
uint8_t * | digest | ||
) |
Referenced by mg_http_handler2().
void mg_hash_sha1_v | ( | size_t | num_msgs, |
const uint8_t * | msgs[], | ||
const size_t * | msg_lens, | ||
uint8_t * | digest | ||
) |
Referenced by mg_http_handler2().
int mg_hexdump | ( | const void * | buf, |
int | len, | ||
char * | dst, | ||
int | dst_len | ||
) |
Referenced by mg_http_handler2().
void mg_hexdump_connection | ( | struct mg_connection * | nc, |
const char * | path, | ||
const void * | buf, | ||
int | num_bytes, | ||
int | ev | ||
) |
Referenced by mg_call(), mg_http_handler2(), mg_if_can_send_cb(), mg_recv_tcp(), and mg_recv_udp().
void mg_hexdumpf | ( | FILE * | fp, |
const void * | buf, | ||
int | len | ||
) |
Referenced by mg_http_handler2().
int mg_http_check_digest_auth | ( | struct http_message * | hm, |
const char * | auth_domain, | ||
FILE * | fp | ||
) |
Referenced by mg_http_handler2().
int mg_http_create_digest_auth_header | ( | char * | buf, |
size_t | buf_len, | ||
const char * | method, | ||
const char * | uri, | ||
const char * | auth_domain, | ||
const char * | user, | ||
const char * | passwd, | ||
const char * | nonce | ||
) |
Referenced by mg_http_handler2().
int mg_http_is_authorized | ( | struct http_message * | hm, |
struct mg_str | path, | ||
const char * | domain, | ||
const char * | passwords_file, | ||
int | flags | ||
) |
Referenced by mg_http_handler2().
int mg_http_parse_header | ( | struct mg_str * | hdr, |
const char * | var_name, | ||
char * | buf, | ||
size_t | buf_size | ||
) |
Referenced by mg_http_handler2().
int mg_http_parse_header2 | ( | struct mg_str * | hdr, |
const char * | var_name, | ||
char ** | buf, | ||
size_t | buf_size | ||
) |
Referenced by mg_http_handler2().
void mg_http_reverse_proxy | ( | struct mg_connection * | nc, |
const struct http_message * | hm, | ||
struct mg_str | mount, | ||
struct mg_str | upstream | ||
) |
Referenced by mg_http_handler2().
void mg_http_send_digest_auth_request | ( | struct mg_connection * | c, |
const char * | domain | ||
) |
Referenced by mg_http_handler2().
void mg_http_send_error | ( | struct mg_connection * | nc, |
int | code, | ||
const char * | reason | ||
) |
Referenced by mg_http_handler2().
void mg_http_send_redirect | ( | struct mg_connection * | nc, |
int | status_code, | ||
const struct mg_str | location, | ||
const struct mg_str | extra_headers | ||
) |
Referenced by mg_http_handler2().
void mg_http_serve_file | ( | struct mg_connection * | nc, |
struct http_message * | hm, | ||
const char * | path, | ||
const struct mg_str | mime_type, | ||
const struct mg_str | extra_headers | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_if_accept_new_conn | ( | struct mg_connection * | lc | ) |
References mg_connection::flags, mg_connection::handler, mg_connection::iface, mg_connection::listener, LL_DEBUG, mg_add_conn(), mg_create_connection(), mg_connection::mgr, mg_connection::proto_handler, mg_connection::recv_mbuf_limit, mg_connection::sock, and mg_connection::user_data.
Referenced by mg_accept_conn(), and mg_http_handler2().
void mg_if_accept_tcp_cb | ( | struct mg_connection * | nc, |
union socket_address * | sa, | ||
size_t | sa_len | ||
) |
References mg_connection::flags, inet_ntoa(), mg_connection::listener, LL_DEBUG, mg_call(), mg_close_conn(), mg_ssl_handshake(), mg_ssl_if_conn_accept(), MG_SSL_OK, mg_connection::sa, socket_address::sin, and mg_connection::user_data.
Referenced by mg_accept_conn(), and mg_http_handler2().
void mg_if_can_recv_cb | ( | struct mg_connection * | nc | ) |
References mg_do_recv().
Referenced by mg_http_handler2(), mg_mgr_handle_conn(), and socks_if_relay().
void mg_if_can_send_cb | ( | struct mg_connection * | nc | ) |
References mbuf::buf, mg_connection::flags, mg_mgr::hexdump_file, mg_connection::iface, mg_connection::last_io_time, mbuf::len, mbuf_remove(), mbuf_trim(), mg_call(), mg_hexdump_connection(), mg_ssl_handshake(), mg_ssl_if_write(), MG_SSL_WANT_WRITE, mg_time(), mg_connection::mgr, mg_connection::send_mbuf, mg_iface_vtable::tcp_send, mg_iface_vtable::udp_send, mg_connection::user_data, and mg_iface::vtable.
Referenced by mg_http_handler2(), mg_mgr_handle_conn(), and socks_if_relay().
void mg_if_connect_cb | ( | struct mg_connection * | nc, |
int | err | ||
) |
References mg_connection::flags, inet_ntoa(), LL_DEBUG, mg_call(), mg_ssl_handshake(), mg_connection::sa, socket_address::sin, and mg_connection::user_data.
Referenced by mg_http_handler2(), mg_mgr_handle_conn(), and socks_if_handler().
struct mg_iface* mg_if_create_iface | ( | const struct mg_iface_vtable * | vtable, |
struct mg_mgr * | mgr | ||
) |
References mg_iface::data, mg_iface::mgr, and mg_iface::vtable.
Referenced by mg_mgr_init_opt(), and mg_socks_mk_iface().
int mg_if_poll | ( | struct mg_connection * | nc, |
double | now | ||
) |
References mg_connection::flags, mbuf::len, mg_call(), mg_close_conn(), mg_do_recv(), mg_timer(), recv_avail_size(), mg_connection::send_mbuf, and mg_connection::user_data.
Referenced by mg_http_handler2(), mg_mgr_handle_conn(), and mg_null_if_poll().
void mg_if_recv_udp_cb | ( | struct mg_connection * | nc, |
void * | buf, | ||
int | len, | ||
union socket_address * | sa, | ||
size_t | sa_len | ||
) |
int mg_is_big_endian | ( | void | ) |
Referenced by mg_http_handler2().
void mg_lwip_set_keepalive_params | ( | struct mg_connection * | nc, |
int | idle, | ||
int | interval, | ||
int | count | ||
) |
Referenced by mg_http_handler2().
size_t mg_match_prefix | ( | const char * | pattern, |
int | pattern_len, | ||
const char * | str | ||
) |
References mg_str::len, mg_match_prefix_n(), and strlen().
Referenced by cs_log_print_prefix(), and mg_http_handler2().
References mg_str::len, mg_str::p, and str_util_lowercase().
Referenced by mg_http_get_endpoint_handler(), mg_http_handler2(), and mg_match_prefix().
void mg_mbuf_append_base64 | ( | struct mbuf * | mbuf, |
const void * | data, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2().
void mg_mbuf_append_base64_putc | ( | char | ch, |
void * | user_data | ||
) |
Referenced by mg_http_handler2().
void mg_mgr_free | ( | struct mg_mgr * | mgr | ) |
References mg_mgr::active_connections, mg_mgr::ctl, mg_iface_vtable::free, mg_mgr::ifaces, mg_close_conn(), mg_mgr_poll(), mg_mgr::nameserver, mg_connection::next, mg_mgr::num_ifaces, and mg_iface::vtable.
Referenced by mqtt_client_free().
void mg_mgr_init | ( | struct mg_mgr * | mgr, |
void * | user_data | ||
) |
References mg_mgr_init_opt().
Referenced by mg_http_handler2(), and mqtt_client_init().
void mg_mgr_init_opt | ( | struct mg_mgr * | mgr, |
void * | user_data, | ||
struct mg_mgr_init_opts | opts | ||
) |
References mg_mgr::ctl, mg_mgr::ifaces, mg_mgr_init_opts::ifaces, mg_iface_vtable::init, mg_mgr_init_opts::main_iface, mg_if_create_iface(), mg_ifaces, mg_num_ifaces, mg_ssl_if_init(), mg_mgr::nameserver, mg_mgr_init_opts::nameserver, mg_mgr::num_ifaces, mg_mgr_init_opts::num_ifaces, strdup(), mg_mgr::user_data, and mg_iface::vtable.
Referenced by mg_mgr_init().
double mg_mgr_min_timer | ( | const struct mg_mgr * | mgr | ) |
References mg_mgr::active_connections, mg_connection::ev_timer_time, and mg_connection::next.
int mg_mgr_poll | ( | struct mg_mgr * | mgr, |
int | milli | ||
) |
References mg_mgr::ifaces, mg_mgr::num_calls, mg_mgr::num_ifaces, mg_iface_vtable::poll, and mg_iface::vtable.
Referenced by mg_http_handler2(), mg_mgr_free(), and mqtt_client_poll().
struct mg_str mg_mk_str | ( | const char * | s | ) |
References mg_str::len, and strlen().
Referenced by mg_http_handler2(), mg_next_comma_list_entry(), and mg_next_comma_list_entry_n().
struct mg_str mg_mk_str_n | ( | const char * | s, |
size_t | len | ||
) |
References mg_vcmp(), and WEAK.
Referenced by mg_http_handler2(), and mg_next_comma_list_entry_n().
void mg_mqtt_broker | ( | struct mg_connection * | brk, |
int | ev, | ||
void * | data | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_broker_init | ( | struct mg_mqtt_broker * | brk, |
void * | user_data | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_connack | ( | struct mg_connection * | nc, |
uint8_t | return_code | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_disconnect | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
Referenced by mg_http_handler2().
struct mg_mqtt_session* mg_mqtt_next | ( | struct mg_mqtt_broker * | brk, |
struct mg_mqtt_session * | s | ||
) |
Referenced by mg_http_handler2().
int mg_mqtt_next_subscribe_topic | ( | struct mg_mqtt_message * | msg, |
struct mg_str * | topic, | ||
uint8_t * | qos, | ||
int | pos | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_ping | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
void mg_mqtt_pong | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
void mg_mqtt_puback | ( | struct mg_connection * | nc, |
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_pubcomp | ( | struct mg_connection * | nc, |
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_publish | ( | struct mg_connection * | nc, |
const char * | topic, | ||
uint16_t | message_id, | ||
int | flags, | ||
const void * | data, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2(), and mqtt_client_publish().
void mg_mqtt_pubrec | ( | struct mg_connection * | nc, |
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_pubrel | ( | struct mg_connection * | nc, |
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_suback | ( | struct mg_connection * | nc, |
uint8_t * | qoss, | ||
size_t | qoss_len, | ||
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_subscribe | ( | struct mg_connection * | nc, |
const struct mg_mqtt_topic_expression * | topics, | ||
size_t | topics_len, | ||
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_unsuback | ( | struct mg_connection * | nc, |
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
void mg_mqtt_unsubscribe | ( | struct mg_connection * | nc, |
char ** | topics, | ||
size_t | topics_len, | ||
uint16_t | message_id | ||
) |
Referenced by mg_http_handler2().
int mg_mqtt_vmatch_topic_expression | ( | const char * | exp, |
struct mg_str | topic | ||
) |
Referenced by mg_http_handler2().
int mg_ncasecmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | len | ||
) |
References mg_casecmp(), str_util_lowercase(), and WEAK.
Referenced by mbuf_remove(), mg_casecmp(), mg_get_http_header(), mg_http_handler2(), mg_http_parse_headers(), mg_parse_address(), mg_vcasecmp(), and str_util_lowercase().
struct mg_connection* mg_next | ( | struct mg_mgr * | mgr, |
struct mg_connection * | c | ||
) |
References mg_mgr::active_connections, and mg_connection::next.
Referenced by mg_http_handler2(), mg_mgr_handle_ctl_sock(), mg_recv_udp(), and mqtt_client_publish().
const char* mg_next_comma_list_entry | ( | const char * | list, |
struct mg_str * | val, | ||
struct mg_str * | eq_val | ||
) |
References mg_mk_str(), mg_next_comma_list_entry_n(), and mg_str::p.
Referenced by mg_check_ip_acl(), mg_get_mime_type(), and mg_http_handler2().
struct mg_str mg_next_comma_list_entry_n | ( | struct mg_str | list, |
struct mg_str * | val, | ||
struct mg_str * | eq_val | ||
) |
References mg_str::len, mg_mk_str(), mg_mk_str_n(), mg_strchr(), and mg_str::p.
Referenced by mg_next_comma_list_entry().
References mg_str::len, mg_vcmp(), mg_str::p, and parse_uri_component().
Referenced by mg_assemble_uri(), and mg_http_handler2().
int mg_open | ( | const char * | path, |
int | flag, | ||
int | mode | ||
) |
Referenced by mg_http_handler2().
int mg_parse_dns | ( | const char * | buf, |
int | len, | ||
struct mg_dns_message * | msg | ||
) |
Referenced by mg_http_handler2().
int mg_parse_http | ( | const char * | s, |
int | n, | ||
struct http_message * | hm, | ||
int | is_req | ||
) |
References http_message::body, mg_str::len, http_message::message, http_message::method, mg_http_get_request_len(), mg_http_parse_headers(), mg_skip(), mg_vcasecmp(), mg_str::p, http_message::proto, http_message::query_string, http_message::resp_code, http_message::resp_status_msg, and http_message::uri.
Referenced by mg_http_handler2().
int mg_parse_http_basic_auth | ( | struct mg_str * | hdr, |
char * | user, | ||
size_t | user_len, | ||
char * | pass, | ||
size_t | pass_len | ||
) |
Referenced by mg_http_handler2().
size_t mg_parse_multipart | ( | const char * | buf, |
size_t | buf_len, | ||
char * | var_name, | ||
size_t | var_name_len, | ||
char * | file_name, | ||
size_t | file_name_len, | ||
const char ** | chunk, | ||
size_t * | chunk_len | ||
) |
Referenced by mg_http_handler2().
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 | ||
) |
References mg_str::len, mg_str::p, and parse_uri_component().
Referenced by mg_http_handler2().
void mg_printf_html_escape | ( | struct mg_connection * | nc, |
const char * | fmt, | ||
... | |||
) |
Referenced by mg_http_handler2().
void mg_printf_http_chunk | ( | struct mg_connection * | nc, |
const char * | fmt, | ||
... | |||
) |
Referenced by mg_http_handler2().
void mg_printf_websocket_frame | ( | struct mg_connection * | nc, |
int | op_and_flags, | ||
const char * | fmt, | ||
... | |||
) |
Referenced by mg_http_handler2().
void mg_register_http_endpoint | ( | struct mg_connection * | nc, |
const char * | uri_path, | ||
MG_CB(mg_event_handler_t handler, void *user_data) | |||
) |
Referenced by mg_http_handler2().
void mg_register_http_endpoint_opt | ( | struct mg_connection * | nc, |
const char * | uri_path, | ||
mg_event_handler_t | handler, | ||
struct mg_http_endpoint_opts | opts | ||
) |
Referenced by mg_http_handler2().
int mg_resolve | ( | const char * | domain_name, |
char * | ip_addr_buf, | ||
size_t | buf_len | ||
) |
References inet_ntoa(), and mg_resolve2().
int mg_resolve_async | ( | struct mg_mgr * | mgr, |
const char * | name, | ||
int | query, | ||
mg_resolve_callback_t | cb, | ||
void * | data | ||
) |
Referenced by mg_http_handler2().
int mg_resolve_async_opt | ( | struct mg_mgr * | mgr, |
const char * | name, | ||
int | query, | ||
mg_resolve_callback_t | cb, | ||
void * | data, | ||
struct mg_resolve_async_opts | opts | ||
) |
Referenced by mg_connect_opt(), and mg_http_handler2().
int mg_resolve_from_hosts_file | ( | const char * | host, |
union socket_address * | usa | ||
) |
Referenced by mg_http_handler2(), and mg_parse_address().
void mg_run_in_task | ( | void(*)(struct mg_mgr *mgr, void *arg) | cb, |
void * | cb_arg | ||
) |
Referenced by mg_http_handler2().
void mg_send | ( | struct mg_connection * | , |
const void * | buf, | ||
int | len | ||
) |
References mg_connection::last_io_time, mbuf_append(), mg_recv_tcp(), mg_recv_udp(), mg_time(), and mg_connection::send_mbuf.
Referenced by mg_forward(), mg_http_handler2(), mg_http_transfer_file_data(), mg_vprintf(), and socks_if_handler().
void mg_send_dns_query | ( | struct mg_connection * | nc, |
const char * | name, | ||
int | query_type | ||
) |
Referenced by mg_http_handler2().
void mg_send_head | ( | struct mg_connection * | n, |
int | status_code, | ||
int64_t | content_length, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
void mg_send_http_chunk | ( | struct mg_connection * | nc, |
const char * | buf, | ||
size_t | len | ||
) |
Referenced by mg_http_handler2().
void mg_send_mqtt_handshake | ( | struct mg_connection * | nc, |
const char * | client_id | ||
) |
Referenced by mg_http_handler2().
void mg_send_mqtt_handshake_opt | ( | struct mg_connection * | nc, |
const char * | client_id, | ||
struct mg_send_mqtt_handshake_opts | |||
) |
Referenced by mg_http_handler2(), and mqtt_client_event().
void mg_send_response_line | ( | struct mg_connection * | nc, |
int | status_code, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_frame | ( | struct mg_connection * | nc, |
int | op_and_flags, | ||
const void * | data, | ||
size_t | data_len | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_framev | ( | struct mg_connection * | nc, |
int | op_and_flags, | ||
const struct mg_str * | strings, | ||
int | num_strings | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_handshake | ( | struct mg_connection * | nc, |
const char * | uri, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_handshake2 | ( | struct mg_connection * | nc, |
const char * | path, | ||
const char * | host, | ||
const char * | protocol, | ||
const char * | extra_headers | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_handshake3 | ( | struct mg_connection * | nc, |
const char * | path, | ||
const char * | host, | ||
const char * | protocol, | ||
const char * | extra_headers, | ||
const char * | user, | ||
const char * | pass | ||
) |
Referenced by mg_http_handler2().
void mg_send_websocket_handshake3v | ( | struct mg_connection * | nc, |
const struct mg_str | path, | ||
const struct mg_str | host, | ||
const struct mg_str | protocol, | ||
const struct mg_str | extra_headers, | ||
const struct mg_str | user, | ||
const struct mg_str | pass | ||
) |
Referenced by mg_http_handler2().
void mg_serve_http | ( | struct mg_connection * | nc, |
struct http_message * | hm, | ||
struct mg_serve_http_opts | opts | ||
) |
Referenced by mg_http_handler2().
void mg_set_close_on_exec | ( | sock_t | ) |
Referenced by mg_http_handler2(), mg_socket_if_sock_set(), and mg_socketpair().
void mg_set_nameserver | ( | struct mg_mgr * | mgr, |
const char * | nameserver | ||
) |
Referenced by mg_http_handler2().
int mg_set_protocol_coap | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
void mg_set_protocol_dns | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
void mg_set_protocol_http_websocket | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2().
void mg_set_protocol_mqtt | ( | struct mg_connection * | nc | ) |
Referenced by mg_http_handler2(), and mqtt_client_event().
void mg_set_protocol_socks | ( | struct mg_connection * | c | ) |
Referenced by mg_http_handler2().
const char * mg_set_ssl | ( | struct mg_connection * | nc, |
const char * | cert, | ||
const char * | ca_cert | ||
) |
References mg_ssl_if_conn_params::ca_cert, mg_ssl_if_conn_params::cert, mg_ssl_if_conn_init(), and MG_SSL_OK.
double mg_set_timer | ( | struct mg_connection * | c, |
double | timestamp | ||
) |
References mg_connection::ev_timer_time, mg_connection::flags, and mg_connection::priv_2.
Referenced by mg_http_handler2().
const char* mg_skip | ( | const char * | s, |
const char * | end_string, | ||
const char * | delimiters, | ||
struct mg_str * | v | ||
) |
Referenced by mg_http_handler2(), mg_http_parse_headers(), and mg_parse_http().
struct mg_connection* mg_sntp_connect | ( | struct mg_mgr * | mgr, |
MG_CB(mg_event_handler_t event_handler, void *user_data) | , | ||
const char * | sntp_server_name | ||
) |
Referenced by mg_http_handler2().
struct mg_connection* mg_sntp_get_time | ( | struct mg_mgr * | mgr, |
mg_event_handler_t | event_handler, | ||
const char * | sntp_server_name | ||
) |
Referenced by mg_http_handler2().
void mg_sntp_send_request | ( | struct mg_connection * | c | ) |
Referenced by mg_http_handler2().
int mg_sock_addr_to_str | ( | const union socket_address * | sa, |
char * | buf, | ||
size_t | len, | ||
int | flags | ||
) |
Referenced by mg_http_handler2(), and mg_sock_to_str().
void mg_sock_to_str | ( | sock_t | sock, |
char * | buf, | ||
size_t | len, | ||
int | flags | ||
) |
References mg_sock_addr_to_str(), and mg_sock_get_addr().
Referenced by mg_http_handler2().
int mg_socketpair | ( | sock_t | [2], |
int | sock_type | ||
) |
References mg_set_close_on_exec(), mg_socketpair_accept(), mg_socketpair_close(), socket_address::sa, and socket_address::sin.
Referenced by mg_http_handler2(), and mg_socket_if_init().
References mg_iface::data, mg_if_create_iface(), and strdup().
enum mg_ssl_if_result mg_ssl_if_conn_accept | ( | struct mg_connection * | nc, |
struct mg_connection * | lc | ||
) |
References mg_ssl_if_ctx::cert, mg_ssl_if_ctx::conf, mg_ssl_if_ctx::key, mg_set_cipher_list(), MG_SSL_ERROR, mg_ssl_if_mbed_set_psk(), mg_ssl_if_ossl_set_psk(), MG_SSL_OK, mg_use_ca_cert(), mg_use_cert(), mg_ssl_if_ctx::ssl, mg_ssl_if_ctx::ssl_ctx, and mg_connection::ssl_if_data.
Referenced by mg_http_handler2(), and mg_if_accept_tcp_cb().
void mg_ssl_if_conn_close_notify | ( | struct mg_connection * | nc | ) |
References mg_ssl_if_ctx::ssl, and mg_connection::ssl_if_data.
Referenced by mg_close_conn(), and mg_http_handler2().
void mg_ssl_if_conn_free | ( | struct mg_connection * | nc | ) |
enum mg_ssl_if_result mg_ssl_if_conn_init | ( | struct mg_connection * | nc, |
const struct mg_ssl_if_conn_params * | params, | ||
const char ** | err_msg | ||
) |
References mg_ssl_if_conn_params::ca_cert, mg_ssl_if_conn_params::cert, mg_ssl_if_conn_params::cipher_suites, mg_ssl_if_ctx::cipher_suites, mg_ssl_if_ctx::conf, mg_connection::flags, mg_ssl_if_conn_params::key, mbuf_init(), mg_set_cipher_list(), MG_SSL_ERROR, mg_ssl_if_mbed_random(), mg_ssl_if_mbed_set_psk(), mg_ssl_if_ossl_set_psk(), mg_ssl_mbed_log(), MG_SSL_OK, mg_ssl_if_ctx::psk, mg_ssl_if_conn_params::psk_identity, mg_ssl_if_conn_params::psk_key, mg_ssl_if_conn_params::server_name, mg_ssl_if_ctx::ssl, mg_ssl_if_ctx::ssl_ctx, and mg_connection::ssl_if_data.
Referenced by mg_bind_opt(), mg_connect_opt(), mg_http_handler2(), and mg_set_ssl().
enum mg_ssl_if_result mg_ssl_if_handshake | ( | struct mg_connection * | nc | ) |
References mg_ssl_if_ctx::conf, mg_connection::listener, MG_SSL_ERROR, mg_ssl_if_mbed_err(), mg_ssl_if_mbed_free_certs_and_keys(), mg_ssl_if_mbed_recv(), mg_ssl_if_mbed_send(), mg_ssl_if_ssl_err(), MG_SSL_OK, mg_connection::sock, mg_ssl_if_ctx::ssl, and mg_connection::ssl_if_data.
Referenced by mg_http_handler2(), and mg_ssl_handshake().
void mg_ssl_if_init | ( | ) |
References LL_INFO.
Referenced by mg_http_handler2(), and mg_mgr_init_opt().
int mg_ssl_if_read | ( | struct mg_connection * | nc, |
void * | buf, | ||
size_t | buf_size | ||
) |
References mg_connection::flags, mg_ssl_if_mbed_err(), mg_ssl_if_ssl_err(), mg_ssl_if_ctx::ssl, and mg_connection::ssl_if_data.
Referenced by mg_http_handler2(), and mg_recv_tcp().
int mg_ssl_if_write | ( | struct mg_connection * | nc, |
const void * | data, | ||
size_t | len | ||
) |
References mg_ssl_if_mbed_err(), mg_ssl_if_ssl_err(), mg_ssl_if_ctx::saved_len, mg_ssl_if_ctx::ssl, and mg_connection::ssl_if_data.
Referenced by mg_http_handler2(), and mg_if_can_send_cb().
bool mg_start_task | ( | int | priority, |
int | stack_size, | ||
mg_init_cb | mg_init | ||
) |
Referenced by mg_http_handler2().
void* mg_start_thread | ( | void *(*)(void *) | thread_func, |
void * | thread_func_param | ||
) |
Referenced by mg_http_handler2().
int mg_stat | ( | const char * | path, |
cs_stat_t * | st | ||
) |
Referenced by mg_http_handler2().
const char * mg_strchr | ( | const struct mg_str | s, |
int | c | ||
) |
References mg_str::len, mg_strcmp(), mg_str::p, and WEAK.
Referenced by mg_http_handler2(), mg_next_comma_list_entry_n(), and mg_strdup_nul().
References mg_str::len, mg_strncmp(), mg_str::p, and WEAK.
Referenced by mg_strchr(), and mg_strncmp().
References mg_strdup_common().
Referenced by mg_assemble_uri(), and mg_http_handler2().
References mg_strchr(), mg_strdup_common(), and WEAK.
References mg_str::len, mg_strcmp(), mg_strstr(), and WEAK.
Referenced by mg_http_handler2(), and mg_strcmp().
References mg_str::len, and mg_str::p.
Referenced by mg_strncmp().
References c_strnlen(), mg_str::len, mg_str::p, and WEAK.
double mg_time | ( | void | ) |
References cs_time().
Referenced by mg_create_connection_base(), mg_http_handler2(), mg_if_can_send_cb(), mg_null_if_poll(), mg_recv_tcp(), mg_recv_udp(), mg_send(), mg_socket_if_poll(), and resolve_cb().
int mg_url_decode | ( | const char * | src, |
int | src_len, | ||
char * | dst, | ||
int | dst_len, | ||
int | is_form_url_encoded | ||
) |
Referenced by mg_http_handler2().
Referenced by mg_http_handler2().
struct mg_str mg_url_encode_opt | ( | const struct mg_str | src, |
const struct mg_str | safe, | ||
unsigned int | flags | ||
) |
Referenced by mg_http_handler2().
int mg_vcasecmp | ( | const struct mg_str * | str2, |
const char * | str1 | ||
) |
References mg_str::len, mg_ncasecmp(), mg_str::p, and strlen().
Referenced by mg_get_mime_type(), mg_http_handler2(), mg_parse_http(), and mg_vcmp().
int mg_vcmp | ( | const struct mg_str * | str2, |
const char * | str1 | ||
) |
References mg_str::len, mg_vcasecmp(), mg_str::p, strlen(), and WEAK.
Referenced by mg_http_handler2(), mg_mk_str_n(), and mg_normalize_uri_path().
const char int mg_vprintf | ( | struct mg_connection * | , |
const char * | fmt, | ||
va_list | ap | ||
) |
References mg_avprintf(), and mg_send().
Referenced by mg_printf().
int open | ( | const char * | filename, |
int | oflag, | ||
int | pmode | ||
) |
Referenced by mg_http_handler2().
int settimeofday | ( | const struct timeval * | tv, |
const void * | tz | ||
) |
int sl_fs_init | ( | void | ) |
Referenced by mg_http_handler2().
void sl_restart_cb | ( | struct mg_mgr * | mgr | ) |
Referenced by mg_http_handler2().
int sl_set_ssl_opts | ( | int | sock, |
struct mg_connection * | nc | ||
) |
Referenced by mg_http_handler2().
int slfs_open | ( | const unsigned char * | fname, |
uint32_t | flags | ||
) |
Referenced by mg_http_handler2().
Referenced by fsize(), and mg_http_handler2().
char * strdup | ( | const char * | src | ) |
References cs_to_hex(), strlen(), and WEAK.
Referenced by c_strnstr(), cs_log_set_filter(), data_acquired_handler(), flex_create_device(), mg_http_handler2(), mg_mgr_init_opt(), mg_socks_mk_iface(), mg_use_ca_cert(), mqtt_topic_default(), parse_getter(), and vdata_make().
const char* strerror | ( | ) |
Referenced by mg_http_handler2(), mg_resolve2(), and mqtt_client_event().
long long strtoll | ( | const char * | , |
char ** | , | ||
int | |||
) |
const char* fmt |
Referenced by cs_log_print_prefix().
const struct mg_iface_vtable* mg_ifaces[] |
Referenced by mg_mgr_init_opt().
int mg_num_ifaces |
Referenced by mg_mgr_init_opt().