89 #define LWS_PROTOCOL_LIST_TERM { NULL, NULL, 0, 0, 0, NULL, 0 }
128 LWS_VISIBLE LWS_EXTERN
void *
141 LWS_VISIBLE LWS_EXTERN
void *
175 LWS_VISIBLE LWS_EXTERN
void *
177 const char *pvo_name,
const char *pvo_value);
194 LWS_VISIBLE LWS_EXTERN
void *
205 LWS_VISIBLE LWS_EXTERN
int
228 LWS_VISIBLE LWS_EXTERN
int
231 LWS_VISIBLE LWS_EXTERN
int
232 lws_protocol_init(
struct lws_context *context);
234 #define LWS_PLUGIN_API_MAGIC 191
250 const char *lws_build_hash;
252 unsigned int api_magic;
283 #if defined(LWS_WITH_LIBUV) && defined(UV_ERRNO_MAP)
284 #if (UV_VERSION_MAJOR > 0)
302 typedef int (*each_plugin_cb_t)(
struct lws_plugin *p,
void *user);
325 LWS_VISIBLE LWS_EXTERN
int
327 const char *_class,
const char *filter,
328 each_plugin_cb_t each,
void *each_user);
343 LWS_VISIBLE LWS_EXTERN
int
347 #if defined(LWS_WITH_PLUGINS_BUILTIN)
352 extern const struct lws_protocols lws_raw_proxy_protocols[1];
357 extern const struct lws_protocols dumb_increment_protocols[1];
360 extern const struct lws_protocols lws_sshd_demo_protocols[1];
361 extern const struct lws_protocols lws_acme_client_protocols[1];
362 extern const struct lws_protocols client_loopback_test_protocols[1];
363 extern const struct lws_protocols fulltext_demo_protocols[1];
364 extern const struct lws_protocols lws_openmetrics_export_protocols[
365 #if defined(LWS_WITH_SERVER) && defined(LWS_WITH_CLIENT) && defined(LWS_ROLE_WS)
368 #if defined(LWS_WITH_SERVER)
376 #define LWSOMPROIDX_DIRECT_HTTP_SERVER 0
377 #define LWSOMPROIDX_PROX_HTTP_SERVER 1
378 #define LWSOMPROIDX_PROX_WS_SERVER 2
379 #define LWSOMPROIDX_PROX_WS_CLIENT 3
LWS_VISIBLE LWS_EXTERN int lws_finalize_startup(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN int lws_pvo_get_str(void *in, const char *name, const char **result)
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_vhost_name_to_protocol(struct lws_vhost *vh, const char *name)
LWS_VISIBLE LWS_EXTERN void * lws_adjust_protocol_psds(struct lws *wsi, size_t new_size)
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_get_protocol(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_protocol_get(struct lws *wsi) LWS_WARN_DEPRECATED
LWS_VISIBLE LWS_EXTERN void * lws_vhd_find_by_pvo(struct lws_context *cx, const char *protname, const char *pvo_name, const char *pvo_value)
LWS_VISIBLE LWS_EXTERN int lws_plugins_init(struct lws_plugin **pplugin, const char *const *d, const char *_class, const char *filter, each_plugin_cb_t each, void *each_user)
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_zalloc(struct lws_vhost *vhost, const struct lws_protocols *prot, int size)
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_get(struct lws_vhost *vhost, const struct lws_protocols *prot)
LWS_VISIBLE LWS_EXTERN const struct lws_protocol_vhost_options * lws_pvo_search(const struct lws_protocol_vhost_options *pvo, const char *name)
LWS_VISIBLE LWS_EXTERN int lws_plugins_destroy(struct lws_plugin **pplugin, each_plugin_cb_t each, void *each_user)
int lws_callback_function(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len)
Definition: lws-callbacks.h:911
Definition: lws-eventlib-exports.h:39
Definition: lws-ws-ext.h:139
Definition: lws-protocols-plugins.h:297
Definition: lws-protocols-plugins.h:262
const struct lws_protocols * protocols
Definition: lws-protocols-plugins.h:265
int count_protocols
Definition: lws-protocols-plugins.h:267
int count_extensions
Definition: lws-protocols-plugins.h:268
const struct lws_extension * extensions
Definition: lws-protocols-plugins.h:266
Definition: lws-protocols-plugins.h:277
struct lws_plugin * list
Definition: lws-protocols-plugins.h:278
Definition: lws-context-vhost.h:1256
const char * name
Definition: lws-context-vhost.h:1259
Definition: lws-protocols-plugins.h:44
size_t rx_buffer_size
Definition: lws-protocols-plugins.h:57
const char * name
Definition: lws-protocols-plugins.h:45
void * user
Definition: lws-protocols-plugins.h:73
unsigned int id
Definition: lws-protocols-plugins.h:66
size_t per_session_data_size
Definition: lws-protocols-plugins.h:52
size_t tx_packet_size
Definition: lws-protocols-plugins.h:75
lws_callback_function * callback
Definition: lws-protocols-plugins.h:48