MIDAS
|
#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 2725 of file mongoose614.h.
Definition at line 165 of file mongoose614.h.
#define CS_COMMON_CS_BASE64_H_ |
Definition at line 2439 of file mongoose614.h.
#define CS_COMMON_CS_TIME_H_ |
Definition at line 2169 of file mongoose614.h.
#define CS_COMMON_MBUF_H_ |
Definition at line 2332 of file mongoose614.h.
#define CS_COMMON_MD5_H_ |
Definition at line 2067 of file mongoose614.h.
#define CS_COMMON_MG_STR_H_ |
Definition at line 2214 of file mongoose614.h.
#define CS_COMMON_PLATFORM_H_ |
Definition at line 38 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_LWIP_MG_LWIP_H_ |
Definition at line 1984 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3100_H_ |
Definition at line 654 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ |
Definition at line 715 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_CC3220_H_ |
Definition at line 852 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ |
Definition at line 524 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_ |
Definition at line 581 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_MBED_H_ |
Definition at line 1168 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ |
Definition at line 976 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NRF51_H_ |
Definition at line 1263 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_ |
Definition at line 1320 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NXP_KINETIS_H_ |
Definition at line 1832 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_NXP_LPC_H_ |
Definition at line 1764 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_PIC32_H_ |
Definition at line 1878 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_STM32_H_ |
Definition at line 1930 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_TM4C129_H_ |
Definition at line 1096 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ |
Definition at line 359 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_WINCE_H_ |
Definition at line 1543 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_ |
Definition at line 173 of file mongoose614.h.
#define CS_COMMON_PLATFORMS_SIMPLELINK_CS_SIMPLELINK_H_ |
Definition at line 1381 of file mongoose614.h.
#define CS_COMMON_SHA1_H_ |
Definition at line 2115 of file mongoose614.h.
#define CS_COMMON_STR_UTIL_H_ |
Definition at line 2508 of file mongoose614.h.
#define CS_DISABLE_MD5 0 |
Definition at line 2072 of file mongoose614.h.
#define CS_DISABLE_SHA1 0 |
Definition at line 2118 of file mongoose614.h.
#define CS_ENABLE_STRDUP 0 |
Definition at line 2517 of file mongoose614.h.
#define CS_ENABLE_TO64 0 |
Definition at line 2521 of file mongoose614.h.
#define CS_MONGOOSE_SRC_COAP_H_ |
Definition at line 6425 of file mongoose614.h.
#define CS_MONGOOSE_SRC_COMMON_H_ |
Definition at line 24 of file mongoose614.h.
#define CS_MONGOOSE_SRC_DNS_H_ |
Definition at line 6055 of file mongoose614.h.
#define CS_MONGOOSE_SRC_DNS_SERVER_H_ |
Definition at line 6224 of file mongoose614.h.
#define CS_MONGOOSE_SRC_FEATURES_H_ |
Definition at line 3452 of file mongoose614.h.
#define CS_MONGOOSE_SRC_HTTP_CLIENT_H_ |
Definition at line 5647 of file mongoose614.h.
#define CS_MONGOOSE_SRC_HTTP_H_ |
Definition at line 4711 of file mongoose614.h.
#define CS_MONGOOSE_SRC_HTTP_SERVER_H_ |
Definition at line 5083 of file mongoose614.h.
#define CS_MONGOOSE_SRC_MQTT_BROKER_H_ |
Definition at line 5960 of file mongoose614.h.
#define CS_MONGOOSE_SRC_MQTT_H_ |
Definition at line 5729 of file mongoose614.h.
#define CS_MONGOOSE_SRC_NET_H_ |
Definition at line 3845 of file mongoose614.h.
#define CS_MONGOOSE_SRC_NET_IF_H_ |
Definition at line 3631 of file mongoose614.h.
#define CS_MONGOOSE_SRC_RESOLV_H_ |
Definition at line 6319 of file mongoose614.h.
#define CS_MONGOOSE_SRC_SNTP_H_ |
Definition at line 6567 of file mongoose614.h.
#define CS_MONGOOSE_SRC_SOCKS_H_ |
Definition at line 6624 of file mongoose614.h.
#define CS_MONGOOSE_SRC_SSL_IF_H_ |
Definition at line 3765 of file mongoose614.h.
#define CS_MONGOOSE_SRC_URI_H_ |
Definition at line 4423 of file mongoose614.h.
#define CS_MONGOOSE_SRC_UTIL_H_ |
Definition at line 4493 of file mongoose614.h.
#define CS_P_CC3100 6 |
Definition at line 49 of file mongoose614.h.
#define CS_P_CC3200 4 |
Definition at line 50 of file mongoose614.h.
#define CS_P_CC3220 17 |
Definition at line 51 of file mongoose614.h.
#define CS_P_CUSTOM 0 |
Definition at line 44 of file mongoose614.h.
#define CS_P_ESP32 15 |
Definition at line 47 of file mongoose614.h.
#define CS_P_ESP8266 3 |
Definition at line 48 of file mongoose614.h.
#define CS_P_MBED 7 |
Definition at line 54 of file mongoose614.h.
#define CS_P_MSP432 5 |
Definition at line 52 of file mongoose614.h.
#define CS_P_NRF51 12 |
Definition at line 58 of file mongoose614.h.
#define CS_P_NRF52 10 |
Definition at line 59 of file mongoose614.h.
#define CS_P_NXP_KINETIS 9 |
Definition at line 57 of file mongoose614.h.
#define CS_P_NXP_LPC 13 |
Definition at line 56 of file mongoose614.h.
#define CS_P_PIC32 11 |
Definition at line 60 of file mongoose614.h.
#define CS_P_STM32 16 |
Definition at line 61 of file mongoose614.h.
#define CS_P_TM4C129 14 |
Definition at line 53 of file mongoose614.h.
#define CS_P_UNIX 1 |
Definition at line 45 of file mongoose614.h.
#define CS_P_WINCE 8 |
Definition at line 55 of file mongoose614.h.
#define CS_P_WINDOWS 2 |
Definition at line 46 of file mongoose614.h.
#define CS_STRINGIFY_LIT | ( | ... | ) | #__VA_ARGS__ |
Definition at line 2529 of file mongoose614.h.
#define CS_STRINGIFY_MACRO | ( | x | ) | CS_STRINGIFY_LIT(x) |
Definition at line 2543 of file mongoose614.h.
#define DISABLE_BASE64 0 |
Definition at line 2442 of file mongoose614.h.
#define DO_NOT_WARN_UNUSED |
Definition at line 161 of file mongoose614.h.
Definition at line 3104 of file mongoose614.h.
Definition at line 3090 of file mongoose614.h.
Definition at line 3139 of file mongoose614.h.
Definition at line 3098 of file mongoose614.h.
Definition at line 3143 of file mongoose614.h.
Definition at line 3095 of file mongoose614.h.
Definition at line 3163 of file mongoose614.h.
Definition at line 3176 of file mongoose614.h.
Definition at line 3184 of file mongoose614.h.
#define LIST_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.le_next) |
Definition at line 3192 of file mongoose614.h.
Definition at line 3194 of file mongoose614.h.
#define MBUF_SIZE_MAX_HEADROOM 1024 |
Definition at line 2349 of file mongoose614.h.
#define MBUF_SIZE_MULTIPLIER 1.5 |
Definition at line 2342 of file mongoose614.h.
#define MG_AUTH_FLAG_ALLOW_MISSING_FILE (1 << 2) |
Definition at line 5049 of file mongoose614.h.
#define MG_AUTH_FLAG_IS_DIRECTORY (1 << 0) |
Definition at line 5047 of file mongoose614.h.
#define MG_AUTH_FLAG_IS_GLOBAL_PASS_FILE (1 << 1) |
Definition at line 5048 of file mongoose614.h.
Definition at line 3618 of file mongoose614.h.
#define MG_CGI_ENVIRONMENT_SIZE 8192 |
Definition at line 4735 of file mongoose614.h.
#define MG_DISABLE_HTTP_DIGEST_AUTH 0 |
Definition at line 3455 of file mongoose614.h.
#define MG_DISABLE_HTTP_KEEP_ALIVE 0 |
Definition at line 3459 of file mongoose614.h.
#define MG_DISABLE_PFS 0 |
Definition at line 3463 of file mongoose614.h.
#define MG_DISABLE_WS_RANDOM_MASK 0 |
Definition at line 3467 of file mongoose614.h.
Definition at line 6063 of file mongoose614.h.
Definition at line 6067 of file mongoose614.h.
#define MG_DNS_ANY_RECORD 0xff |
Definition at line 6070 of file mongoose614.h.
Definition at line 6064 of file mongoose614.h.
Definition at line 6076 of file mongoose614.h.
Definition at line 6069 of file mongoose614.h.
#define MG_DNS_NSEC_RECORD 0x2f |
Definition at line 6071 of file mongoose614.h.
Definition at line 6065 of file mongoose614.h.
Definition at line 6068 of file mongoose614.h.
Definition at line 6066 of file mongoose614.h.
#define MG_ENABLE_ASYNC_RESOLVER 1 |
Definition at line 3471 of file mongoose614.h.
#define MG_ENABLE_BROADCAST 0 |
Definition at line 3475 of file mongoose614.h.
#define MG_ENABLE_CALLBACK_USERDATA 0 |
Definition at line 3610 of file mongoose614.h.
#define MG_ENABLE_COAP 0 |
Definition at line 3479 of file mongoose614.h.
#define MG_ENABLE_DEBUG 0 |
Definition at line 3483 of file mongoose614.h.
#define MG_ENABLE_DIRECTORY_LISTING 0 |
Definition at line 3487 of file mongoose614.h.
#define MG_ENABLE_DNS 1 |
Definition at line 3491 of file mongoose614.h.
#define MG_ENABLE_DNS_SERVER 0 |
Definition at line 3495 of file mongoose614.h.
#define MG_ENABLE_EXTRA_ERRORS_DESC 0 |
Definition at line 3606 of file mongoose614.h.
#define MG_ENABLE_FAKE_DAVLOCK 0 |
Definition at line 3499 of file mongoose614.h.
#define MG_ENABLE_FILESYSTEM 0 |
Definition at line 3503 of file mongoose614.h.
#define MG_ENABLE_GETADDRINFO 0 |
Definition at line 3507 of file mongoose614.h.
#define MG_ENABLE_HEXDUMP CS_ENABLE_STDIO |
Definition at line 3511 of file mongoose614.h.
#define MG_ENABLE_HTTP 1 |
Definition at line 3515 of file mongoose614.h.
#define MG_ENABLE_HTTP_CGI 0 |
Definition at line 3519 of file mongoose614.h.
#define MG_ENABLE_HTTP_SSI MG_ENABLE_FILESYSTEM |
Definition at line 3523 of file mongoose614.h.
#define MG_ENABLE_HTTP_SSI_EXEC 0 |
Definition at line 3527 of file mongoose614.h.
#define MG_ENABLE_HTTP_STREAMING_MULTIPART 0 |
Definition at line 3531 of file mongoose614.h.
#define MG_ENABLE_HTTP_URL_REWRITES (CS_PLATFORM == CS_P_WINDOWS || CS_PLATFORM == CS_P_UNIX) |
Definition at line 3597 of file mongoose614.h.
#define MG_ENABLE_HTTP_WEBDAV 0 |
Definition at line 3535 of file mongoose614.h.
#define MG_ENABLE_HTTP_WEBSOCKET MG_ENABLE_HTTP |
Definition at line 3539 of file mongoose614.h.
#define MG_ENABLE_IPV6 0 |
Definition at line 3543 of file mongoose614.h.
#define MG_ENABLE_MQTT 1 |
Definition at line 3547 of file mongoose614.h.
#define MG_ENABLE_MQTT_BROKER 0 |
Definition at line 3555 of file mongoose614.h.
#define MG_ENABLE_SNTP 0 |
Definition at line 3602 of file mongoose614.h.
#define MG_ENABLE_SOCKS 0 |
Definition at line 3551 of file mongoose614.h.
#define MG_ENABLE_SSL 0 |
Definition at line 3559 of file mongoose614.h.
#define MG_ENABLE_STDIO CS_ENABLE_STDIO |
Definition at line 3567 of file mongoose614.h.
#define MG_ENABLE_SYNC_RESOLVER 0 |
Definition at line 3563 of file mongoose614.h.
#define MG_ENABLE_THREADS 0 |
Definition at line 3582 of file mongoose614.h.
#define MG_EV_ACCEPT 1 /* New connection accepted. union socket_address * */ |
Definition at line 3888 of file mongoose614.h.
#define MG_EV_CLOSE 5 /* Connection is closed. NULL */ |
Definition at line 3892 of file mongoose614.h.
Definition at line 3889 of file mongoose614.h.
#define MG_EV_HTTP_CHUNK 102 /* struct http_message * */ |
Definition at line 4803 of file mongoose614.h.
#define MG_EV_HTTP_REPLY 101 /* struct http_message * */ |
Definition at line 4802 of file mongoose614.h.
#define MG_EV_HTTP_REQUEST 100 /* struct http_message * */ |
Definition at line 4801 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_CONNACK) |
Definition at line 5794 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_ACCEPTED 0 |
Definition at line 5826 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_BAD_AUTH 4 |
Definition at line 5830 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_IDENTIFIER_REJECTED 2 |
Definition at line 5828 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_NOT_AUTHORIZED 5 |
Definition at line 5831 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_SERVER_UNAVAILABLE 3 |
Definition at line 5829 of file mongoose614.h.
#define MG_EV_MQTT_CONNACK_UNACCEPTABLE_VERSION 1 |
Definition at line 5827 of file mongoose614.h.
#define MG_EV_MQTT_CONNECT (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_CONNECT) |
Definition at line 5793 of file mongoose614.h.
#define MG_EV_MQTT_DISCONNECT (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_DISCONNECT) |
Definition at line 5806 of file mongoose614.h.
#define MG_EV_MQTT_PINGREQ (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PINGREQ) |
Definition at line 5804 of file mongoose614.h.
#define MG_EV_MQTT_PINGRESP (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PINGRESP) |
Definition at line 5805 of file mongoose614.h.
#define MG_EV_MQTT_PUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBACK) |
Definition at line 5796 of file mongoose614.h.
#define MG_EV_MQTT_PUBCOMP (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBCOMP) |
Definition at line 5799 of file mongoose614.h.
#define MG_EV_MQTT_PUBLISH (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBLISH) |
Definition at line 5795 of file mongoose614.h.
#define MG_EV_MQTT_PUBREC (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBREC) |
Definition at line 5797 of file mongoose614.h.
#define MG_EV_MQTT_PUBREL (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_PUBREL) |
Definition at line 5798 of file mongoose614.h.
#define MG_EV_MQTT_SUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_SUBACK) |
Definition at line 5801 of file mongoose614.h.
#define MG_EV_MQTT_SUBSCRIBE (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_SUBSCRIBE) |
Definition at line 5800 of file mongoose614.h.
#define MG_EV_MQTT_UNSUBACK (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_UNSUBACK) |
Definition at line 5803 of file mongoose614.h.
#define MG_EV_MQTT_UNSUBSCRIBE (MG_MQTT_EVENT_BASE + MG_MQTT_CMD_UNSUBSCRIBE) |
Definition at line 5802 of file mongoose614.h.
#define MG_EV_POLL 0 /* Sent to each connection on each mg_mgr_poll() call */ |
Definition at line 3887 of file mongoose614.h.
Definition at line 3890 of file mongoose614.h.
Definition at line 3891 of file mongoose614.h.
Definition at line 4804 of file mongoose614.h.
#define MG_EV_SSI_CALL_CTX 106 /* struct mg_ssi_call_ctx * */ |
Definition at line 4805 of file mongoose614.h.
Definition at line 3893 of file mongoose614.h.
#define MG_EV_WEBSOCKET_CONTROL_FRAME 114 /* struct websocket_message * */ |
Definition at line 4811 of file mongoose614.h.
#define MG_EV_WEBSOCKET_FRAME 113 /* struct websocket_message * */ |
Definition at line 4810 of file mongoose614.h.
#define MG_EV_WEBSOCKET_HANDSHAKE_DONE 112 /* struct http_message * */ |
Definition at line 4809 of file mongoose614.h.
#define MG_EV_WEBSOCKET_HANDSHAKE_REQUEST 111 /* struct http_message * */ |
Definition at line 4808 of file mongoose614.h.
#define MG_F_CLOSE_IMMEDIATELY (1 << 11) /* Disconnect */ |
Definition at line 3963 of file mongoose614.h.
Definition at line 3953 of file mongoose614.h.
Definition at line 3965 of file mongoose614.h.
Definition at line 3966 of file mongoose614.h.
Definition at line 3958 of file mongoose614.h.
#define MG_F_LISTENING (1 << 0) /* This connection is listening */ |
Definition at line 3950 of file mongoose614.h.
Definition at line 3959 of file mongoose614.h.
Definition at line 3952 of file mongoose614.h.
Definition at line 3962 of file mongoose614.h.
Definition at line 3954 of file mongoose614.h.
Definition at line 3955 of file mongoose614.h.
#define MG_F_UDP (1 << 1) /* This connection is UDP */ |
Definition at line 3951 of file mongoose614.h.
#define MG_F_USER_1 (1 << 20) /* Flags left for application */ |
Definition at line 3968 of file mongoose614.h.
#define MG_F_USER_2 (1 << 21) |
Definition at line 3969 of file mongoose614.h.
#define MG_F_USER_3 (1 << 22) |
Definition at line 3970 of file mongoose614.h.
#define MG_F_USER_4 (1 << 23) |
Definition at line 3971 of file mongoose614.h.
#define MG_F_USER_5 (1 << 24) |
Definition at line 3972 of file mongoose614.h.
#define MG_F_USER_6 (1 << 25) |
Definition at line 3973 of file mongoose614.h.
Definition at line 3956 of file mongoose614.h.
Definition at line 3957 of file mongoose614.h.
Definition at line 3964 of file mongoose614.h.
#define MG_LWIP 0 |
Definition at line 1987 of file mongoose614.h.
#define MG_MAIN_IFACE 0 |
Definition at line 3649 of file mongoose614.h.
#define MG_MAX_DNS_ANSWERS 32 |
Definition at line 6074 of file mongoose614.h.
#define MG_MAX_DNS_QUESTIONS 32 |
Definition at line 6073 of file mongoose614.h.
#define MG_MAX_HTTP_HEADERS 20 |
Definition at line 4723 of file mongoose614.h.
#define MG_MAX_HTTP_REQUEST_SIZE 1024 |
Definition at line 4727 of file mongoose614.h.
#define MG_MAX_HTTP_SEND_MBUF 1024 |
Definition at line 4731 of file mongoose614.h.
#define MG_MAX_PATH 256 |
Definition at line 4508 of file mongoose614.h.
#define MG_MK_STR | ( | str_literal | ) | { str_literal, sizeof(str_literal) - 1 } |
Definition at line 2240 of file mongoose614.h.
#define MG_MK_STR_N | ( | str_literal, | |
len | |||
) | { str_literal, len } |
Definition at line 2242 of file mongoose614.h.
#define MG_MQTT_CLEAN_SESSION 0x02 |
Definition at line 5816 of file mongoose614.h.
#define MG_MQTT_CMD_CONNACK 2 |
Definition at line 5777 of file mongoose614.h.
#define MG_MQTT_CMD_CONNECT 1 |
Definition at line 5776 of file mongoose614.h.
#define MG_MQTT_CMD_DISCONNECT 14 |
Definition at line 5789 of file mongoose614.h.
#define MG_MQTT_CMD_PINGREQ 12 |
Definition at line 5787 of file mongoose614.h.
#define MG_MQTT_CMD_PINGRESP 13 |
Definition at line 5788 of file mongoose614.h.
#define MG_MQTT_CMD_PUBACK 4 |
Definition at line 5779 of file mongoose614.h.
#define MG_MQTT_CMD_PUBCOMP 7 |
Definition at line 5782 of file mongoose614.h.
#define MG_MQTT_CMD_PUBLISH 3 |
Definition at line 5778 of file mongoose614.h.
#define MG_MQTT_CMD_PUBREC 5 |
Definition at line 5780 of file mongoose614.h.
#define MG_MQTT_CMD_PUBREL 6 |
Definition at line 5781 of file mongoose614.h.
#define MG_MQTT_CMD_SUBACK 9 |
Definition at line 5784 of file mongoose614.h.
#define MG_MQTT_CMD_SUBSCRIBE 8 |
Definition at line 5783 of file mongoose614.h.
#define MG_MQTT_CMD_UNSUBACK 11 |
Definition at line 5786 of file mongoose614.h.
#define MG_MQTT_CMD_UNSUBSCRIBE 10 |
Definition at line 5785 of file mongoose614.h.
#define MG_MQTT_DUP 0x4 |
Definition at line 5810 of file mongoose614.h.
#define MG_MQTT_EVENT_BASE 200 |
Definition at line 5792 of file mongoose614.h.
#define MG_MQTT_GET_QOS | ( | flags | ) | (((flags) &0x6) >> 1) |
Definition at line 5812 of file mongoose614.h.
#define MG_MQTT_GET_WILL_QOS | ( | flags | ) | (((flags) &0x18) >> 3) |
Definition at line 5821 of file mongoose614.h.
#define MG_MQTT_HAS_PASSWORD 0x40 |
Definition at line 5819 of file mongoose614.h.
#define MG_MQTT_HAS_USER_NAME 0x80 |
Definition at line 5820 of file mongoose614.h.
#define MG_MQTT_HAS_WILL 0x04 |
Definition at line 5817 of file mongoose614.h.
#define MG_MQTT_QOS | ( | qos | ) | ((qos) << 1) |
Definition at line 5811 of file mongoose614.h.
#define MG_MQTT_RETAIN 0x1 |
Definition at line 5809 of file mongoose614.h.
#define MG_MQTT_SET_QOS | ( | flags, | |
qos | |||
) | (flags) = ((flags) & ~0x6) | ((qos) << 1) |
Definition at line 5813 of file mongoose614.h.
#define MG_MQTT_SET_WILL_QOS | ( | flags, | |
qos | |||
) | (flags) = ((flags) & ~0x18) | ((qos) << 3) |
Definition at line 5822 of file mongoose614.h.
#define MG_MQTT_WILL_RETAIN 0x20 |
Definition at line 5818 of file mongoose614.h.
#define MG_NET_IF MG_NET_IF_SOCKET |
Definition at line 3571 of file mongoose614.h.
#define MG_NET_IF_LWIP_LOW_LEVEL 3 |
Definition at line 106 of file mongoose614.h.
#define MG_NET_IF_NULL 5 |
Definition at line 108 of file mongoose614.h.
#define MG_NET_IF_PIC32 4 |
Definition at line 107 of file mongoose614.h.
#define MG_NET_IF_SIMPLELINK 2 |
Definition at line 105 of file mongoose614.h.
#define MG_NET_IF_SOCKET 1 |
Definition at line 104 of file mongoose614.h.
Definition at line 2244 of file mongoose614.h.
Definition at line 3859 of file mongoose614.h.
Definition at line 3860 of file mongoose614.h.
#define MG_SOCK_STRINGIFY_IP 1 |
Definition at line 4599 of file mongoose614.h.
#define MG_SOCK_STRINGIFY_PORT 2 |
Definition at line 4600 of file mongoose614.h.
#define MG_SOCK_STRINGIFY_REMOTE 4 |
Definition at line 4601 of file mongoose614.h.
#define MG_SSL_IF MG_SSL_IF_OPENSSL |
Definition at line 3575 of file mongoose614.h.
#define MG_SSL_IF_MBEDTLS 2 |
Definition at line 111 of file mongoose614.h.
#define MG_SSL_IF_OPENSSL 1 |
Definition at line 110 of file mongoose614.h.
#define MG_SSL_IF_SIMPLELINK 3 |
Definition at line 112 of file mongoose614.h.
Definition at line 3617 of file mongoose614.h.
#define MG_URL_ENCODE_F_SPACE_AS_PLUS (1 << 0) |
Definition at line 4686 of file mongoose614.h.
#define MG_URL_ENCODE_F_UPPERCASE_HEX (1 << 1) |
Definition at line 4687 of file mongoose614.h.
#define MG_VERSION "6.14" |
Definition at line 26 of file mongoose614.h.
#define MG_VPRINTF_BUFFER_SIZE 100 |
Definition at line 3852 of file mongoose614.h.
#define NOINLINE |
Definition at line 158 of file mongoose614.h.
#define NOINSTR |
Definition at line 160 of file mongoose614.h.
#define NORETURN |
Definition at line 157 of file mongoose614.h.
#define PRINTF_LIKE | ( | f, | |
a | |||
) |
Definition at line 136 of file mongoose614.h.
Definition at line 3134 of file mongoose614.h.
Definition at line 3135 of file mongoose614.h.
Definition at line 3136 of file mongoose614.h.
Definition at line 2831 of file mongoose614.h.
Definition at line 3284 of file mongoose614.h.
Definition at line 3286 of file mongoose614.h.
Definition at line 3287 of file mongoose614.h.
Definition at line 3285 of file mongoose614.h.
Definition at line 2829 of file mongoose614.h.
Definition at line 2830 of file mongoose614.h.
Definition at line 2875 of file mongoose614.h.
Definition at line 2879 of file mongoose614.h.
Definition at line 2884 of file mongoose614.h.
Definition at line 2899 of file mongoose614.h.
Definition at line 2889 of file mongoose614.h.
Definition at line 2859 of file mongoose614.h.
Definition at line 2904 of file mongoose614.h.
Definition at line 2913 of file mongoose614.h.
#define SLIST_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.sle_next) |
Definition at line 2918 of file mongoose614.h.
Definition at line 2934 of file mongoose614.h.
Definition at line 2939 of file mongoose614.h.
Definition at line 2980 of file mongoose614.h.
#define STAILQ_EMPTY | ( | head | ) | ((head)->stqh_first == NULL) |
Definition at line 2988 of file mongoose614.h.
#define STAILQ_FIRST | ( | head | ) | ((head)->stqh_first) |
Definition at line 2990 of file mongoose614.h.
Definition at line 2992 of file mongoose614.h.
Definition at line 2997 of file mongoose614.h.
Definition at line 3002 of file mongoose614.h.
#define STAILQ_HEAD_INITIALIZER | ( | head | ) | { NULL, &(head).stqh_first } |
Definition at line 2964 of file mongoose614.h.
Definition at line 3012 of file mongoose614.h.
Definition at line 3029 of file mongoose614.h.
Definition at line 3035 of file mongoose614.h.
#define STAILQ_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.stqe_next) |
Definition at line 3040 of file mongoose614.h.
Definition at line 3249 of file mongoose614.h.
Definition at line 3232 of file mongoose614.h.
Definition at line 3290 of file mongoose614.h.
Definition at line 3301 of file mongoose614.h.
Definition at line 3242 of file mongoose614.h.
Definition at line 3305 of file mongoose614.h.
Definition at line 3310 of file mongoose614.h.
Definition at line 3325 of file mongoose614.h.
Definition at line 3340 of file mongoose614.h.
Definition at line 3335 of file mongoose614.h.
Definition at line 3315 of file mongoose614.h.
Definition at line 3225 of file mongoose614.h.
Definition at line 3239 of file mongoose614.h.
Definition at line 3345 of file mongoose614.h.
Definition at line 3351 of file mongoose614.h.
Definition at line 3376 of file mongoose614.h.
Definition at line 3399 of file mongoose614.h.
#define TAILQ_NEXT | ( | elm, | |
field | |||
) | ((elm)->field.tqe_next) |
Definition at line 3402 of file mongoose614.h.
#define TAILQ_PREV | ( | elm, | |
headname, | |||
field | |||
) | (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) |
Definition at line 3404 of file mongoose614.h.
Definition at line 3407 of file mongoose614.h.
Definition at line 3425 of file mongoose614.h.
#define TRACEBUF |
Definition at line 2832 of file mongoose614.h.
#define TRACEBUF_INITIALIZER |
Definition at line 2833 of file mongoose614.h.
#define TRASHIT | ( | x | ) |
Definition at line 2834 of file mongoose614.h.
#define WARN_UNUSED_RESULT |
Definition at line 159 of file mongoose614.h.
#define WEAK |
Definition at line 146 of file mongoose614.h.
#define WEBSOCKET_DONT_FIN 0x100 |
Definition at line 5021 of file mongoose614.h.
#define WEBSOCKET_OP_BINARY 2 |
Definition at line 5004 of file mongoose614.h.
#define WEBSOCKET_OP_CLOSE 8 |
Definition at line 5005 of file mongoose614.h.
#define WEBSOCKET_OP_CONTINUE 0 |
Definition at line 5002 of file mongoose614.h.
#define WEBSOCKET_OP_PING 9 |
Definition at line 5006 of file mongoose614.h.
#define WEBSOCKET_OP_PONG 10 |
Definition at line 5007 of file mongoose614.h.
#define WEBSOCKET_OP_TEXT 1 |
Definition at line 5003 of file mongoose614.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 3883 of file mongoose614.h.
typedef void(* mg_resolve_callback_t) (struct mg_dns_message *dns_message, void *user_data, enum mg_resolve_err) |
Definition at line 6334 of file mongoose614.h.
Enumerator | |
---|---|
MG_DNS_INVALID_RECORD | |
MG_DNS_QUESTION | |
MG_DNS_ANSWER |
Definition at line 6078 of file mongoose614.h.
Enumerator | |
---|---|
MG_RESOLVE_OK | |
MG_RESOLVE_NO_ANSWERS | |
MG_RESOLVE_EXCEEDED_RETRY_COUNT | |
MG_RESOLVE_TIMEOUT |
Definition at line 6327 of file mongoose614.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 | ||
) |
Definition at line 2203 of file mongoose614.cxx.
int mg_assemble_uri | ( | const struct mg_str * | scheme, |
const struct mg_str * | user_info, | ||
const struct mg_str * | host, | ||
unsigned int | port, | ||
const struct mg_str * | path, | ||
const struct mg_str * | query, | ||
const struct mg_str * | fragment, | ||
int | normalize_path, | ||
struct mg_str * | uri | ||
) |
Definition at line 5751 of file mongoose614.cxx.
Definition at line 10750 of file mongoose614.cxx.
struct mg_connection * mg_bind | ( | struct mg_mgr * | 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.
Definition at line 1701 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.