24 #ifndef LIBWEBSOCKET_H_3060898B846849FF9F88F5DB59B5950C 25 #define LIBWEBSOCKET_H_3060898B846849FF9F88F5DB59B5950C 31 #include "mbed-drivers/mbed.h" 32 #include "sal-iface-eth/EthernetInterface.h" 33 #include "sockets/TCPListener.h" 34 #include "sal-stack-lwip/lwipv4_init.h" 50 awaiting_on_writeable(0)
55 void set_wsi(
struct lws *_wsi) { wsi = _wsi; }
56 int actual_onRX(Socket *s);
58 void onError(Socket *s, socket_error_t err);
59 void onDisconnect(TCPStream *s);
60 void onSent(Socket *s, uint16_t len);
61 void serialized_writeable(
struct lws *wsi);
69 char awaiting_on_writeable;
75 srv(SOCKET_STACK_LWIP_IPV4)
77 srv.setOnError(TCPStream::ErrorHandler_t(
this,
81 void start(
const uint16_t port);
85 void onError(Socket *s, socket_error_t err);
86 void onIncoming(TCPListener *s,
void *impl);
87 void onDisconnect(TCPStream *s);
100 #if defined(MBED_OPERATORS) || defined(LWS_WITH_ESP8266) 107 #include "lws_config.h" 109 #if defined(WIN32) || defined(_WIN32) 110 #ifndef WIN32_LEAN_AND_MEAN 111 #define WIN32_LEAN_AND_MEAN 114 #include <winsock2.h> 115 #include <ws2tcpip.h> 121 #define _O_RDONLY 0x0000 122 #define O_RDONLY _O_RDONLY 126 #if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(_WIN32_WCE) 127 #define strcasecmp _stricmp 128 #elif !defined(__MINGW32__) 129 #define strcasecmp stricmp 131 #define getdtablesize() 30000 133 #define LWS_INLINE __inline 135 #define LWS_WARN_UNUSED_RESULT 136 #define LWS_WARN_DEPRECATED 140 #define LWS_EXTERN extern __declspec(dllexport) 142 #define LWS_EXTERN extern __declspec(dllimport) 148 #define LWS_INVALID_FILE INVALID_HANDLE_VALUE 149 #define LWS_O_RDONLY _O_RDONLY 151 #if !defined(__MINGW32__) && (!defined(_MSC_VER) || _MSC_VER < 1900) 152 #define lws_snprintf _snprintf 156 #define __func__ __FUNCTION__ 162 #if defined(__NetBSD__) || defined(__FreeBSD__) 163 #include <netinet/in.h> 166 #define LWS_INLINE inline 167 #define LWS_O_RDONLY O_RDONLY 169 #if !defined(MBED_OPERATORS) && !defined(LWS_WITH_ESP8266) && !defined(OPTEE_TA) 172 #define LWS_INVALID_FILE -1 174 #define getdtablesize() (20) 175 #define LWS_INVALID_FILE NULL 178 #if defined(__GNUC__) 181 #if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) 182 #define LWS_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 184 #define LWS_WARN_UNUSED_RESULT 187 #define LWS_VISIBLE __attribute__((visibility("default"))) 188 #define LWS_WARN_DEPRECATED __attribute__ ((deprecated)) 191 #define LWS_WARN_UNUSED_RESULT 192 #define LWS_WARN_DEPRECATED 195 #if defined(__ANDROID__) 197 #define getdtablesize() sysconf(_SC_OPEN_MAX) 207 #ifdef LWS_HAVE_UV_VERSION_H 208 #include <uv-version.h> 213 #define LWS_EXTERN extern 219 #if !defined(OPTEE_TA) 220 #include <sys/time.h> 225 #ifdef LWS_OPENSSL_SUPPORT 228 #ifdef USE_OLD_CYASSL 229 #include <cyassl/openssl/ssl.h> 230 #include <cyassl/error-ssl.h> 232 #include <wolfssl/openssl/ssl.h> 233 #include <wolfssl/error-ssl.h> 236 #if defined(LWS_USE_POLARSSL) 237 #include <polarssl/ssl.h> 244 typedef ssl_context SSL;
246 #if defined(LWS_USE_MBEDTLS) 247 #include <mbedtls/ssl.h> 249 #include <openssl/ssl.h> 250 #include <openssl/err.h> 257 #define CONTEXT_PORT_NO_LISTEN -1 258 #define CONTEXT_PORT_NO_LISTEN_SERVER -2 272 enum lws_log_levels {
282 LLL_LATENCY = 1 << 9,
287 LWS_VISIBLE LWS_EXTERN
void _lws_log(
int filter,
const char *format, ...);
288 LWS_VISIBLE LWS_EXTERN
void _lws_logv(
int filter,
const char *format, va_list vl);
298 LWS_VISIBLE LWS_EXTERN
int 301 #define lwsl_err(...) _lws_log(LLL_ERR, __VA_ARGS__) 303 #if !defined(LWS_WITH_NO_LOGS) 305 #define lwsl_warn(...) _lws_log(LLL_WARN, __VA_ARGS__) 306 #define lwsl_notice(...) _lws_log(LLL_NOTICE, __VA_ARGS__) 314 #if defined(LWS_WITH_ESP8266) 319 #if defined(LWS_WITH_NO_LOGS) 322 #define lwsl_warn(...) _lws_log(LLL_WARN, __VA_ARGS__) 323 #define lwsl_notice(...) _lws_log(LLL_NOTICE, __VA_ARGS__) 325 #define lwsl_info(...) _lws_log(LLL_INFO, __VA_ARGS__) 326 #define lwsl_debug(...) _lws_log(LLL_DEBUG, __VA_ARGS__) 327 #define lwsl_parser(...) _lws_log(LLL_PARSER, __VA_ARGS__) 328 #define lwsl_header(...) _lws_log(LLL_HEADER, __VA_ARGS__) 329 #define lwsl_ext(...) _lws_log(LLL_EXT, __VA_ARGS__) 330 #define lwsl_client(...) _lws_log(LLL_CLIENT, __VA_ARGS__) 331 #define lwsl_latency(...) _lws_log(LLL_LATENCY, __VA_ARGS__) 338 LWS_VISIBLE LWS_EXTERN
void lwsl_hexdump(
void *buf,
size_t len);
341 #if defined(LWS_WITH_NO_LOGS) 343 #define lwsl_warn(...) do {} while(0) 344 #define lwsl_notice(...) do {} while(0) 346 #define lwsl_info(...) do {} while(0) 347 #define lwsl_debug(...) do {} while(0) 348 #define lwsl_parser(...) do {} while(0) 349 #define lwsl_header(...) do {} while(0) 350 #define lwsl_ext(...) do {} while(0) 351 #define lwsl_client(...) do {} while(0) 352 #define lwsl_latency(...) do {} while(0) 353 #define lwsl_hexdump(a, b) 367 LWS_VISIBLE LWS_EXTERN
void 369 void (*log_emit_function)(
int level,
const char *line));
380 LWS_VISIBLE LWS_EXTERN
void 388 #ifndef lws_container_of 389 #define lws_container_of(P,T,M) ((T *)((char *)(P) - offsetof(T, M))) 395 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) 400 #define LWS_FEATURE_SERVE_HTTP_FILE_HAS_OTHER_HEADERS_ARG 403 #define LWS_FEATURE_PROTOCOLS_HAS_ID_FIELD 406 #define LWS_FEATURE_PROTOCOLS_HAS_PEER_WRITE_ALLOWANCE 409 #define LWS_FEATURE_SERVE_HTTP_FILE_HAS_OTHER_HEADERS_LEN 412 #define LWS_FEATURE_FOPS 416 typedef SOCKET lws_sockfd_type;
417 typedef HANDLE lws_filefd_type;
418 #define lws_sockfd_valid(sfd) (!!sfd) 424 #define LWS_POLLHUP (FD_CLOSE) 425 #define LWS_POLLIN (FD_READ | FD_ACCEPT) 426 #define LWS_POLLOUT (FD_WRITE) 429 #if defined(MBED_OPERATORS) 431 typedef void * lws_sockfd_type;
432 typedef void * lws_filefd_type;
433 #define lws_sockfd_valid(sfd) (!!sfd) 439 #define POLLIN 0x0001 440 #define POLLPRI 0x0002 441 #define POLLOUT 0x0004 442 #define POLLERR 0x0008 443 #define POLLHUP 0x0010 444 #define POLLNVAL 0x0020 448 void * mbed3_create_tcp_stream_socket(
void);
449 void mbed3_delete_tcp_stream_socket(
void *sockfd);
450 void mbed3_tcp_stream_bind(
void *sock,
int port,
struct lws *);
451 void mbed3_tcp_stream_accept(
void *sock,
struct lws *);
453 #if defined(LWS_WITH_ESP8266) 455 #include <user_interface.h> 458 typedef struct espconn * lws_sockfd_type;
459 typedef void * lws_filefd_type;
460 #define lws_sockfd_valid(sfd) (!!sfd) 466 #define POLLIN 0x0001 467 #define POLLPRI 0x0002 468 #define POLLOUT 0x0004 469 #define POLLERR 0x0008 470 #define POLLHUP 0x0010 471 #define POLLNVAL 0x0020 475 lws_sockfd_type esp8266_create_tcp_listen_socket(
struct lws_vhost *vh);
476 void esp8266_tcp_stream_accept(lws_sockfd_type fd,
struct lws *wsi);
482 int ets_snprintf(
char *str,
size_t size,
const char *format, ...);
483 #define snprintf ets_snprintf 485 typedef os_timer_t uv_timer_t;
486 typedef void uv_cb_t(uv_timer_t *);
488 void os_timer_disarm(
void *);
489 void os_timer_setfn(os_timer_t *, os_timer_func_t *,
void *);
491 void ets_timer_arm_new(os_timer_t *,
int,
int,
int);
495 #define UV_VERSION_MAJOR 1 497 #define lws_uv_getloop(a, b) (NULL) 499 static inline void uv_timer_init(
void *l, uv_timer_t *t)
502 memset(t, 0,
sizeof(*t));
506 static inline void uv_timer_start(uv_timer_t *t, uv_cb_t *cb,
int first,
int rep)
508 os_timer_setfn(t, (os_timer_func_t *)cb, t);
510 os_timer_arm(t, first, !!rep);
513 static inline void uv_timer_stop(uv_timer_t *t)
519 typedef int lws_sockfd_type;
520 typedef int lws_filefd_type;
521 #define lws_sockfd_valid(sfd) (sfd >= 0) 525 #define lws_pollfd pollfd 526 #define LWS_POLLHUP (POLLHUP|POLLERR) 527 #define LWS_POLLIN (POLLIN) 528 #define LWS_POLLOUT (POLLOUT) 557 LWS_CLOSE_STATUS_NOSTATUS = 0,
621 LWS_CLOSE_STATUS_NOSTATUS_CONTEXT_DESTROY = 9999,
636 LWS_VISIBLE LWS_EXTERN
void 638 unsigned char *buf,
size_t len);
971 LWS_CALLBACK_WS_EXT_DEFAULTS = 39,
974 LWS_CALLBACK_CGI = 40,
976 LWS_CALLBACK_CGI_TERMINATED = 41,
978 LWS_CALLBACK_CGI_STDIN_DATA = 42,
980 LWS_CALLBACK_CGI_STDIN_COMPLETED = 43,
982 LWS_CALLBACK_ESTABLISHED_CLIENT_HTTP = 44,
984 LWS_CALLBACK_CLOSED_CLIENT_HTTP = 45,
986 LWS_CALLBACK_RECEIVE_CLIENT_HTTP = 46,
988 LWS_CALLBACK_COMPLETED_CLIENT_HTTP = 47,
990 LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ = 48,
992 LWS_CALLBACK_HTTP_BIND_PROTOCOL = 49,
994 LWS_CALLBACK_HTTP_DROP_PROTOCOL = 50,
996 LWS_CALLBACK_CHECK_ACCESS_RIGHTS = 51,
998 LWS_CALLBACK_PROCESS_HTML = 52,
1000 LWS_CALLBACK_ADD_HEADERS = 53,
1002 LWS_CALLBACK_SESSION_INFO = 54,
1005 LWS_CALLBACK_GS_EVENT = 55,
1077 void *user,
void *in,
size_t len);
1095 enum lws_extension_callback_reasons {
1096 LWS_EXT_CB_SERVER_CONTEXT_CONSTRUCT = 0,
1097 LWS_EXT_CB_CLIENT_CONTEXT_CONSTRUCT = 1,
1098 LWS_EXT_CB_SERVER_CONTEXT_DESTRUCT = 2,
1099 LWS_EXT_CB_CLIENT_CONTEXT_DESTRUCT = 3,
1100 LWS_EXT_CB_CONSTRUCT = 4,
1101 LWS_EXT_CB_CLIENT_CONSTRUCT = 5,
1102 LWS_EXT_CB_CHECK_OK_TO_REALLY_CLOSE = 6,
1103 LWS_EXT_CB_CHECK_OK_TO_PROPOSE_EXTENSION = 7,
1104 LWS_EXT_CB_DESTROY = 8,
1105 LWS_EXT_CB_DESTROY_ANY_WSI_CLOSING = 9,
1106 LWS_EXT_CB_ANY_WSI_ESTABLISHED = 10,
1107 LWS_EXT_CB_PACKET_RX_PREPARSE = 11,
1108 LWS_EXT_CB_PACKET_TX_PRESEND = 12,
1109 LWS_EXT_CB_PACKET_TX_DO_SEND = 13,
1110 LWS_EXT_CB_HANDSHAKE_REPLY_TX = 14,
1111 LWS_EXT_CB_FLUSH_PENDING_TX = 15,
1112 LWS_EXT_CB_EXTENDED_PAYLOAD_RX = 16,
1113 LWS_EXT_CB_CAN_PROXY_CLIENT_CONNECTION = 17,
1114 LWS_EXT_CB_1HZ = 18,
1115 LWS_EXT_CB_REQUEST_ON_WRITEABLE = 19,
1116 LWS_EXT_CB_IS_WRITEABLE = 20,
1117 LWS_EXT_CB_PAYLOAD_TX = 21,
1118 LWS_EXT_CB_PAYLOAD_RX = 22,
1119 LWS_EXT_CB_OPTION_DEFAULT = 23,
1120 LWS_EXT_CB_OPTION_SET = 24,
1121 LWS_EXT_CB_OPTION_CONFIRM = 25,
1122 LWS_EXT_CB_NAMED_OPTION_SET = 26,
1220 enum lws_extension_callback_reasons reason,
1221 void *user,
void *in,
size_t len);
1241 LWS_VISIBLE LWS_EXTERN
int 1243 const char *opt_name,
const char *opt_val);
1245 #ifndef LWS_NO_EXTENSIONS 1252 static LWS_INLINE LWS_WARN_DEPRECATED
const struct lws_extension *
1253 lws_get_internal_extensions(
void) {
return NULL; }
1265 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
1268 const char *o,
int len);
1285 struct lws_context *context,
const struct lws_extension *ext,
1286 struct lws *wsi,
enum lws_extension_callback_reasons reason,
1287 void *user,
void *in,
size_t len);
1389 LWS_VISIBLE LWS_EXTERN
void *
1402 LWS_VISIBLE LWS_EXTERN
void *
1413 LWS_VISIBLE LWS_EXTERN
int 1416 #ifdef LWS_WITH_PLUGINS 1420 #define LWS_PLUGIN_API_MAGIC 180 1431 typedef int (*lws_plugin_init_func)(
struct lws_context *,
1433 typedef int (*lws_plugin_destroy_func)(
struct lws_context *);
1438 #if (UV_VERSION_MAJOR > 0) 1462 #define LWSGS_EMAIL_CONTENT_SIZE 16384 1583 #define lws_check_opt(c, f) (((c) & (f)) == (f)) 1659 #ifdef LWS_OPENSSL_SUPPORT 1804 LWS_VISIBLE LWS_EXTERN
struct lws_context *
1815 LWS_VISIBLE LWS_EXTERN
void 1818 LWS_VISIBLE LWS_EXTERN
void 1819 lws_context_destroy2(
struct lws_context *context);
1821 typedef int (*lws_reload_func)(void);
1847 LWS_VISIBLE LWS_EXTERN
void 1850 LWS_VISIBLE LWS_EXTERN
int 1851 lws_context_is_deprecated(
struct lws_context *context);
1870 LWS_VISIBLE LWS_EXTERN
int 1885 LWS_EXTERN LWS_VISIBLE
struct lws_vhost *
1903 LWS_VISIBLE LWS_EXTERN
int 1905 char **config_strings,
int *len);
1922 LWS_VISIBLE LWS_EXTERN
int 1925 char **config_strings,
int *len);
1928 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
1936 LWS_VISIBLE LWS_EXTERN
struct lws_vhost *
1946 LWS_VISIBLE LWS_EXTERN
int 1956 LWS_VISIBLE LWS_EXTERN
int 1969 LWS_VISIBLE LWS_EXTERN
void *
2037 unsigned int cache_reusable:1;
2038 unsigned int cache_revalidate:1;
2039 unsigned int cache_intermediaries:1;
2073 LCCSCF_USE_SSL = (1 << 0),
2074 LCCSCF_ALLOW_SELFSIGNED = (1 << 1),
2075 LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK = (1 << 2),
2076 LCCSCF_ALLOW_EXPIRED = (1 << 3)
2149 LWS_VISIBLE LWS_EXTERN
struct lws *
2173 LWS_VISIBLE LWS_EXTERN
struct lws * LWS_WARN_UNUSED_RESULT
2175 int port,
int ssl_connection,
const char *path,
2176 const char *host,
const char *origin,
const char *protocol,
2177 int ietf_version_or_minus_one) LWS_WARN_DEPRECATED;
2199 LWS_VISIBLE LWS_EXTERN
struct lws * LWS_WARN_UNUSED_RESULT
2201 int port,
int ssl_connection,
const char *path,
2202 const char *host,
const char *origin,
2203 const char *protocol,
int ietf_version_or_minus_one,
2204 void *userdata) LWS_WARN_DEPRECATED;
2231 LWS_VISIBLE LWS_EXTERN
int 2233 struct lws_vhost *vhost);
2235 LWS_VISIBLE LWS_EXTERN
int 2236 lws_http_client_read(
struct lws *wsi,
char **buf,
int *len);
2245 LWS_VISIBLE LWS_EXTERN
unsigned int 2248 LWS_VISIBLE LWS_EXTERN
void 2249 lws_client_http_body_pending(
struct lws *wsi,
int something_left_to_send);
2313 LWS_VISIBLE LWS_EXTERN
int 2314 lws_service(
struct lws_context *context,
int timeout_ms);
2327 LWS_VISIBLE LWS_EXTERN
int 2328 lws_service_tsi(
struct lws_context *context,
int timeout_ms,
int tsi);
2345 LWS_VISIBLE LWS_EXTERN
void 2359 LWS_VISIBLE LWS_EXTERN
void 2388 LWS_VISIBLE LWS_EXTERN
int 2400 LWS_VISIBLE LWS_EXTERN
int 2421 LWS_VISIBLE LWS_EXTERN
int 2425 #define lws_plat_service_tsi lws_service_tsi 2453 LWS_VISIBLE LWS_EXTERN
const char *
2474 LWS_VISIBLE LWS_EXTERN
int 2476 const char *other_headers,
int other_headers_len);
2477 LWS_VISIBLE LWS_EXTERN
int 2478 lws_serve_http_file_fragment(
struct lws *wsi);
2493 HTTP_STATUS_OK = 200,
2494 HTTP_STATUS_NO_CONTENT = 204,
2495 HTTP_STATUS_PARTIAL_CONTENT = 206,
2497 HTTP_STATUS_MOVED_PERMANENTLY = 301,
2498 HTTP_STATUS_FOUND = 302,
2499 HTTP_STATUS_SEE_OTHER = 303,
2501 HTTP_STATUS_BAD_REQUEST = 400,
2502 HTTP_STATUS_UNAUTHORIZED,
2503 HTTP_STATUS_PAYMENT_REQUIRED,
2504 HTTP_STATUS_FORBIDDEN,
2505 HTTP_STATUS_NOT_FOUND,
2506 HTTP_STATUS_METHOD_NOT_ALLOWED,
2507 HTTP_STATUS_NOT_ACCEPTABLE,
2508 HTTP_STATUS_PROXY_AUTH_REQUIRED,
2509 HTTP_STATUS_REQUEST_TIMEOUT,
2510 HTTP_STATUS_CONFLICT,
2512 HTTP_STATUS_LENGTH_REQUIRED,
2513 HTTP_STATUS_PRECONDITION_FAILED,
2514 HTTP_STATUS_REQ_ENTITY_TOO_LARGE,
2515 HTTP_STATUS_REQ_URI_TOO_LONG,
2516 HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE,
2517 HTTP_STATUS_REQ_RANGE_NOT_SATISFIABLE,
2518 HTTP_STATUS_EXPECTATION_FAILED,
2520 HTTP_STATUS_INTERNAL_SERVER_ERROR = 500,
2521 HTTP_STATUS_NOT_IMPLEMENTED,
2522 HTTP_STATUS_BAD_GATEWAY,
2523 HTTP_STATUS_SERVICE_UNAVAILABLE,
2524 HTTP_STATUS_GATEWAY_TIMEOUT,
2525 HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED,
2535 typedef const char *(*lws_process_html_state_cb)(
void *data,
int index);
2545 lws_process_html_state_cb replace;
2552 LWS_VISIBLE LWS_EXTERN
int 2608 enum lws_token_indexes {
2609 WSI_TOKEN_GET_URI = 0,
2610 WSI_TOKEN_POST_URI = 1,
2611 WSI_TOKEN_OPTIONS_URI = 2,
2613 WSI_TOKEN_CONNECTION = 4,
2614 WSI_TOKEN_UPGRADE = 5,
2615 WSI_TOKEN_ORIGIN = 6,
2616 WSI_TOKEN_DRAFT = 7,
2617 WSI_TOKEN_CHALLENGE = 8,
2618 WSI_TOKEN_EXTENSIONS = 9,
2619 WSI_TOKEN_KEY1 = 10,
2620 WSI_TOKEN_KEY2 = 11,
2621 WSI_TOKEN_PROTOCOL = 12,
2622 WSI_TOKEN_ACCEPT = 13,
2623 WSI_TOKEN_NONCE = 14,
2624 WSI_TOKEN_HTTP = 15,
2625 WSI_TOKEN_HTTP2_SETTINGS = 16,
2626 WSI_TOKEN_HTTP_ACCEPT = 17,
2627 WSI_TOKEN_HTTP_AC_REQUEST_HEADERS = 18,
2628 WSI_TOKEN_HTTP_IF_MODIFIED_SINCE = 19,
2629 WSI_TOKEN_HTTP_IF_NONE_MATCH = 20,
2630 WSI_TOKEN_HTTP_ACCEPT_ENCODING = 21,
2631 WSI_TOKEN_HTTP_ACCEPT_LANGUAGE = 22,
2632 WSI_TOKEN_HTTP_PRAGMA = 23,
2633 WSI_TOKEN_HTTP_CACHE_CONTROL = 24,
2634 WSI_TOKEN_HTTP_AUTHORIZATION = 25,
2635 WSI_TOKEN_HTTP_COOKIE = 26,
2636 WSI_TOKEN_HTTP_CONTENT_LENGTH = 27,
2637 WSI_TOKEN_HTTP_CONTENT_TYPE = 28,
2638 WSI_TOKEN_HTTP_DATE = 29,
2639 WSI_TOKEN_HTTP_RANGE = 30,
2640 WSI_TOKEN_HTTP_REFERER = 31,
2642 WSI_TOKEN_VERSION = 33,
2643 WSI_TOKEN_SWORIGIN = 34,
2645 WSI_TOKEN_HTTP_COLON_AUTHORITY = 35,
2646 WSI_TOKEN_HTTP_COLON_METHOD = 36,
2647 WSI_TOKEN_HTTP_COLON_PATH = 37,
2648 WSI_TOKEN_HTTP_COLON_SCHEME = 38,
2649 WSI_TOKEN_HTTP_COLON_STATUS = 39,
2651 WSI_TOKEN_HTTP_ACCEPT_CHARSET = 40,
2652 WSI_TOKEN_HTTP_ACCEPT_RANGES = 41,
2653 WSI_TOKEN_HTTP_ACCESS_CONTROL_ALLOW_ORIGIN = 42,
2654 WSI_TOKEN_HTTP_AGE = 43,
2655 WSI_TOKEN_HTTP_ALLOW = 44,
2656 WSI_TOKEN_HTTP_CONTENT_DISPOSITION = 45,
2657 WSI_TOKEN_HTTP_CONTENT_ENCODING = 46,
2658 WSI_TOKEN_HTTP_CONTENT_LANGUAGE = 47,
2659 WSI_TOKEN_HTTP_CONTENT_LOCATION = 48,
2660 WSI_TOKEN_HTTP_CONTENT_RANGE = 49,
2661 WSI_TOKEN_HTTP_ETAG = 50,
2662 WSI_TOKEN_HTTP_EXPECT = 51,
2663 WSI_TOKEN_HTTP_EXPIRES = 52,
2664 WSI_TOKEN_HTTP_FROM = 53,
2665 WSI_TOKEN_HTTP_IF_MATCH = 54,
2666 WSI_TOKEN_HTTP_IF_RANGE = 55,
2667 WSI_TOKEN_HTTP_IF_UNMODIFIED_SINCE = 56,
2668 WSI_TOKEN_HTTP_LAST_MODIFIED = 57,
2669 WSI_TOKEN_HTTP_LINK = 58,
2670 WSI_TOKEN_HTTP_LOCATION = 59,
2671 WSI_TOKEN_HTTP_MAX_FORWARDS = 60,
2672 WSI_TOKEN_HTTP_PROXY_AUTHENTICATE = 61,
2673 WSI_TOKEN_HTTP_PROXY_AUTHORIZATION = 62,
2674 WSI_TOKEN_HTTP_REFRESH = 63,
2675 WSI_TOKEN_HTTP_RETRY_AFTER = 64,
2676 WSI_TOKEN_HTTP_SERVER = 65,
2677 WSI_TOKEN_HTTP_SET_COOKIE = 66,
2678 WSI_TOKEN_HTTP_STRICT_TRANSPORT_SECURITY = 67,
2679 WSI_TOKEN_HTTP_TRANSFER_ENCODING = 68,
2680 WSI_TOKEN_HTTP_USER_AGENT = 69,
2681 WSI_TOKEN_HTTP_VARY = 70,
2682 WSI_TOKEN_HTTP_VIA = 71,
2683 WSI_TOKEN_HTTP_WWW_AUTHENTICATE = 72,
2685 WSI_TOKEN_PATCH_URI = 73,
2686 WSI_TOKEN_PUT_URI = 74,
2687 WSI_TOKEN_DELETE_URI = 75,
2689 WSI_TOKEN_HTTP_URI_ARGS = 76,
2690 WSI_TOKEN_PROXY = 77,
2691 WSI_TOKEN_HTTP_X_REAL_IP = 78,
2692 WSI_TOKEN_HTTP1_0 = 79,
2693 WSI_TOKEN_X_FORWARDED_FOR = 80,
2700 _WSI_TOKEN_CLIENT_SENT_PROTOCOLS,
2701 _WSI_TOKEN_CLIENT_PEER_ADDRESS,
2702 _WSI_TOKEN_CLIENT_URI,
2703 _WSI_TOKEN_CLIENT_HOST,
2704 _WSI_TOKEN_CLIENT_ORIGIN,
2705 _WSI_TOKEN_CLIENT_METHOD,
2711 WSI_TOKEN_NAME_PART,
2713 WSI_TOKEN_SKIPPING_SAW_CR,
2714 WSI_PARSING_COMPLETE,
2715 WSI_INIT_TOKEN_MUXURL,
2719 unsigned short token_limit[WSI_TOKEN_COUNT];
2727 LWS_VISIBLE LWS_EXTERN
const unsigned char *
2739 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2751 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2767 LWS_VISIBLE LWS_EXTERN
int 2768 lws_hdr_copy(
struct lws *wsi,
char *dest,
int len,
enum lws_token_indexes h);
2787 LWS_VISIBLE LWS_EXTERN
int 2789 enum lws_token_indexes h,
int frag_idx);
2801 LWS_VISIBLE LWS_EXTERN
const char *
2830 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2832 unsigned int code,
unsigned char **p,
2833 unsigned char *end);
2846 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2848 const unsigned char *value,
int length,
2849 unsigned char **p,
unsigned char *end);
2863 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2865 const unsigned char *value,
int length,
2866 unsigned char **p,
unsigned char *end);
2877 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2879 unsigned long content_length,
2880 unsigned char **p,
unsigned char *end);
2890 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
2892 unsigned char *end);
2939 const char *filename,
char *buf,
int len,
2964 LWS_VISIBLE LWS_EXTERN
struct lws_spa *
2976 LWS_VISIBLE LWS_EXTERN
int 2984 LWS_VISIBLE LWS_EXTERN
int 2993 LWS_VISIBLE LWS_EXTERN
int 3001 LWS_VISIBLE LWS_EXTERN
const char *
3009 LWS_VISIBLE LWS_EXTERN
int 3034 LWS_VISIBLE LWS_EXTERN
const char *
3055 LWS_VISIBLE LWS_EXTERN
int 3067 LWS_VISIBLE LWS_EXTERN
int 3069 const char *html_body);
3081 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3083 unsigned char **p,
unsigned char *end);
3093 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3115 LWS_VISIBLE LWS_EXTERN
const char *
3128 LWS_VISIBLE LWS_EXTERN
const char *
3140 #ifdef LWS_USE_LIBEV 3141 typedef void (lws_ev_signal_cb_t)(EV_P_
struct ev_signal *w,
int revents);
3143 LWS_VISIBLE LWS_EXTERN
int 3144 lws_ev_sigint_cfg(
struct lws_context *context,
int use_ev_sigint,
3145 lws_ev_signal_cb_t *cb);
3147 LWS_VISIBLE LWS_EXTERN
int 3148 lws_ev_initloop(
struct lws_context *context,
struct ev_loop *loop,
int tsi);
3150 LWS_VISIBLE LWS_EXTERN
void 3151 lws_ev_sigint_cb(
struct ev_loop *loop,
struct ev_signal *watcher,
int revents);
3162 #ifdef LWS_USE_LIBUV 3164 LWS_VISIBLE LWS_EXTERN
int 3165 lws_uv_sigint_cfg(
struct lws_context *context,
int use_uv_sigint,
3168 LWS_VISIBLE LWS_EXTERN
void 3169 lws_libuv_run(
const struct lws_context *context,
int tsi);
3171 LWS_VISIBLE LWS_EXTERN
void 3172 lws_libuv_stop(
struct lws_context *context);
3174 LWS_VISIBLE LWS_EXTERN
void 3175 lws_libuv_stop_without_kill(
const struct lws_context *context,
int tsi);
3177 LWS_VISIBLE LWS_EXTERN
int 3178 lws_uv_initloop(
struct lws_context *context, uv_loop_t *loop,
int tsi);
3180 LWS_VISIBLE LWS_EXTERN uv_loop_t *
3181 lws_uv_getloop(
struct lws_context *context,
int tsi);
3183 LWS_VISIBLE LWS_EXTERN
void 3184 lws_uv_sigint_cb(uv_signal_t *watcher,
int signum);
3198 enum pending_timeout {
3199 NO_PENDING_TIMEOUT = 0,
3200 PENDING_TIMEOUT_AWAITING_PROXY_RESPONSE = 1,
3201 PENDING_TIMEOUT_AWAITING_CONNECT_RESPONSE = 2,
3202 PENDING_TIMEOUT_ESTABLISH_WITH_SERVER = 3,
3203 PENDING_TIMEOUT_AWAITING_SERVER_RESPONSE = 4,
3204 PENDING_TIMEOUT_AWAITING_PING = 5,
3205 PENDING_TIMEOUT_CLOSE_ACK = 6,
3206 PENDING_TIMEOUT_AWAITING_EXTENSION_CONNECT_RESPONSE = 7,
3207 PENDING_TIMEOUT_SENT_CLIENT_HANDSHAKE = 8,
3208 PENDING_TIMEOUT_SSL_ACCEPT = 9,
3209 PENDING_TIMEOUT_HTTP_CONTENT = 10,
3210 PENDING_TIMEOUT_AWAITING_CLIENT_HS_SEND = 11,
3211 PENDING_FLUSH_STORED_SEND_BEFORE_CLOSE = 12,
3212 PENDING_TIMEOUT_SHUTDOWN_FLUSH = 13,
3213 PENDING_TIMEOUT_CGI = 14,
3214 PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE = 15,
3215 PENDING_TIMEOUT_WS_PONG_CHECK_SEND_PING = 16,
3216 PENDING_TIMEOUT_WS_PONG_CHECK_GET_PONG = 17,
3217 PENDING_TIMEOUT_CLIENT_ISSUE_PAYLOAD = 18,
3231 LWS_VISIBLE LWS_EXTERN
void 3232 lws_set_timeout(
struct lws *wsi,
enum pending_timeout reason,
int secs);
3240 #if !defined(LWS_SIZEOFPTR) 3241 #define LWS_SIZEOFPTR (sizeof (void *)) 3243 #if !defined(u_int64_t) 3244 #define u_int64_t unsigned long long 3247 #if defined(__x86_64__) 3248 #define _LWS_PAD_SIZE 16 3250 #define _LWS_PAD_SIZE LWS_SIZEOFPTR 3252 #define _LWS_PAD(n) (((n) % _LWS_PAD_SIZE) ? \ 3253 ((n) + (_LWS_PAD_SIZE - ((n) % _LWS_PAD_SIZE))) : (n)) 3254 #define LWS_PRE _LWS_PAD(4 + 10) 3256 #define LWS_SEND_BUFFER_PRE_PADDING LWS_PRE 3257 #define LWS_SEND_BUFFER_POST_PADDING 0 3282 LWS_WRITE_HTTP_FINAL = 7,
3393 LWS_VISIBLE LWS_EXTERN
int 3394 lws_write(
struct lws *wsi,
unsigned char *buf,
size_t len,
3398 #define lws_write_http(wsi, buf, len) \ 3399 lws_write(wsi, (unsigned char *)(buf), len, LWS_WRITE_HTTP) 3433 LWS_VISIBLE LWS_EXTERN
int 3449 LWS_VISIBLE LWS_EXTERN
int 3466 LWS_VISIBLE LWS_EXTERN
int 3482 LWS_VISIBLE LWS_EXTERN
int 3498 LWS_VISIBLE LWS_EXTERN
int 3515 LWS_VISIBLE LWS_EXTERN
int 3518 LWS_VISIBLE LWS_EXTERN
int 3520 void *user,
void *in,
size_t len);
3529 LWS_VISIBLE LWS_EXTERN
int 3553 LWS_VISIBLE LWS_EXTERN
size_t 3567 LWS_VISIBLE LWS_EXTERN
int 3579 LWS_VISIBLE LWS_EXTERN
void 3599 LWS_VISIBLE LWS_EXTERN
size_t 3625 LWS_VISIBLE LWS_EXTERN
struct lws *
3639 LWS_VISIBLE LWS_EXTERN
struct lws *
3664 LWS_VISIBLE LWS_EXTERN
struct lws *
3666 const char *readbuf,
size_t len);
3690 LWS_VISIBLE LWS_EXTERN
struct lws *
3692 const char *readbuf,
size_t len);
3711 LWS_VISIBLE LWS_EXTERN
const char * LWS_WARN_UNUSED_RESULT
3728 LWS_VISIBLE LWS_EXTERN
void 3730 int name_len,
char *rip,
int rip_len);
3742 LWS_VISIBLE LWS_EXTERN
const char *
3744 #ifndef LWS_WITH_ESP8266 3756 LWS_VISIBLE LWS_EXTERN
int 3780 LWS_VISIBLE LWS_EXTERN
int 3781 lws_snprintf(
char *str,
size_t size,
const char *format, ...);
3794 LWS_VISIBLE LWS_EXTERN
int 3803 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3810 LWS_VISIBLE LWS_EXTERN
const char * LWS_WARN_UNUSED_RESULT
3819 LWS_VISIBLE LWS_EXTERN
void *
3833 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3834 lws_parse_uri(
char *p,
const char **prot,
const char **ads,
int *port,
3840 LWS_VISIBLE LWS_EXTERN
unsigned long 3852 LWS_VISIBLE LWS_EXTERN
struct lws_context * LWS_WARN_UNUSED_RESULT
3864 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3874 LWS_VISIBLE LWS_EXTERN
struct lws * LWS_WARN_UNUSED_RESULT
3883 LWS_VISIBLE LWS_EXTERN
struct lws * LWS_WARN_UNUSED_RESULT
3892 LWS_VISIBLE LWS_EXTERN
int 3893 lws_read(
struct lws *wsi,
unsigned char *buf,
size_t len);
3902 LWS_VISIBLE LWS_EXTERN
void 3918 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3925 LWS_VISIBLE LWS_EXTERN
int 3932 LWS_VISIBLE LWS_EXTERN
unsigned char 3951 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3963 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
3974 LWS_VISIBLE LWS_EXTERN
int 3980 LWS_VISIBLE LWS_EXTERN
int 3990 #ifdef LWS_SHA1_USE_OPENSSL_NAME 3992 #define lws_SHA1 SHA1 4003 LWS_VISIBLE LWS_EXTERN
unsigned char *
4004 lws_SHA1(
const unsigned char *d,
size_t n,
unsigned char *md);
4016 LWS_VISIBLE LWS_EXTERN
int 4027 LWS_VISIBLE LWS_EXTERN
int 4042 enum lws_enum_stdinouterr {
4048 enum lws_cgi_hdr_state {
4060 enum lws_enum_stdinouterr ch;
4062 enum lws_cgi_hdr_state hdr_state;
4076 LWS_VISIBLE LWS_EXTERN
int 4077 lws_cgi(
struct lws *wsi,
const char *
const *exec_array,
4078 int script_uri_path_len,
int timeout_secs,
4086 LWS_VISIBLE LWS_EXTERN
int 4094 LWS_VISIBLE LWS_EXTERN
int 4123 lws_filefd_type (*open)(
struct lws *wsi,
const char *filename,
4124 unsigned long *filelen,
int flags);
4128 int (*close)(
struct lws *wsi, lws_filefd_type fd);
4130 unsigned long (*seek_cur)(
struct lws *wsi, lws_filefd_type fd,
4131 long offset_from_cur_pos);
4133 int (*read)(
struct lws *wsi, lws_filefd_type fd,
unsigned long *amount,
4134 unsigned char *buf,
unsigned long len);
4136 int (*write)(
struct lws *wsi, lws_filefd_type fd,
unsigned long *amount,
4137 unsigned char *buf,
unsigned long len);
4160 static LWS_INLINE lws_filefd_type LWS_WARN_UNUSED_RESULT
4161 lws_plat_file_open(
struct lws *wsi,
const char *filename,
4162 unsigned long *filelen,
int flags)
4174 static LWS_INLINE
int 4175 lws_plat_file_close(
struct lws *wsi, lws_filefd_type fd)
4187 static LWS_INLINE
unsigned long 4188 lws_plat_file_seek_cur(
struct lws *wsi, lws_filefd_type fd,
long offset)
4201 static LWS_INLINE
int LWS_WARN_UNUSED_RESULT
4202 lws_plat_file_read(
struct lws *wsi, lws_filefd_type fd,
unsigned long *amount,
4203 unsigned char *buf,
unsigned long len)
4217 static LWS_INLINE
int LWS_WARN_UNUSED_RESULT
4218 lws_plat_file_write(
struct lws *wsi, lws_filefd_type fd,
unsigned long *amount,
4219 unsigned char *buf,
unsigned long len)
4257 #ifdef LWS_WITH_SMTP 4279 char email_smtp_ip[32];
4280 char email_helo[32];
4281 char email_from[100];
4324 LWS_VISIBLE LWS_EXTERN
int 4335 LWS_VISIBLE LWS_EXTERN
void 4344 LWS_VISIBLE LWS_EXTERN
void
LWS_VISIBLE LWS_EXTERN const char * lws_json_purify(char *escaped, const char *string, int len)
-
Definition: libwebsockets.h:4056
-
size_t rx_buffer_size
Definition: libwebsockets.h:1325
+
Definition: libwebsockets.h:4058
+
size_t rx_buffer_size
Definition: libwebsockets.h:1327
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_vhost_get(struct lws *wsi) LWS_WARN_DEPRECATED
-
Definition: libwebsockets.h:771
-
Definition: libwebsockets.h:899
+
Definition: libwebsockets.h:773
+
Definition: libwebsockets.h:901
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_daemonize(const char *_lock_path)
-
Definition: libwebsockets.h:1997
-
Definition: libwebsockets.h:3272
-
Definition: libwebsockets.h:4261
+
Definition: libwebsockets.h:1999
+
Definition: libwebsockets.h:3274
+
Definition: libwebsockets.h:4263
LWS_VISIBLE LWS_EXTERN struct lws * lws_adopt_socket_readbuf(struct lws_context *context, lws_sockfd_type accept_fd, const char *readbuf, size_t len)
-
-
unsigned int auth_mask
Definition: libwebsockets.h:2032
-
Definition: libwebsockets.h:3295
-
void * data
Definition: libwebsockets.h:4272
-
const char * uri_replace_from
Definition: libwebsockets.h:2110
-
int(* write)(struct lws *wsi, lws_filefd_type fd, unsigned long *amount, unsigned char *buf, unsigned long len)
Definition: libwebsockets.h:4134
-
lws_callback_reasons
Definition: libwebsockets.h:664
+
+
unsigned int auth_mask
Definition: libwebsockets.h:2034
+
Definition: libwebsockets.h:3297
+
void * data
Definition: libwebsockets.h:4274
+
const char * uri_replace_from
Definition: libwebsockets.h:2112
+
int(* write)(struct lws *wsi, lws_filefd_type fd, unsigned long *amount, unsigned char *buf, unsigned long len)
Definition: libwebsockets.h:4136
+
lws_callback_reasons
Definition: libwebsockets.h:666
-
Definition: libwebsockets.h:814
-
lwsgs_auth_bits
Definition: libwebsockets.h:1470
+
Definition: libwebsockets.h:816
+
lwsgs_auth_bits
Definition: libwebsockets.h:1472
LWS_VISIBLE LWS_EXTERN void lws_close_reason(struct lws *wsi, enum lws_close_status status, unsigned char *buf, size_t len)
LWS_VISIBLE LWS_EXTERN void lws_email_destroy(struct lws_email *email)
LWS_VISIBLE LWS_EXTERN int lws_urldecode(char *string, const char *escaped, int len)
-
Definition: libwebsockets.h:897
-
Definition: libwebsockets.h:1129
-
unsigned int id
Definition: libwebsockets.h:1334
+
Definition: libwebsockets.h:899
+
Definition: libwebsockets.h:1131
+
unsigned int id
Definition: libwebsockets.h:1336
-
Definition: libwebsockets.h:1127
-
Definition: libwebsockets.h:802
+
Definition: libwebsockets.h:1129
+
Definition: libwebsockets.h:804
LWS_VISIBLE LWS_EXTERN int lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int tsi)
LWS_VISIBLE LWS_EXTERN int lws_service_adjust_timeout(struct lws_context *context, int timeout_ms, int tsi)
LWS_VISIBLE LWS_EXTERN struct lws *LWS_WARN_UNUSED_RESULT lws_get_parent(const struct lws *wsi)
LWS_VISIBLE LWS_EXTERN size_t lws_get_peer_write_allowance(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN struct lws * lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd)
-
Definition: libwebsockets.h:748
+
Definition: libwebsockets.h:750
LWS_VISIBLE LWS_EXTERN const char *LWS_WARN_UNUSED_RESULT lws_get_library_version(void)
-
int(* on_sent)(struct lws_email *email)
Definition: libwebsockets.h:4292
-
Definition: libwebsockets.h:1465
-
struct lws ** pwsi
Definition: libwebsockets.h:2117
-
Definition: libwebsockets.h:782
-
const char * path
Definition: libwebsockets.h:2089
+
int(* on_sent)(struct lws_email *email)
Definition: libwebsockets.h:4294
+
Definition: libwebsockets.h:1467
+
struct lws ** pwsi
Definition: libwebsockets.h:2119
+
Definition: libwebsockets.h:784
+
const char * path
Definition: libwebsockets.h:2091
LWS_VISIBLE LWS_EXTERN size_t lws_remaining_packet_payload(struct lws *wsi)
-
Definition: libwebsockets.h:583
-
Definition: libwebsockets.h:1421
+
Definition: libwebsockets.h:585
+
Definition: libwebsockets.h:1423
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_ext_parse_options(const struct lws_extension *ext, struct lws *wsi, void *ext_user, const struct lws_ext_options *opts, const char *o, int len)
-
time_t email_connect_started
Definition: libwebsockets.h:4308
-
lws_close_status
Definition: libwebsockets.h:554
+
time_t email_connect_started
Definition: libwebsockets.h:4310
+
lws_close_status
Definition: libwebsockets.h:556
LWS_VISIBLE LWS_EXTERN int lws_callback_all_protocol(struct lws_context *context, const struct lws_protocols *protocol, int reason)
-
Definition: libwebsockets.h:594
-
Definition: libwebsockets.h:1525
-
int token_len
Definition: libwebsockets.h:2597
-
const struct lws_http_mount * mounts
Definition: libwebsockets.h:1706
-
Definition: libwebsockets.h:923
+
Definition: libwebsockets.h:596
+
Definition: libwebsockets.h:1527
+
int token_len
Definition: libwebsockets.h:2599
+
const struct lws_http_mount * mounts
Definition: libwebsockets.h:1708
+
Definition: libwebsockets.h:925
LWS_VISIBLE LWS_EXTERN struct lws_context *LWS_WARN_UNUSED_RESULT lws_get_context(const struct lws *wsi)
-
const char * value
Definition: libwebsockets.h:1986
-
-
Definition: libwebsockets.h:4266
-
const char * username
Definition: libwebsockets.h:1496
+
const char * value
Definition: libwebsockets.h:1988
+
+
Definition: libwebsockets.h:4268
+
const char * username
Definition: libwebsockets.h:1498
LWS_VISIBLE LWS_EXTERN struct lws * lws_client_connect_via_info(struct lws_client_connect_info *ccinfo)
-
const char * protocol
Definition: libwebsockets.h:2016
-
struct lws ** stdwsi
Definition: libwebsockets.h:4057
+
const char * protocol
Definition: libwebsockets.h:2018
+
struct lws ** stdwsi
Definition: libwebsockets.h:4059
LWS_VISIBLE LWS_EXTERN int lws_json_dump_vhost(const struct lws_vhost *vh, char *buf, int len)
-
Definition: libwebsockets.h:869
+
Definition: libwebsockets.h:871
LWS_VISIBLE LWS_EXTERN const char * lws_get_mimetype(const char *file, const struct lws_http_mount *m)
-
Definition: libwebsockets.h:1467
-
int cache_max_age
Definition: libwebsockets.h:2030
-
long ssl_options_clear
Definition: libwebsockets.h:1724
-
Definition: libwebsockets.h:762
-
Definition: libwebsockets.h:1592
+
Definition: libwebsockets.h:1469
+
int cache_max_age
Definition: libwebsockets.h:2032
+
long ssl_options_clear
Definition: libwebsockets.h:1726
+
Definition: libwebsockets.h:764
+
Definition: libwebsockets.h:1594
LWS_VISIBLE LWS_EXTERN void lws_context_destroy(struct lws_context *context)
-
Definition: libwebsockets.h:610
-
char * start
Definition: libwebsockets.h:2536
+
Definition: libwebsockets.h:612
+
char * start
Definition: libwebsockets.h:2538
LWS_VISIBLE LWS_EXTERN void lws_set_allocator(void *(*realloc)(void *ptr, size_t size))
-
lws_callback_function * callback
Definition: libwebsockets.h:1316
-
Definition: libwebsockets.h:3262
+
lws_callback_function * callback
Definition: libwebsockets.h:1318
+
Definition: libwebsockets.h:3264
LWS_VISIBLE LWS_EXTERN void lws_context_deprecate(struct lws_context *context, lws_reload_func cb)
LWS_VISIBLE LWS_EXTERN int lws_get_socket_fd(struct lws *wsi)
-
Definition: libwebsockets.h:960
-
Definition: libwebsockets.h:952
-
const char * protocol
Definition: libwebsockets.h:2095
-
Definition: libwebsockets.h:949
-
unsigned int pt_serv_buf_size
Definition: libwebsockets.h:1711
+
Definition: libwebsockets.h:962
+
Definition: libwebsockets.h:954
+
const char * protocol
Definition: libwebsockets.h:2097
+
Definition: libwebsockets.h:951
+
unsigned int pt_serv_buf_size
Definition: libwebsockets.h:1713
LWS_VISIBLE LWS_EXTERN struct lws * lws_adopt_socket(struct lws_context *context, lws_sockfd_type accept_fd)
-
int len
Definition: libwebsockets.h:2528
-
int ka_time
Definition: libwebsockets.h:1647
-
Definition: libwebsockets.h:1541
+
int len
Definition: libwebsockets.h:2530
+
int ka_time
Definition: libwebsockets.h:1649
+
Definition: libwebsockets.h:1543
LWS_VISIBLE LWS_EXTERN int lws_callback_on_writable_all_protocol(const struct lws_context *context, const struct lws_protocols *protocol)
LWS_VISIBLE LWS_EXTERN void lws_set_log_level(int level, void(*log_emit_function)(int level, const char *line))
-
unsigned short ws_ping_pong_interval
Definition: libwebsockets.h:1726
-
int count_extensions
Definition: libwebsockets.h:1426
-
Definition: libwebsockets.h:3266
-
int port
Definition: libwebsockets.h:2085
-
struct lws_context * context
Definition: libwebsockets.h:2081
-
Definition: libwebsockets.h:1473
-
int ietf_version_or_minus_one
Definition: libwebsockets.h:2097
+
unsigned short ws_ping_pong_interval
Definition: libwebsockets.h:1728
+
int count_extensions
Definition: libwebsockets.h:1428
+
Definition: libwebsockets.h:3268
+
int port
Definition: libwebsockets.h:2087
+
struct lws_context * context
Definition: libwebsockets.h:2083
+
Definition: libwebsockets.h:1475
+
int ietf_version_or_minus_one
Definition: libwebsockets.h:2099
LWS_VISIBLE LWS_EXTERN int lws_callback_all_protocol_vhost(struct lws_vhost *vh, const struct lws_protocols *protocol, int reason)
-
Definition: libwebsockets.h:4259
-
Definition: libwebsockets.h:1982
+
Definition: libwebsockets.h:4261
+
Definition: libwebsockets.h:1984
LWS_VISIBLE LWS_EXTERN int lws_callback_on_writable(struct lws *wsi)
-
const char *const * vars
Definition: libwebsockets.h:2540
-
Definition: libwebsockets.h:562
-
Definition: libwebsockets.h:2080
-
Definition: libwebsockets.h:1571
-
int lws_extension_callback_function(struct lws_context *context, const struct lws_extension *ext, struct lws *wsi, enum lws_extension_callback_reasons reason, void *user, void *in, size_t len)
Definition: libwebsockets.h:1216
-
Definition: libwebsockets.h:880
-
int len
Definition: libwebsockets.h:1152
-
Definition: libwebsockets.h:2007
-
const char * def
Definition: libwebsockets.h:2014
-
Definition: libwebsockets.h:723
-
Definition: libwebsockets.h:1553
-
lws_context_options
Definition: libwebsockets.h:1524
-
Definition: libwebsockets.h:901
-
Definition: libwebsockets.h:1490
-
Definition: libwebsockets.h:1559
-
Definition: libwebsockets.h:889
-
const char * option_name
Definition: libwebsockets.h:1149
-
Definition: libwebsockets.h:1995
-
lws_sockfd_type fd
Definition: libwebsockets.h:532
+
const char *const * vars
Definition: libwebsockets.h:2542
+
Definition: libwebsockets.h:564
+
Definition: libwebsockets.h:2082
+
Definition: libwebsockets.h:1573
+
int lws_extension_callback_function(struct lws_context *context, const struct lws_extension *ext, struct lws *wsi, enum lws_extension_callback_reasons reason, void *user, void *in, size_t len)
Definition: libwebsockets.h:1218
+
Definition: libwebsockets.h:882
+
int len
Definition: libwebsockets.h:1154
+
Definition: libwebsockets.h:2009
+
const char * def
Definition: libwebsockets.h:2016
+
Definition: libwebsockets.h:725
+
Definition: libwebsockets.h:1555
+
lws_context_options
Definition: libwebsockets.h:1526
+
Definition: libwebsockets.h:903
+
Definition: libwebsockets.h:1492
+
Definition: libwebsockets.h:1561
+
Definition: libwebsockets.h:891
+
const char * option_name
Definition: libwebsockets.h:1151
+
Definition: libwebsockets.h:1997
+
lws_sockfd_type fd
Definition: libwebsockets.h:534
LWS_VISIBLE LWS_EXTERN int lws_json_dump_context(const struct lws_context *context, char *buf, int len, int hide_vhosts)
-
const char * ssl_private_key_password
Definition: libwebsockets.h:1615
-
short events
Definition: libwebsockets.h:434
-
Definition: libwebsockets.h:1434
-
const struct lws_extension * extensions
Definition: libwebsockets.h:1425
-
const struct lws_http_mount * mount_next
Definition: libwebsockets.h:2008
+
const char * ssl_private_key_password
Definition: libwebsockets.h:1617
+
short events
Definition: libwebsockets.h:436
+
Definition: libwebsockets.h:1436
+
const struct lws_extension * extensions
Definition: libwebsockets.h:1427
+
const struct lws_http_mount * mount_next
Definition: libwebsockets.h:2010
LWS_VISIBLE LWS_EXTERN void lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs)
-
void * userdata
Definition: libwebsockets.h:2099
-
Definition: libwebsockets.h:720
-
Definition: libwebsockets.h:907
+
void * userdata
Definition: libwebsockets.h:2101
+
Definition: libwebsockets.h:722
+
Definition: libwebsockets.h:909
LWS_VISIBLE LWS_EXTERN int lws_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
-
unsigned char * data
Definition: libwebsockets.h:4059
-
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: libwebsockets.h:2023
+
unsigned char * data
Definition: libwebsockets.h:4061
+
const struct lws_protocol_vhost_options * extra_mimetypes
Definition: libwebsockets.h:2025
-
Definition: libwebsockets.h:713
+
Definition: libwebsockets.h:715
LWS_VISIBLE LWS_EXTERN const char * lws_urlencode(char *escaped, const char *string, int len)
-
Definition: libwebsockets.h:794
-
uv_loop_t * loop
Definition: libwebsockets.h:4274
-
Definition: libwebsockets.h:892
+
Definition: libwebsockets.h:796
+
uv_loop_t * loop
Definition: libwebsockets.h:4276
+
Definition: libwebsockets.h:894
Definition: libwebsockets.h:72
-
Definition: libwebsockets.h:3298
-
int pos
Definition: libwebsockets.h:2538
-
struct lws_plugin * list
Definition: libwebsockets.h:1435
+
Definition: libwebsockets.h:3300
+
int pos
Definition: libwebsockets.h:2540
+
struct lws_plugin * list
Definition: libwebsockets.h:1437
LWS_VISIBLE LWS_EXTERN struct lws *LWS_WARN_UNUSED_RESULT lws_client_connect_extended(struct lws_context *clients, const char *address, int port, int ssl_connection, const char *path, const char *host, const char *origin, const char *protocol, int ietf_version_or_minus_one, void *userdata) LWS_WARN_DEPRECATED
-
short max_http_header_data
Definition: libwebsockets.h:1667
+
short max_http_header_data
Definition: libwebsockets.h:1669
-
void * provided_client_ssl_ctx
Definition: libwebsockets.h:1664
+
void * provided_client_ssl_ctx
Definition: libwebsockets.h:1666
LWS_VISIBLE LWS_EXTERN struct lws_vhost * lws_get_vhost(struct lws *wsi)
Definition: libwebsockets.h:44
LWS_VISIBLE LWS_EXTERN void lwsl_emit_syslog(int level, const char *line)
-
const struct lws_protocols * protocols
Definition: libwebsockets.h:1423
-
Definition: libwebsockets.h:1128
-
int ka_probes
Definition: libwebsockets.h:1650
+
const struct lws_protocols * protocols
Definition: libwebsockets.h:1425
+
Definition: libwebsockets.h:1130
+
int ka_probes
Definition: libwebsockets.h:1652
void onError(Socket *s, socket_error_t err)
-
const char * origin
Definition: libwebsockets.h:2093
-
SHORT revents
Definition: libwebsockets.h:420
-
const char * method
Definition: libwebsockets.h:2103
+
const char * origin
Definition: libwebsockets.h:2095
+
SHORT revents
Definition: libwebsockets.h:422
+
const char * method
Definition: libwebsockets.h:2105
-
Definition: libwebsockets.h:1222
+
Definition: libwebsockets.h:1224
LWS_VISIBLE LWS_EXTERN int lws_callback_on_writable_all_protocol_vhost(const struct lws_vhost *vhost, const struct lws_protocols *protocol)
-
Definition: libwebsockets.h:929
-
const struct lws_extension * client_exts
Definition: libwebsockets.h:2101
-
unsigned char origin_protocol
Definition: libwebsockets.h:2039
-
const char * log_filepath
Definition: libwebsockets.h:1703
-
Definition: libwebsockets.h:769
-
unsigned int max_content_size
Definition: libwebsockets.h:4282
-
int option_index
Definition: libwebsockets.h:1150
+
Definition: libwebsockets.h:931
+
const struct lws_extension * client_exts
Definition: libwebsockets.h:2103
+
unsigned char origin_protocol
Definition: libwebsockets.h:2041
+
const char * log_filepath
Definition: libwebsockets.h:1705
+
Definition: libwebsockets.h:771
+
unsigned int max_content_size
Definition: libwebsockets.h:4284
+
int option_index
Definition: libwebsockets.h:1152
LWS_VISIBLE LWS_EXTERN struct lws *LWS_WARN_UNUSED_RESULT lws_get_child(const struct lws *wsi)
-
Definition: libwebsockets.h:765
-
const char * uri_replace_to
Definition: libwebsockets.h:2113
-
struct lws * parent_wsi
Definition: libwebsockets.h:2106
+
Definition: libwebsockets.h:767
+
const char * uri_replace_to
Definition: libwebsockets.h:2115
+
struct lws * parent_wsi
Definition: libwebsockets.h:2108
LWS_VISIBLE LWS_EXTERN int lws_b64_decode_string(const char *in, char *out, int out_size)
-
enum lwsgs_smtp_states estate
Definition: libwebsockets.h:4305
+
enum lwsgs_smtp_states estate
Definition: libwebsockets.h:4307
-
Definition: libwebsockets.h:665
+
Definition: libwebsockets.h:667
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_get_count_threads(struct lws_context *context)
-
const char *const * plugin_dirs
Definition: libwebsockets.h:1694
-
char name[64]
Definition: libwebsockets.h:1441
+
const char *const * plugin_dirs
Definition: libwebsockets.h:1696
+
char name[64]
Definition: libwebsockets.h:1443
LWS_VISIBLE LWS_EXTERN int lws_cgi_kill(struct lws *wsi)
-
char email_buf[256]
Definition: libwebsockets.h:4309
+
char email_buf[256]
Definition: libwebsockets.h:4311
LWS_VISIBLE LWS_EXTERN int lws_is_ssl(struct lws *wsi)
-
Definition: libwebsockets.h:1530
-
int(* close)(struct lws *wsi, lws_filefd_type fd)
Definition: libwebsockets.h:4126
-
uv_lib_t lib
Definition: libwebsockets.h:1437
-
+
Definition: libwebsockets.h:1532
+
int(* close)(struct lws *wsi, lws_filefd_type fd)
Definition: libwebsockets.h:4128
+
uv_lib_t lib
Definition: libwebsockets.h:1439
+
LWS_VISIBLE LWS_EXTERN void lws_get_peer_addresses(struct lws *wsi, lws_sockfd_type fd, char *name, int name_len, char *rip, int rip_len)
-
Definition: libwebsockets.h:4260
+
Definition: libwebsockets.h:4262
LWS_VISIBLE LWS_EXTERN int lws_is_cgi(struct lws *wsi)
-
int ssl_connection
Definition: libwebsockets.h:2087
-
Definition: libwebsockets.h:1489
-
SSL_CTX * provided_client_ssl_ctx
Definition: libwebsockets.h:1658
+
int ssl_connection
Definition: libwebsockets.h:2089
+
Definition: libwebsockets.h:1491
+
SSL_CTX * provided_client_ssl_ctx
Definition: libwebsockets.h:1660
LWS_VISIBLE LWS_EXTERN int lws_rx_flow_control(struct lws *wsi, int enable)
-
Definition: libwebsockets.h:2526
+
Definition: libwebsockets.h:2528
LWS_VISIBLE LWS_EXTERN struct lws_plat_file_ops *LWS_WARN_UNUSED_RESULT lws_get_fops(struct lws_context *context)
-
Definition: libwebsockets.h:531
-
const struct lws_protocol_vhost_options * cgienv
Definition: libwebsockets.h:2019
-
const char * name
Definition: libwebsockets.h:1985
-
unsigned char mountpoint_len
Definition: libwebsockets.h:2040
-
Definition: libwebsockets.h:3269
-
Definition: libwebsockets.h:1548
-
lws_sockfd_type fd
Definition: libwebsockets.h:418
-
Definition: libwebsockets.h:1996
+
Definition: libwebsockets.h:533
+
const struct lws_protocol_vhost_options * cgienv
Definition: libwebsockets.h:2021
+
const char * name
Definition: libwebsockets.h:1987
+
unsigned char mountpoint_len
Definition: libwebsockets.h:2042
+
Definition: libwebsockets.h:3271
+
Definition: libwebsockets.h:1550
+
lws_sockfd_type fd
Definition: libwebsockets.h:420
+
Definition: libwebsockets.h:1998
LWS_VISIBLE LWS_EXTERN int lws_is_final_fragment(struct lws *wsi)
-
const struct lws_extension * extensions
Definition: libwebsockets.h:1609
-
Definition: libwebsockets.h:1532
+
const struct lws_extension * extensions
Definition: libwebsockets.h:1611
+
Definition: libwebsockets.h:1534
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_zalloc(struct lws_vhost *vhost, const struct lws_protocols *prot, int size)
-
Definition: libwebsockets.h:1537
-
lws_ext_options_types
Definition: libwebsockets.h:1126
-
const struct lws_protocols * protocols
Definition: libwebsockets.h:1605
+
Definition: libwebsockets.h:1539
+
lws_ext_options_types
Definition: libwebsockets.h:1128
+
const struct lws_protocols * protocols
Definition: libwebsockets.h:1607
LWS_VISIBLE LWS_EXTERN int lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d, char **config_strings, int *len)
LWS_VISIBLE LWS_EXTERN void * lws_wsi_user(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN unsigned long lws_now_secs(void)
LWS_VISIBLE LWS_EXTERN const char * lws_get_peer_simple(struct lws *wsi, char *name, int namelen)
-
const char * start
Definition: libwebsockets.h:1151
-
const char * ssl_cipher_list
Definition: libwebsockets.h:1629
+
const char * start
Definition: libwebsockets.h:1153
+
const char * ssl_cipher_list
Definition: libwebsockets.h:1631
-
const char * mountpoint
Definition: libwebsockets.h:2010
-
const char * http_proxy_address
Definition: libwebsockets.h:1633
-
Definition: libwebsockets.h:827
-
-
const char * ssl_cert_filepath
Definition: libwebsockets.h:1617
-
const char * ecdh_curve
Definition: libwebsockets.h:1688
-
int cgi_timeout
Definition: libwebsockets.h:2028
-
Definition: libwebsockets.h:1998
-
Definition: libwebsockets.h:1474
-
Definition: libwebsockets.h:432
-
Definition: libwebsockets.h:588
+
const char * mountpoint
Definition: libwebsockets.h:2012
+
const char * http_proxy_address
Definition: libwebsockets.h:1635
+
Definition: libwebsockets.h:829
+
+
const char * ssl_cert_filepath
Definition: libwebsockets.h:1619
+
const char * ecdh_curve
Definition: libwebsockets.h:1690
+
int cgi_timeout
Definition: libwebsockets.h:2030
+
Definition: libwebsockets.h:2000
+
Definition: libwebsockets.h:1476
+
Definition: libwebsockets.h:434
+
Definition: libwebsockets.h:590
LWS_VISIBLE LWS_EXTERN unsigned char lws_get_reserved_bits(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN unsigned char * lws_SHA1(const unsigned char *d, size_t n, unsigned char *md)
LWS_VISIBLE LWS_EXTERN int lws_set_extension_option(struct lws *wsi, const char *ext_name, const char *opt_name, const char *opt_val)
-
Definition: libwebsockets.h:733
+
Definition: libwebsockets.h:735
LWS_VISIBLE LWS_EXTERN int lws_cgi(struct lws *wsi, const char *const *exec_array, int script_uri_path_len, int timeout_secs, const struct lws_protocol_vhost_options *mp_cgienv)
LWS_VISIBLE LWS_EXTERN struct lws *LWS_WARN_UNUSED_RESULT lws_client_connect(struct lws_context *clients, const char *address, int port, int ssl_connection, const char *path, const char *host, const char *origin, const char *protocol, int ietf_version_or_minus_one) LWS_WARN_DEPRECATED
-
Definition: libwebsockets.h:767
+
Definition: libwebsockets.h:769
LWS_VISIBLE LWS_EXTERN int lwsws_get_config_vhosts(struct lws_context *context, struct lws_context_creation_info *info, const char *d, char **config_strings, int *len)
-
Definition: libwebsockets.h:1557
+
Definition: libwebsockets.h:1559
LWS_VISIBLE LWS_EXTERN int lwsl_timestamp(int level, char *p, int len)
-
Definition: libwebsockets.h:1005
-
Definition: libwebsockets.h:1569
-
uv_timer_t timeout_email
Definition: libwebsockets.h:4304
-
Definition: libwebsockets.h:1539
-
short max_http_header_pool
Definition: libwebsockets.h:1670
+
Definition: libwebsockets.h:1007
+
Definition: libwebsockets.h:1571
+
uv_timer_t timeout_email
Definition: libwebsockets.h:4306
+
Definition: libwebsockets.h:1541
+
short max_http_header_pool
Definition: libwebsockets.h:1672
LWS_VISIBLE LWS_EXTERN int lws_chunked_html_process(struct lws_process_html_args *args, struct lws_process_html_state *s)
-
char * p
Definition: libwebsockets.h:2527
-
-
size_t per_session_data_size
Definition: libwebsockets.h:1320
-
Definition: libwebsockets.h:572
-
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: libwebsockets.h:1742
-
lwsgs_smtp_states
Definition: libwebsockets.h:4258
-
Definition: libwebsockets.h:1551
-
Definition: libwebsockets.h:845
+
char * p
Definition: libwebsockets.h:2529
+
+
size_t per_session_data_size
Definition: libwebsockets.h:1322
+
Definition: libwebsockets.h:574
+
const struct lws_protocol_vhost_options * reject_service_keywords
Definition: libwebsockets.h:1744
+
lwsgs_smtp_states
Definition: libwebsockets.h:4260
+
Definition: libwebsockets.h:1553
+
Definition: libwebsockets.h:847
LWS_VISIBLE LWS_EXTERN int lws_snprintf(char *str, size_t size, const char *format,...)
LWS_VISIBLE LWS_EXTERN struct lws * lws_adopt_socket_vhost_readbuf(struct lws_vhost *vhost, lws_sockfd_type accept_fd, const char *readbuf, size_t len)
-
Definition: libwebsockets.h:731
-
Definition: libwebsockets.h:1312
-
Definition: libwebsockets.h:577
+
Definition: libwebsockets.h:733
+
Definition: libwebsockets.h:1314
+
Definition: libwebsockets.h:579
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_http_redirect(struct lws *wsi, int code, const unsigned char *loc, int len, unsigned char **p, unsigned char *end)
-
unsigned int count_threads
Definition: libwebsockets.h:1677
-
const char * email
Definition: libwebsockets.h:1497
+
unsigned int count_threads
Definition: libwebsockets.h:1679
+
const char * email
Definition: libwebsockets.h:1499
LWS_VISIBLE LWS_EXTERN int lws_get_random(struct lws_context *context, void *buf, int len)
-
Definition: libwebsockets.h:559
-
uv_connect_t email_connect_req
Definition: libwebsockets.h:4306
-
const char * server_string
Definition: libwebsockets.h:1708
-
Definition: libwebsockets.h:1562
-
SHORT events
Definition: libwebsockets.h:419
-
Definition: libwebsockets.h:736
-
Definition: libwebsockets.h:1546
-
const char * vhost_name
Definition: libwebsockets.h:1690
-
Definition: libwebsockets.h:1999
+
Definition: libwebsockets.h:561
+
uv_connect_t email_connect_req
Definition: libwebsockets.h:4308
+
const char * server_string
Definition: libwebsockets.h:1710
+
Definition: libwebsockets.h:1564
+
SHORT events
Definition: libwebsockets.h:421
+
Definition: libwebsockets.h:738
+
Definition: libwebsockets.h:1548
+
const char * vhost_name
Definition: libwebsockets.h:1692
+
Definition: libwebsockets.h:2001
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_get_protocol(struct lws *wsi)
-
Definition: libwebsockets.h:1472
-
Definition: libwebsockets.h:1494
-
unsigned int fd_limit_per_thread
Definition: libwebsockets.h:1679
+
Definition: libwebsockets.h:1474
+
Definition: libwebsockets.h:1496
+
unsigned int fd_limit_per_thread
Definition: libwebsockets.h:1681
LWS_VISIBLE LWS_EXTERN int lws_cgi_write_split_stdout_headers(struct lws *wsi)
-
lws_gs_event
Definition: libwebsockets.h:1488
+
lws_gs_event
Definition: libwebsockets.h:1490
LWS_VISIBLE LWS_EXTERN int lws_finalize_startup(struct lws_context *context)
-
int ka_interval
Definition: libwebsockets.h:1654
-
Definition: libwebsockets.h:1471
-
int uid
Definition: libwebsockets.h:1640
-
+
int ka_interval
Definition: libwebsockets.h:1656
+
Definition: libwebsockets.h:1473
+
int uid
Definition: libwebsockets.h:1642
+
LWS_VISIBLE LWS_EXTERN int lws_b64_encode_string(const char *in, int in_len, char *out, int out_size)
LWS_VISIBLE LWS_EXTERN void * lws_context_user(struct lws_context *context)
-
const char * name
Definition: libwebsockets.h:1313
+
const char * name
Definition: libwebsockets.h:1315
LWS_VISIBLE LWS_EXTERN int lws_init_vhost_client_ssl(const struct lws_context_creation_info *info, struct lws_vhost *vhost)
-
Definition: libwebsockets.h:4264
-
unsigned int http_proxy_port
Definition: libwebsockets.h:1636
+
Definition: libwebsockets.h:4266
+
unsigned int http_proxy_port
Definition: libwebsockets.h:1638
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_partial_buffered(struct lws *wsi)
-
unsigned int timeout_secs
Definition: libwebsockets.h:1683
-
int port
Definition: libwebsockets.h:1593
+
unsigned int timeout_secs
Definition: libwebsockets.h:1685
+
int port
Definition: libwebsockets.h:1595
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_parse_uri(char *p, const char **prot, const char **ads, int *port, const char **path)
-
unsigned int options
Definition: libwebsockets.h:1642
+
unsigned int options
Definition: libwebsockets.h:1644
-
const struct lws_protocol_vhost_options * options
Definition: libwebsockets.h:1984
-
int prev_events
Definition: libwebsockets.h:534
-
int keepalive_timeout
Definition: libwebsockets.h:1700
-
Definition: libwebsockets.h:1478
-
Definition: libwebsockets.h:1139
-
const struct lws_protocol_vhost_options * headers
Definition: libwebsockets.h:1738
-
Definition: libwebsockets.h:2716
+
const struct lws_protocol_vhost_options * options
Definition: libwebsockets.h:1986
+
int prev_events
Definition: libwebsockets.h:536
+
int keepalive_timeout
Definition: libwebsockets.h:1702
+
Definition: libwebsockets.h:1480
+
Definition: libwebsockets.h:1141
+
const struct lws_protocol_vhost_options * headers
Definition: libwebsockets.h:1740
+
Definition: libwebsockets.h:2718
LWS_VISIBLE LWS_EXTERN int lws_write(struct lws *wsi, unsigned char *buf, size_t len, enum lws_write_protocol protocol)
-
const struct lws_protocol_vhost_options * pvo
Definition: libwebsockets.h:1697
-
const char * basic_auth_login_file
Definition: libwebsockets.h:2042
-
const char * host
Definition: libwebsockets.h:2091
-
Definition: libwebsockets.h:1148
-
Definition: libwebsockets.h:598
+
const struct lws_protocol_vhost_options * pvo
Definition: libwebsockets.h:1699
+
const char * basic_auth_login_file
Definition: libwebsockets.h:2044
+
const char * host
Definition: libwebsockets.h:2093
+
Definition: libwebsockets.h:1150
+
Definition: libwebsockets.h:600
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_vhost_name_to_protocol(struct lws_vhost *vh, const char *name)
-
int len
Definition: libwebsockets.h:4061
+
int len
Definition: libwebsockets.h:4063
-
const char * iface
Definition: libwebsockets.h:1598
-
Definition: libwebsockets.h:4120
+
const char * iface
Definition: libwebsockets.h:1600
+
Definition: libwebsockets.h:4122
LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len)
-
Definition: libwebsockets.h:1010
-
+
Definition: libwebsockets.h:1012
+
LWS_VISIBLE LWS_EXTERN int lws_service_fd(struct lws_context *context, struct lws_pollfd *pollfd)
LWS_VISIBLE LWS_EXTERN int lws_callback_vhost_protocols(struct lws *wsi, int reason, void *in, int len)
-
Definition: libwebsockets.h:821
-
Definition: libwebsockets.h:556
-
Definition: libwebsockets.h:565
+
Definition: libwebsockets.h:823
+
Definition: libwebsockets.h:558
+
Definition: libwebsockets.h:567
LWS_VISIBLE LWS_EXTERN const char * lws_sql_purify(char *escaped, const char *string, int len)
-
uv_tcp_t email_client
Definition: libwebsockets.h:4307
-
Definition: libwebsockets.h:417
-
Definition: libwebsockets.h:669
-
lws_filefd_type(* open)(struct lws *wsi, const char *filename, unsigned long *filelen, int flags)
Definition: libwebsockets.h:4121
-
lws_write_protocol
Definition: libwebsockets.h:3261
-
const char * client_offer
Definition: libwebsockets.h:1225
-
int(* read)(struct lws *wsi, lws_filefd_type fd, unsigned long *amount, unsigned char *buf, unsigned long len)
Definition: libwebsockets.h:4131
+
uv_tcp_t email_client
Definition: libwebsockets.h:4309
+
Definition: libwebsockets.h:419
+
Definition: libwebsockets.h:671
+
lws_filefd_type(* open)(struct lws *wsi, const char *filename, unsigned long *filelen, int flags)
Definition: libwebsockets.h:4123
+
lws_write_protocol
Definition: libwebsockets.h:3263
+
const char * client_offer
Definition: libwebsockets.h:1227
+
int(* read)(struct lws *wsi, lws_filefd_type fd, unsigned long *amount, unsigned char *buf, unsigned long len)
Definition: libwebsockets.h:4133
LWS_VISIBLE LWS_EXTERN void lws_cancel_service(struct lws_context *context)
-
-
Definition: libwebsockets.h:570
-
const char * origin
Definition: libwebsockets.h:2012
-
const char * name
Definition: libwebsockets.h:1140
+
+
Definition: libwebsockets.h:572
+
const char * origin
Definition: libwebsockets.h:2014
+
const char * name
Definition: libwebsockets.h:1142
LWS_VISIBLE LWS_EXTERN int lws_serve_http_file(struct lws *wsi, const char *file, const char *content_type, const char *other_headers, int other_headers_len)
LWS_VISIBLE LWS_EXTERN void lws_email_check(struct lws_email *email)
LWS_VISIBLE LWS_EXTERN int lws_set_proxy(struct lws_vhost *vhost, const char *proxy)
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_frame_is_binary(struct lws *wsi)
-
Definition: libwebsockets.h:746
-
const char * name
Definition: libwebsockets.h:1223
-
Definition: libwebsockets.h:4263
-
short revents
Definition: libwebsockets.h:435
-
lws_extension_callback_function * callback
Definition: libwebsockets.h:1224
-
long ssl_options_set
Definition: libwebsockets.h:1722
-
Definition: libwebsockets.h:1052
+
Definition: libwebsockets.h:748
+
const char * name
Definition: libwebsockets.h:1225
+
Definition: libwebsockets.h:4265
+
short revents
Definition: libwebsockets.h:437
+
lws_extension_callback_function * callback
Definition: libwebsockets.h:1226
+
long ssl_options_set
Definition: libwebsockets.h:1724
+
Definition: libwebsockets.h:1054
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_protocol_get(struct lws *wsi) LWS_WARN_DEPRECATED
-
unsigned int mask
Definition: libwebsockets.h:1482
+
unsigned int mask
Definition: libwebsockets.h:1484
LWS_VISIBLE LWS_EXTERN int lws_email_init(struct lws_email *email, uv_loop_t *loop, int max_content)
-
lws_mount_protocols
Definition: libwebsockets.h:1993
+
lws_mount_protocols
Definition: libwebsockets.h:1995
LWS_EXTERN int lws_extension_callback_pm_deflate(struct lws_context *context, const struct lws_extension *ext, struct lws *wsi, enum lws_extension_callback_reasons reason, void *user, void *in, size_t len)
-
lws_sockfd_type fd
Definition: libwebsockets.h:433
-
unsigned int max_http_header_data2
Definition: libwebsockets.h:1717
-
Definition: libwebsockets.h:1994
+
lws_sockfd_type fd
Definition: libwebsockets.h:435
+
unsigned int max_http_header_data2
Definition: libwebsockets.h:1719
+
Definition: libwebsockets.h:1996
LWS_VISIBLE LWS_EXTERN int lws_return_http_status(struct lws *wsi, unsigned int code, const char *html_body)
LWS_EXTERN LWS_VISIBLE struct lws_vhost * lws_create_vhost(struct lws_context *context, struct lws_context_creation_info *info)
-
const struct lws_protocol_vhost_options * interpret
Definition: libwebsockets.h:2025
-
void * external_baggage_free_on_destroy
Definition: libwebsockets.h:1749
+
const struct lws_protocol_vhost_options * interpret
Definition: libwebsockets.h:2027
+
void * external_baggage_free_on_destroy
Definition: libwebsockets.h:1751
LWS_VISIBLE LWS_EXTERN int lws_service(struct lws_context *context, int timeout_ms)
-
Definition: libwebsockets.h:1019
-
Definition: libwebsockets.h:1544
+
Definition: libwebsockets.h:1021
+
Definition: libwebsockets.h:1546
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_http_transaction_completed(struct lws *wsi)
-
int count_vars
Definition: libwebsockets.h:2541
+
int count_vars
Definition: libwebsockets.h:2543
-
Definition: libwebsockets.h:2595
+
Definition: libwebsockets.h:2597
LWS_VISIBLE LWS_EXTERN struct lws_context * lws_create_context(struct lws_context_creation_info *info)
-
Definition: libwebsockets.h:725
-
void * data
Definition: libwebsockets.h:2539
-
char * content
Definition: libwebsockets.h:4310
+
Definition: libwebsockets.h:727
+
void * data
Definition: libwebsockets.h:2541
+
char * content
Definition: libwebsockets.h:4312
LWS_VISIBLE LWS_EXTERN int lws_interface_to_sa(int ipv6, const char *ifname, struct sockaddr_in *addr, size_t addrlen)
-
const struct lws_token_limits * token_limits
Definition: libwebsockets.h:1612
-
Definition: libwebsockets.h:4271
-
const char * address
Definition: libwebsockets.h:2083
-
unsigned long(* seek_cur)(struct lws *wsi, lws_filefd_type fd, long offset_from_cur_pos)
Definition: libwebsockets.h:4128
-
void * user
Definition: libwebsockets.h:1341
-
int events
Definition: libwebsockets.h:533
+
const struct lws_token_limits * token_limits
Definition: libwebsockets.h:1614
+
Definition: libwebsockets.h:4273
+
const char * address
Definition: libwebsockets.h:2085
+
unsigned long(* seek_cur)(struct lws *wsi, lws_filefd_type fd, long offset_from_cur_pos)
Definition: libwebsockets.h:4130
+
void * user
Definition: libwebsockets.h:1343
+
int events
Definition: libwebsockets.h:535
LWS_VISIBLE LWS_EXTERN unsigned int lws_http_client_http_response(struct lws *wsi)
-
int(* on_get_body)(struct lws_email *email, char *buf, int len)
Definition: libwebsockets.h:4297
-
Definition: libwebsockets.h:2000
-
void * user
Definition: libwebsockets.h:1644
-
Definition: libwebsockets.h:4267
-
Definition: libwebsockets.h:3284
-
char * token
Definition: libwebsockets.h:2596
+
int(* on_get_body)(struct lws_email *email, char *buf, int len)
Definition: libwebsockets.h:4299
+
Definition: libwebsockets.h:2002
+
void * user
Definition: libwebsockets.h:1646
+
Definition: libwebsockets.h:4269
+
Definition: libwebsockets.h:3286
+
char * token
Definition: libwebsockets.h:2598
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_get(struct lws_vhost *vhost, const struct lws_protocols *prot)
-
int count_protocols
Definition: libwebsockets.h:1424
-
void * l
Definition: libwebsockets.h:1439
-
const char * ssl_private_key_filepath
Definition: libwebsockets.h:1621
-
int max_len
Definition: libwebsockets.h:2529
-
Definition: libwebsockets.h:727
-
const struct lws_protocol_vhost_options * next
Definition: libwebsockets.h:1983
-
Definition: libwebsockets.h:738
+
int count_protocols
Definition: libwebsockets.h:1426
+
void * l
Definition: libwebsockets.h:1441
+
const char * ssl_private_key_filepath
Definition: libwebsockets.h:1623
+
int max_len
Definition: libwebsockets.h:2531
+
Definition: libwebsockets.h:729
+
const struct lws_protocol_vhost_options * next
Definition: libwebsockets.h:1985
+
Definition: libwebsockets.h:740
LWS_VISIBLE LWS_EXTERN void lws_rx_flow_allow_all_protocol(const struct lws_context *context, const struct lws_protocols *protocol)
-
Definition: libwebsockets.h:2535
+
Definition: libwebsockets.h:2537
LWS_VISIBLE LWS_EXTERN const char *LWS_WARN_UNUSED_RESULT lws_canonical_hostname(struct lws_context *context)
-
Definition: libwebsockets.h:937
-
const char * ssl_ca_filepath
Definition: libwebsockets.h:1627
-
lws_client_connect_ssl_connection_flags
Definition: libwebsockets.h:2070
-
int gid
Definition: libwebsockets.h:1638
-
struct lws_vhost * vhost
Definition: libwebsockets.h:2115
-
int lws_callback_function(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len)
Definition: libwebsockets.h:1074
+
Definition: libwebsockets.h:939
+
const char * ssl_ca_filepath
Definition: libwebsockets.h:1629
+
lws_client_connect_ssl_connection_flags
Definition: libwebsockets.h:2072
+
int gid
Definition: libwebsockets.h:1640
+
struct lws_vhost * vhost
Definition: libwebsockets.h:2117
+
int lws_callback_function(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len)
Definition: libwebsockets.h:1076
LWS_VISIBLE LWS_EXTERN void lws_cancel_service_pt(struct lws *wsi)
-
Definition: libwebsockets.h:1564
-
Definition: libwebsockets.h:606
-
Definition: libwebsockets.h:4262
-
unsigned int api_magic
Definition: libwebsockets.h:1422
-
Definition: libwebsockets.h:1567
+
Definition: libwebsockets.h:1566
+
Definition: libwebsockets.h:608
+
Definition: libwebsockets.h:4264
+
unsigned int api_magic
Definition: libwebsockets.h:1424
+
Definition: libwebsockets.h:1569
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_send_pipe_choked(struct lws *wsi)
-
Definition: libwebsockets.h:4265
-
+
Definition: libwebsockets.h:4267
+