libwebsockets
Lightweight C library for HTML5 websockets
lws-ws-ext.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_ext_options
 
struct  lws_ext_option_arg
 
struct  lws_extension
 

Typedefs

typedef 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)
 

Enumerations

enum  lws_extension_callback_reasons {
  LWS_EXT_CB_CONSTRUCT = 4 , LWS_EXT_CB_CLIENT_CONSTRUCT = 5 , LWS_EXT_CB_DESTROY = 8 , LWS_EXT_CB_PACKET_TX_PRESEND = 12 ,
  LWS_EXT_CB_PAYLOAD_TX = 21 , LWS_EXT_CB_PAYLOAD_RX = 22 , LWS_EXT_CB_OPTION_DEFAULT = 23 , LWS_EXT_CB_OPTION_SET = 24 ,
  LWS_EXT_CB_OPTION_CONFIRM = 25 , LWS_EXT_CB_NAMED_OPTION_SET = 26
}
 
enum  lws_ext_options_types { EXTARG_NONE , EXTARG_DEC , EXTARG_OPT_DEC }
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_set_extension_option (struct lws *wsi, const char *ext_name, const char *opt_name, const char *opt_val)
 
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)
 
LWS_VISIBLE 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)