|
libwebsockets
Lightweight C library for HTML5 websockets
|
38 enum lws_extension_callback_reasons {
39 LWS_EXT_CB_CONSTRUCT = 4,
40 LWS_EXT_CB_CLIENT_CONSTRUCT = 5,
41 LWS_EXT_CB_DESTROY = 8,
42 LWS_EXT_CB_PACKET_TX_PRESEND = 12,
43 LWS_EXT_CB_PAYLOAD_TX = 21,
44 LWS_EXT_CB_PAYLOAD_RX = 22,
45 LWS_EXT_CB_OPTION_DEFAULT = 23,
46 LWS_EXT_CB_OPTION_SET = 24,
47 LWS_EXT_CB_OPTION_CONFIRM = 25,
48 LWS_EXT_CB_NAMED_OPTION_SET = 26,
134 enum lws_extension_callback_reasons reason,
135 void *user,
void *in,
size_t len);
155 LWS_VISIBLE LWS_EXTERN
int
157 const char *opt_name,
const char *opt_val);
169 LWS_VISIBLE LWS_EXTERN
int LWS_WARN_UNUSED_RESULT
172 const char *o,
int len);
190 enum lws_extension_callback_reasons reason,
191 void *user,
void *in,
size_t len);
LWS_VISIBLE LWS_EXTERN int lws_set_extension_option(struct lws *wsi, const char *ext_name, const char *opt_name, const char *opt_val)
const char * name
Definition: lws-ws-ext.h:68
const char * name
Definition: lws-ws-ext.h:139
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)
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: lws-ws-ext.h:132
@ EXTARG_DEC
Definition: lws-ws-ext.h:56
lws_extension_callback_function * callback
Definition: lws-ws-ext.h:140
Definition: lws-ws-ext.h:138
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)
Definition: lws-ws-ext.h:76
const char * client_offer
Definition: lws-ws-ext.h:141
Definition: lws-ws-ext.h:67
@ EXTARG_OPT_DEC
Definition: lws-ws-ext.h:57
lws_ext_options_types
Definition: lws-ws-ext.h:54
const char * option_name
Definition: lws-ws-ext.h:77
@ EXTARG_NONE
Definition: lws-ws-ext.h:55
enum lws_ext_options_types type
Definition: lws-ws-ext.h:69
int len
Definition: lws-ws-ext.h:80
int option_index
Definition: lws-ws-ext.h:78
const char * start
Definition: lws-ws-ext.h:79