MIDAS
|
#include <platform_custom.h>
#include <time.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Classes | |
struct | cs_md5_ctx |
struct | cs_sha1_ctx |
struct | mg_str |
struct | mbuf |
struct | cs_base64_ctx |
struct | mg_iface |
struct | mg_iface_vtable |
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_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_dns_resource_record |
struct | mg_dns_message |
struct | mg_resolve_async_opts |
Typedefs | |
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 void(* | mg_resolve_callback_t) (struct mg_dns_message *dns_message, void *user_data, enum mg_resolve_err) |
Enumerations | |
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 } |
Variables | |
const struct mg_iface_vtable * | mg_ifaces [] |
int | mg_num_ifaces |
#define _SYS_QUEUE_H_ |
Definition at line 2796 of file mongoose616.h.
Definition at line 172 of file mongoose616.h.
#define CS_COMMON_CS_BASE64_H_ |
Definition at line 2510 of file mongoose616.h.
#define CS_COMMON_CS_TIME_H_ |
Definition at line 2240 of file mongoose616.h.
#define CS_COMMON_MBUF_H_ |
Definition at line 2403 of file mongoose616.h.
#define CS_COMMON_MD5_H_ |
Definition at line 2138 of file mongoose616.h.
#define CS_COMMON_MG_STR_H_ |
Definition at line 2285 of file mongoose616.h.
#define CS_COMMON_PLATFORM_H_ |
Definition at line 38 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_LWIP_MG_LWIP_H_ |
Definition at line 2055 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3100_H_ |
Definition at line 661 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ |
Definition at line 722 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3220_H_ |
Definition at line 859 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ |
Definition at line 531 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_ |
Definition at line 588 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_MBED_H_ |
Definition at line 1175 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ |
Definition at line 983 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NRF51_H_ |
Definition at line 1270 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_ |
Definition at line 1327 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NXP_KINETIS_H_ |
Definition at line 1839 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NXP_LPC_H_ |
Definition at line 1771 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_PIC32_H_ |
Definition at line 1885 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_RS14100_H_ |
Definition at line 1937 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_STM32_H_ |
Definition at line 2001 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_TM4C129_H_ |
Definition at line 1103 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ |
Definition at line 366 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_WINCE_H_ |
Definition at line 1550 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_ |
Definition at line 180 of file mongoose616.h.
#define CS_COMMON_PLATFORMS_SIMPLELINK_CS_SIMPLELINK_H_ |
Definition at line 1388 of file mongoose616.h.
#define CS_COMMON_SHA1_H_ |
Definition at line 2186 of file mongoose616.h.
#define CS_COMMON_STR_UTIL_H_ |
Definition at line 2579 of file mongoose616.h.
#define CS_DISABLE_MD5 0 |
Definition at line 2143 of file mongoose616.h.
#define CS_DISABLE_SHA1 0 |
Definition at line 2189 of file mongoose616.h.
#define CS_ENABLE_STRDUP 0 |
Definition at line 2588 of file mongoose616.h.
#define CS_ENABLE_TO64 0 |
Definition at line 2592 of file mongoose616.h.
#define CS_MONGOOSE_SRC_COAP_H_ |
Definition at line 6496 of file mongoose616.h.
#define CS_MONGOOSE_SRC_COMMON_H_ |
Definition at line 24 of file mongoose616.h.
#define CS_MONGOOSE_SRC_DNS_H_ |
Definition at line 6126 of file mongoose616.h.
#define CS_MONGOOSE_SRC_DNS_SERVER_H_ |
Definition at line 6295 of file mongoose616.h.
#define CS_MONGOOSE_SRC_FEATURES_H_ |
Definition at line 3523 of file mongoose616.h.
#define CS_MONGOOSE_SRC_HTTP_CLIENT_H_ |
Definition at line 5718 of file mongoose616.h.
#define CS_MONGOOSE_SRC_HTTP_H_ |
Definition at line 4782 of file mongoose616.h.
#define CS_MONGOOSE_SRC_HTTP_SERVER_H_ |
Definition at line 5154 of file mongoose616.h.
#define CS_MONGOOSE_SRC_MQTT_BROKER_H_ |
Definition at line 6031 of file mongoose616.h.
#define CS_MONGOOSE_SRC_MQTT_H_ |
Definition at line 5800 of file mongoose616.h.
#define CS_MONGOOSE_SRC_NET_H_ |
Definition at line 3916 of file mongoose616.h.
#define CS_MONGOOSE_SRC_NET_IF_H_ |
Definition at line 3702 of file mongoose616.h.
#define CS_MONGOOSE_SRC_RESOLV_H_ |
Definition at line 6390 of file mongoose616.h.
#define CS_MONGOOSE_SRC_SNTP_H_ |
Definition at line 6638 of file mongoose616.h.
#define CS_MONGOOSE_SRC_SOCKS_H_ |
Definition at line 6695 of file mongoose616.h.
#define CS_MONGOOSE_SRC_SSL_IF_H_ |
Definition at line 3836 of file mongoose616.h.
#define CS_MONGOOSE_SRC_URI_H_ |
Definition at line 4494 of file mongoose616.h.
#define CS_MONGOOSE_SRC_UTIL_H_ |
Definition at line 4564 of file mongoose616.h.
#define CS_P_CC3100 6 |
Definition at line 49 of file mongoose616.h.
#define CS_P_CC3200 4 |
Definition at line 50 of file mongoose616.h.
#define CS_P_CC3220 17 |
Definition at line 51 of file mongoose616.h.
#define CS_P_CUSTOM 0 |
Definition at line 44 of file mongoose616.h.
#define CS_P_ESP32 15 |
Definition at line 47 of file mongoose616.h.
#define CS_P_ESP8266 3 |
Definition at line 48 of file mongoose616.h.
#define CS_P_MBED 7 |
Definition at line 54 of file mongoose616.h.
#define CS_P_MSP432 5 |
Definition at line 52 of file mongoose616.h.
#define CS_P_NRF51 12 |
Definition at line 58 of file mongoose616.h.
#define CS_P_NRF52 10 |
Definition at line 59 of file mongoose616.h.
#define CS_P_NXP_KINETIS 9 |
Definition at line 57 of file mongoose616.h.
#define CS_P_NXP_LPC 13 |
Definition at line 56 of file mongoose616.h.
#define CS_P_PIC32 11 |
Definition at line 60 of file mongoose616.h.
#define CS_P_RS14100 18 |
Definition at line 61 of file mongoose616.h.
#define CS_P_STM32 16 |
Definition at line 62 of file mongoose616.h.
#define CS_P_TM4C129 14 |
Definition at line 53 of file mongoose616.h.
#define CS_P_UNIX 1 |
Definition at line 45 of file mongoose616.h.
#define CS_P_WINCE 8 |
Definition at line 55 of file mongoose616.h.
#define CS_P_WINDOWS 2 |
Definition at line 46 of file mongoose616.h.
#define CS_STRINGIFY_LIT | ( | ... | ) | #__VA_ARGS__ |
Definition at line 2600 of file mongoose616.h.
#define CS_STRINGIFY_MACRO | ( | x | ) | CS_STRINGIFY_LIT(x) |
Definition at line 2614 of file mongoose616.h.
#define DISABLE_BASE64 0 |
Definition at line 2513 of file mongoose616.h.
#define DO_NOT_WARN_UNUSED |
Definition at line 168 of file mongoose616.h.
Definition at line 3175 of file mongoose616.h.
Definition at line 3161 of file mongoose616.h.
Definition at line 3210 of file mongoose616.h.
Definition at line 3169 of file mongoose616.h.
Definition at line 3214 of file mongoose616.h.
Definition at line 3166 of file mongoose616.h.
Definition at line 3234 of file mongoose616.h.
Definition at line 3247 of file mongoose616.h.
Definition at line 3255 of file mongoose616.h.
#define LIST_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.le_next) |
Definition at line 3263 of file mongoose616.h.
Definition at line 3265 of file mongoose616.h.
#define MBUF_SIZE_MAX_HEADROOM 1024 |
Definition at line 2420 of file mongoose616.h.
#define MBUF_SIZE_MULTIPLIER 1.5 |
Definition at line 2413 of file mongoose616.h.
#define MG_AUTH_FLAG_ALLOW_MISSING_FILE (1 << 2) |
Definition at line 5120 of file mongoose616.h.
#define MG_AUTH_FLAG_IS_DIRECTORY (1 << 0) |
Definition at line 5118 of file mongoose616.h.
#define MG_AUTH_FLAG_IS_GLOBAL_PASS_FILE (1 << 1) |
Definition at line 5119 of file mongoose616.h.
Definition at line 3689 of file mongoose616.h.
#define MG_CGI_ENVIRONMENT_SIZE 8192 |
Definition at line 4806 of file mongoose616.h.
#define MG_DISABLE_HTTP_DIGEST_AUTH 0 |
Definition at line 3526 of file mongoose616.h.
#define MG_DISABLE_HTTP_KEEP_ALIVE 0 |
Definition at line 3530 of file mongoose616.h.
#define MG_DISABLE_PFS 0 |
Definition at line 3534 of file mongoose616.h.
#define MG_DISABLE_WS_RANDOM_MASK 0 |
Definition at line 3538 of file mongoose616.h.
Definition at line 6134 of file mongoose616.h.
Definition at line 6138 of file mongoose616.h.
#define MG_DNS_ANY_RECORD 0xff |
Definition at line 6141 of file mongoose616.h.
Definition at line 6135 of file mongoose616.h.
Definition at line 6147 of file mongoose616.h.
Definition at line 6140 of file mongoose616.h.
#define MG_DNS_NSEC_RECORD 0x2f |
Definition at line 6142 of file mongoose616.h.
Definition at line 6136 of file mongoose616.h.
Definition at line 6139 of file mongoose616.h.
Definition at line 6137 of file mongoose616.h.
#define MG_ENABLE_ASYNC_RESOLVER 1 |
Definition at line 3542 of file mongoose616.h.
#define MG_ENABLE_BROADCAST 0 |
Definition at line 3546 of file mongoose616.h.
#define MG_ENABLE_CALLBACK_USERDATA 0 |
Definition at line 3681 of file mongoose616.h.
#define MG_ENABLE_COAP 0 |
Definition at line 3550 of file mongoose616.h.
#define MG_ENABLE_DEBUG 0 |
Definition at line 3554 of file mongoose616.h.
#define MG_ENABLE_DIRECTORY_LISTING 0 |
Definition at line 3558 of file mongoose616.h.
#define MG_ENABLE_DNS 1 |
Definition at line 3562 of file mongoose616.h.
#define MG_ENABLE_DNS_SERVER 0 |
Definition at line 3566 of file mongoose616.h.
#define MG_ENABLE_EXTRA_ERRORS_DESC 0 |
Definition at line 3677 of file mongoose616.h.
#define MG_ENABLE_FAKE_DAVLOCK 0 |
Definition at line 3570 of file mongoose616.h.
#define MG_ENABLE_FILESYSTEM 0 |
Definition at line 3574 of file mongoose616.h.
#define MG_ENABLE_GETADDRINFO 0 |
Definition at line 3578 of file mongoose616.h.
#define MG_ENABLE_HEXDUMP CS_ENABLE_STDIO |
Definition at line 3582 of file mongoose616.h.
#define MG_ENABLE_HTTP 1 |
Definition at line 3586 of file mongoose616.h.
#define MG_ENABLE_HTTP_CGI 0 |
Definition at line 3590 of file mongoose616.h.
#define MG_ENABLE_HTTP_SSI MG_ENABLE_FILESYSTEM |
Definition at line 3594 of file mongoose616.h.
#define MG_ENABLE_HTTP_SSI_EXEC 0 |
Definition at line 3598 of file mongoose616.h.
#define MG_ENABLE_HTTP_STREAMING_MULTIPART 0 |
Definition at line 3602 of file mongoose616.h.
#define MG_ENABLE_HTTP_URL_REWRITES (CS_PLATFORM == CS_P_WINDOWS || CS_PLATFORM == CS_P_UNIX) |
Definition at line 3668 of file mongoose616.h.
#define MG_ENABLE_HTTP_WEBDAV 0 |
Definition at line 3606 of file mongoose616.h.
#define MG_ENABLE_HTTP_WEBSOCKET MG_ENABLE_HTTP |
Definition at line 3610 of file mongoose616.h.
#define MG_ENABLE_IPV6 0 |
Definition at line 3614 of file mongoose616.h.
#define MG_ENABLE_MQTT 1 |
Definition at line 3618 of file mongoose616.h.
#define MG_ENABLE_MQTT_BROKER 0 |
Definition at line 3626 of file mongoose616.h.
#define MG_ENABLE_SNTP 0 |
Definition at line 3673 of file mongoose616.h.
#define MG_ENABLE_SOCKS 0 |
Definition at line 3622 of file mongoose616.h.
#define MG_ENABLE_SSL 0 |
Definition at line 3630 of file mongoose616.h.
#define MG_ENABLE_STDIO CS_ENABLE_STDIO |
Definition at line 3638 of file mongoose616.h.
#define MG_ENABLE_SYNC_RESOLVER 0 |
Definition at line 3634 of file mongoose616.h.
#define MG_ENABLE_THREADS 0 |
Definition at line 3653 of file mongoose616.h.
#define MG_EV_ACCEPT 1 /* New connection accepted. union socket_address * */ |
Definition at line 3959 of file mongoose616.h.
#define MG_EV_CLOSE 5 /* Connection is closed. NULL */ |
Definition at line 3963 of file mongoose616.h.
Definition at line 3960 of file mongoose616.h.
#define MG_EV_HTTP_CHUNK 102 /* struct http_message * */ |
Definition at line 4874 of file mongoose616.h.
#define MG_EV_HTTP_REPLY 101 /* struct http_message * */ |
Definition at line 4873 of file mongoose616.h.
#define MG_EV_HTTP_REQUEST 100 /* struct http_message * */ |
Definition at line 4872 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_CONNACK) |
Definition at line 5865 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_ACCEPTED 0 |
Definition at line 5897 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_BAD_AUTH 4 |
Definition at line 5901 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_IDENTIFIER_REJECTED 2 |
Definition at line 5899 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_NOT_AUTHORIZED 5 |
Definition at line 5902 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_SERVER_UNAVAILABLE 3 |
Definition at line 5900 of file mongoose616.h.
#define MG_EV_MQTT_CONNACK_UNACCEPTABLE_VERSION 1 |
Definition at line 5898 of file mongoose616.h.
#define MG_EV_MQTT_CONNECT (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_CONNECT) |
Definition at line 5864 of file mongoose616.h.
#define MG_EV_MQTT_DISCONNECT (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_DISCONNECT) |
Definition at line 5877 of file mongoose616.h.
#define MG_EV_MQTT_PINGREQ (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PINGREQ) |
Definition at line 5875 of file mongoose616.h.
#define MG_EV_MQTT_PINGRESP (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PINGRESP) |
Definition at line 5876 of file mongoose616.h.
#define MG_EV_MQTT_PUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBACK) |
Definition at line 5867 of file mongoose616.h.
#define MG_EV_MQTT_PUBCOMP (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBCOMP) |
Definition at line 5870 of file mongoose616.h.
#define MG_EV_MQTT_PUBLISH (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBLISH) |
Definition at line 5866 of file mongoose616.h.
#define MG_EV_MQTT_PUBREC (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBREC) |
Definition at line 5868 of file mongoose616.h.
#define MG_EV_MQTT_PUBREL (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBREL) |
Definition at line 5869 of file mongoose616.h.
#define MG_EV_MQTT_SUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_SUBACK) |
Definition at line 5872 of file mongoose616.h.
#define MG_EV_MQTT_SUBSCRIBE (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_SUBSCRIBE) |
Definition at line 5871 of file mongoose616.h.
#define MG_EV_MQTT_UNSUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_UNSUBACK) |
Definition at line 5874 of file mongoose616.h.
#define MG_EV_MQTT_UNSUBSCRIBE (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_UNSUBSCRIBE) |
Definition at line 5873 of file mongoose616.h.
#define MG_EV_POLL 0 /* Sent to each connection on each mg_mgr_poll() call */ |
Definition at line 3958 of file mongoose616.h.
Definition at line 3961 of file mongoose616.h.
Definition at line 3962 of file mongoose616.h.
Definition at line 4875 of file mongoose616.h.
#define MG_EV_SSI_CALL_CTX 106 /* struct mg_ssi_call_ctx * */ |
Definition at line 4876 of file mongoose616.h.
Definition at line 3964 of file mongoose616.h.
#define MG_EV_WEBSOCKET_CONTROL_FRAME 114 /* struct websocket_message * */ |
Definition at line 4882 of file mongoose616.h.
#define MG_EV_WEBSOCKET_FRAME 113 /* struct websocket_message * */ |
Definition at line 4881 of file mongoose616.h.
#define MG_EV_WEBSOCKET_HANDSHAKE_DONE 112 /* struct http_message * */ |
Definition at line 4880 of file mongoose616.h.
#define MG_EV_WEBSOCKET_HANDSHAKE_REQUEST 111 /* struct http_message * */ |
Definition at line 4879 of file mongoose616.h.
#define MG_F_CLOSE_IMMEDIATELY (1 << 11) /* Disconnect */ |
Definition at line 4034 of file mongoose616.h.
Definition at line 4024 of file mongoose616.h.
Definition at line 4036 of file mongoose616.h.
Definition at line 4037 of file mongoose616.h.
Definition at line 4029 of file mongoose616.h.
#define MG_F_LISTENING (1 << 0) /* This connection is listening */ |
Definition at line 4021 of file mongoose616.h.
Definition at line 4030 of file mongoose616.h.
Definition at line 4023 of file mongoose616.h.
Definition at line 4033 of file mongoose616.h.
Definition at line 4025 of file mongoose616.h.
Definition at line 4026 of file mongoose616.h.
#define MG_F_UDP (1 << 1) /* This connection is UDP */ |
Definition at line 4022 of file mongoose616.h.
#define MG_F_USER_1 (1 << 20) /* Flags left for application */ |
Definition at line 4039 of file mongoose616.h.
#define MG_F_USER_2 (1 << 21) |
Definition at line 4040 of file mongoose616.h.
#define MG_F_USER_3 (1 << 22) |
Definition at line 4041 of file mongoose616.h.
#define MG_F_USER_4 (1 << 23) |
Definition at line 4042 of file mongoose616.h.
#define MG_F_USER_5 (1 << 24) |
Definition at line 4043 of file mongoose616.h.
#define MG_F_USER_6 (1 << 25) |
Definition at line 4044 of file mongoose616.h.
Definition at line 4027 of file mongoose616.h.
Definition at line 4028 of file mongoose616.h.
Definition at line 4035 of file mongoose616.h.
#define MG_LWIP 0 |
Definition at line 2058 of file mongoose616.h.
#define MG_MAIN_IFACE 0 |
Definition at line 3720 of file mongoose616.h.
#define MG_MAX_DNS_ANSWERS 32 |
Definition at line 6145 of file mongoose616.h.
#define MG_MAX_DNS_QUESTIONS 32 |
Definition at line 6144 of file mongoose616.h.
#define MG_MAX_HTTP_HEADERS 20 |
Definition at line 4794 of file mongoose616.h.
#define MG_MAX_HTTP_REQUEST_SIZE 1024 |
Definition at line 4798 of file mongoose616.h.
#define MG_MAX_HTTP_SEND_MBUF 1024 |
Definition at line 4802 of file mongoose616.h.
#define MG_MAX_PATH 256 |
Definition at line 4579 of file mongoose616.h.
#define MG_MK_STR | ( | str_literal | ) | { str_literal, sizeof(str_literal) - 1 } |
Definition at line 2311 of file mongoose616.h.
#define MG_MK_STR_N | ( | str_literal, | |
len | |||
) | { str_literal, len } |
Definition at line 2313 of file mongoose616.h.
#define MG_MQTT_CLEAN_SESSION 0x02 |
Definition at line 5887 of file mongoose616.h.
#define MG_MQTT_CMD_CONNACK 2 |
Definition at line 5848 of file mongoose616.h.
#define MG_MQTT_CMD_CONNECT 1 |
Definition at line 5847 of file mongoose616.h.
#define MG_MQTT_CMD_DISCONNECT 14 |
Definition at line 5860 of file mongoose616.h.
#define MG_MQTT_CMD_PINGREQ 12 |
Definition at line 5858 of file mongoose616.h.
#define MG_MQTT_CMD_PINGRESP 13 |
Definition at line 5859 of file mongoose616.h.
#define MG_MQTT_CMD_PUBACK 4 |
Definition at line 5850 of file mongoose616.h.
#define MG_MQTT_CMD_PUBCOMP 7 |
Definition at line 5853 of file mongoose616.h.
#define MG_MQTT_CMD_PUBLISH 3 |
Definition at line 5849 of file mongoose616.h.
#define MG_MQTT_CMD_PUBREC 5 |
Definition at line 5851 of file mongoose616.h.
#define MG_MQTT_CMD_PUBREL 6 |
Definition at line 5852 of file mongoose616.h.
#define MG_MQTT_CMD_SUBACK 9 |
Definition at line 5855 of file mongoose616.h.
#define MG_MQTT_CMD_SUBSCRIBE 8 |
Definition at line 5854 of file mongoose616.h.
#define MG_MQTT_CMD_UNSUBACK 11 |
Definition at line 5857 of file mongoose616.h.
#define MG_MQTT_CMD_UNSUBSCRIBE 10 |
Definition at line 5856 of file mongoose616.h.
#define MG_MQTT_DUP 0x4 |
Definition at line 5881 of file mongoose616.h.
#define MG_MQTT_EVENT_BASE 200 |
Definition at line 5863 of file mongoose616.h.
#define MG_MQTT_GET_QOS | ( | flags | ) | (((flags) &0x6) >> 1) |
Definition at line 5883 of file mongoose616.h.
#define MG_MQTT_GET_WILL_QOS | ( | flags | ) | (((flags) &0x18) >> 3) |
Definition at line 5892 of file mongoose616.h.
#define MG_MQTT_HAS_PASSWORD 0x40 |
Definition at line 5890 of file mongoose616.h.
#define MG_MQTT_HAS_USER_NAME 0x80 |
Definition at line 5891 of file mongoose616.h.
#define MG_MQTT_HAS_WILL 0x04 |
Definition at line 5888 of file mongoose616.h.
#define MG_MQTT_QOS | ( | qos | ) | ((qos) << 1) |
Definition at line 5882 of file mongoose616.h.
#define MG_MQTT_RETAIN 0x1 |
Definition at line 5880 of file mongoose616.h.
#define MG_MQTT_SET_QOS | ( | flags, | |
qos | |||
) | (flags) = ((flags) & ~0x6) | ((qos) << 1) |
Definition at line 5884 of file mongoose616.h.
#define MG_MQTT_SET_WILL_QOS | ( | flags, | |
qos | |||
) | (flags) = ((flags) & ~0x18) | ((qos) << 3) |
Definition at line 5893 of file mongoose616.h.
#define MG_MQTT_WILL_RETAIN 0x20 |
Definition at line 5889 of file mongoose616.h.
#define MG_NET_IF MG_NET_IF_SOCKET |
Definition at line 3642 of file mongoose616.h.
#define MG_NET_IF_LWIP_LOW_LEVEL 3 |
Definition at line 109 of file mongoose616.h.
#define MG_NET_IF_NULL 5 |
Definition at line 111 of file mongoose616.h.
#define MG_NET_IF_PIC32 4 |
Definition at line 110 of file mongoose616.h.
#define MG_NET_IF_SIMPLELINK 2 |
Definition at line 108 of file mongoose616.h.
#define MG_NET_IF_SOCKET 1 |
Definition at line 107 of file mongoose616.h.
Definition at line 2315 of file mongoose616.h.
Definition at line 3930 of file mongoose616.h.
Definition at line 3931 of file mongoose616.h.
#define MG_SOCK_STRINGIFY_IP 1 |
Definition at line 4670 of file mongoose616.h.
#define MG_SOCK_STRINGIFY_PORT 2 |
Definition at line 4671 of file mongoose616.h.
#define MG_SOCK_STRINGIFY_REMOTE 4 |
Definition at line 4672 of file mongoose616.h.
#define MG_SSL_IF MG_SSL_IF_OPENSSL |
Definition at line 3646 of file mongoose616.h.
#define MG_SSL_IF_MBEDTLS 2 |
Definition at line 114 of file mongoose616.h.
#define MG_SSL_IF_OPENSSL 1 |
Definition at line 113 of file mongoose616.h.
#define MG_SSL_IF_SIMPLELINK 3 |
Definition at line 115 of file mongoose616.h.
Definition at line 3688 of file mongoose616.h.
#define MG_URL_ENCODE_F_SPACE_AS_PLUS (1 << 0) |
Definition at line 4757 of file mongoose616.h.
#define MG_URL_ENCODE_F_UPPERCASE_HEX (1 << 1) |
Definition at line 4758 of file mongoose616.h.
#define MG_VERSION "6.16" |
Definition at line 26 of file mongoose616.h.
#define MG_VPRINTF_BUFFER_SIZE 100 |
Definition at line 3923 of file mongoose616.h.
#define NOINLINE |
Definition at line 165 of file mongoose616.h.
#define NOINSTR |
Definition at line 167 of file mongoose616.h.
#define NORETURN |
Definition at line 164 of file mongoose616.h.
#define PRINTF_LIKE | ( | f, | |
a | |||
) |
Definition at line 143 of file mongoose616.h.
Definition at line 3205 of file mongoose616.h.
Definition at line 3206 of file mongoose616.h.
Definition at line 3207 of file mongoose616.h.
Definition at line 2902 of file mongoose616.h.
Definition at line 3355 of file mongoose616.h.
Definition at line 3357 of file mongoose616.h.
Definition at line 3358 of file mongoose616.h.
Definition at line 3356 of file mongoose616.h.
Definition at line 2900 of file mongoose616.h.
Definition at line 2901 of file mongoose616.h.
Definition at line 2946 of file mongoose616.h.
Definition at line 2950 of file mongoose616.h.
Definition at line 2955 of file mongoose616.h.
Definition at line 2970 of file mongoose616.h.
Definition at line 2960 of file mongoose616.h.
Definition at line 2930 of file mongoose616.h.
Definition at line 2975 of file mongoose616.h.
Definition at line 2984 of file mongoose616.h.
#define SLIST_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.sle_next) |
Definition at line 2989 of file mongoose616.h.
Definition at line 3005 of file mongoose616.h.
Definition at line 3010 of file mongoose616.h.
Definition at line 3051 of file mongoose616.h.
#define STAILQ_EMPTY | ( | head | ) | ((head)->stqh_first == NULL) |
Definition at line 3059 of file mongoose616.h.
#define STAILQ_FIRST | ( | head | ) | ((head)->stqh_first) |
Definition at line 3061 of file mongoose616.h.
Definition at line 3063 of file mongoose616.h.
Definition at line 3068 of file mongoose616.h.
Definition at line 3073 of file mongoose616.h.
#define STAILQ_HEAD_INITIALIZER | ( | head | ) | { NULL, &(head).stqh_first } |
Definition at line 3035 of file mongoose616.h.
Definition at line 3083 of file mongoose616.h.
Definition at line 3100 of file mongoose616.h.
Definition at line 3106 of file mongoose616.h.
#define STAILQ_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.stqe_next) |
Definition at line 3111 of file mongoose616.h.
Definition at line 3320 of file mongoose616.h.
Definition at line 3303 of file mongoose616.h.
Definition at line 3361 of file mongoose616.h.
Definition at line 3372 of file mongoose616.h.
Definition at line 3313 of file mongoose616.h.
Definition at line 3376 of file mongoose616.h.
Definition at line 3381 of file mongoose616.h.
Definition at line 3396 of file mongoose616.h.
Definition at line 3411 of file mongoose616.h.
Definition at line 3406 of file mongoose616.h.
Definition at line 3386 of file mongoose616.h.
Definition at line 3296 of file mongoose616.h.
Definition at line 3310 of file mongoose616.h.
Definition at line 3416 of file mongoose616.h.
Definition at line 3422 of file mongoose616.h.
Definition at line 3447 of file mongoose616.h.
Definition at line 3470 of file mongoose616.h.
#define TAILQ_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.tqe_next) |
Definition at line 3473 of file mongoose616.h.
#define TAILQ_PREV | ( | elm, | |
headname, | |||
field | |||
) | (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) |
Definition at line 3475 of file mongoose616.h.
Definition at line 3478 of file mongoose616.h.
Definition at line 3496 of file mongoose616.h.
#define TRACEBUF |
Definition at line 2903 of file mongoose616.h.
#define TRACEBUF_INITIALIZER |
Definition at line 2904 of file mongoose616.h.
#define TRASHIT | ( | x | ) |
Definition at line 2905 of file mongoose616.h.
#define WARN_UNUSED_RESULT |
Definition at line 166 of file mongoose616.h.
#define WEAK |
Definition at line 153 of file mongoose616.h.
#define WEBSOCKET_DONT_FIN 0x100 |
Definition at line 5092 of file mongoose616.h.
#define WEBSOCKET_OP_BINARY 2 |
Definition at line 5075 of file mongoose616.h.
#define WEBSOCKET_OP_CLOSE 8 |
Definition at line 5076 of file mongoose616.h.
#define WEBSOCKET_OP_CONTINUE 0 |
Definition at line 5073 of file mongoose616.h.
#define WEBSOCKET_OP_PING 9 |
Definition at line 5077 of file mongoose616.h.
#define WEBSOCKET_OP_PONG 10 |
Definition at line 5078 of file mongoose616.h.
#define WEBSOCKET_OP_TEXT 1 |
Definition at line 5074 of file mongoose616.h.
typedef void(* mg_event_handler_t) (struct mg_connection *nc, int ev, void *ev_data MG_UD_ARG(void *user_data)) |
Definition at line 3954 of file mongoose616.h.
typedef void(* mg_resolve_callback_t) (struct mg_dns_message *dns_message, void *user_data, enum mg_resolve_err) |
Definition at line 6405 of file mongoose616.h.
Enumerator | |
---|---|
MG_DNS_INVALID_RECORD | |
MG_DNS_QUESTION | |
MG_DNS_ANSWER |
Definition at line 6149 of file mongoose616.h.
Enumerator | |
---|---|
MG_RESOLVE_OK | |
MG_RESOLVE_NO_ANSWERS | |
MG_RESOLVE_EXCEEDED_RETRY_COUNT | |
MG_RESOLVE_TIMEOUT |
Definition at line 6398 of file mongoose616.h.
Definition at line 410 of file mongoose614.cxx.
Definition at line 2154 of file mongoose614.cxx.
void cs_md5_final | ( | unsigned char * | md, |
cs_md5_ctx * | c | ||
) |
void cs_md5_init | ( | cs_md5_ctx * | c | ) |
Definition at line 1094 of file mongoose614.cxx.
Definition at line 1186 of file mongoose614.cxx.
Definition at line 958 of file mongoose614.cxx.
Definition at line 1628 of file mongoose614.cxx.
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_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 * | 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 | ||
) |
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 | ||
) |
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_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 | ||
) |
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 | ||
) |
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 | ||
) |
int mg_dns_copy_questions | ( | struct mbuf * | io, |
struct mg_dns_message * | msg | ||
) |
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.
int mg_get_http_basic_auth | ( | struct http_message * | hm, |
char * | user, | ||
size_t | user_len, | ||
char * | pass, | ||
size_t | pass_len | ||
) |
|
extern |
|
extern |
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 | ||
) |
int mg_http_is_authorized | ( | struct http_message * | hm, |
struct mg_str | path, | ||
const char * | domain, | ||
const char * | passwords_file, | ||
int | flags | ||
) |
int mg_http_parse_header2 | ( | struct mg_str * | hdr, |
const char * | var_name, | ||
char ** | buf, | ||
size_t | buf_size | ||
) |
void mg_http_send_digest_auth_request | ( | struct mg_connection * | c, |
const char * | domain | ||
) |
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_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.
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.
Definition at line 10743 of file mongoose614.cxx.
Definition at line 10738 of file mongoose614.cxx.
Definition at line 2576 of file mongoose614.cxx.
Definition at line 3664 of file mongoose614.cxx.
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.
int mg_parse_http_basic_auth | ( | struct mg_str * | hdr, |
char * | user, | ||
size_t | user_len, | ||
char * | pass, | ||
size_t | pass_len | ||
) |
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 | ||
) |
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 | ||
) |
Definition at line 1822 of file mongoose614.cxx.
Definition at line 1761 of file mongoose614.cxx.
Definition at line 1742 of file mongoose614.cxx.
Definition at line 1797 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.
|
extern |
Definition at line 3628 of file mongoose614.cxx.
|
extern |
Definition at line 3632 of file mongoose614.cxx.