2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
26
27
28
29
30
31
32
33
34
35
36
37
38
39
42
47
50
51
54
55
56
59
60
61
62
63
64
65
68
69
70
71
72
74
77
78
79
80
81
82
83
86
89#define LWS_PROTOCOL_LIST_TERM { NULL, NULL, 0
, 0
, 0
, NULL, 0
}
92
93
94
95
96
97
98
103
104
105
106
107
108
109
110
115LWS_VISIBLE LWS_EXTERN
const struct lws_protocols *
116lws_protocol_get(
struct lws *wsi) LWS_WARN_DEPRECATED;
119
120
121
122
123
124
125
126
127
128LWS_VISIBLE LWS_EXTERN
void *
133
134
135
136
137
138
139
140
141LWS_VISIBLE LWS_EXTERN
void *
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175LWS_VISIBLE LWS_EXTERN
void *
177 const char *pvo_name,
const char *pvo_value);
181
182
183
184
185
186
187
188
189
190
191
192
193
194LWS_VISIBLE LWS_EXTERN
void *
198
199
200
201
202
203
204
205LWS_VISIBLE LWS_EXTERN
int
209
210
211
212
213
214
215
220
221
222
223
224
225
226
227
228LWS_VISIBLE LWS_EXTERN
int
231LWS_VISIBLE LWS_EXTERN
int
234#define LWS_PLUGIN_API_MAGIC 191
237
238
239
240
241
242
243
244
245
256} lws_plugin_header_t;
259
260
261
269} lws_plugin_protocol_t;
273
274
275
280 const lws_plugin_header_t *
hdr;
283#if defined(LWS_WITH_LIBUV) && defined(UV_ERRNO_MAP)
284#if (UV_VERSION_MAJOR > 0
)
293
294
295
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325LWS_VISIBLE LWS_EXTERN
int
327 const char *_class,
const char *filter,
331
332
333
334
335
336
337
338
339
340
341
342
343LWS_VISIBLE LWS_EXTERN
int
347#if defined(LWS_WITH_PLUGINS_BUILTIN)
351extern const struct lws_protocols post_demo_protocols[1];
352extern const struct lws_protocols lws_raw_proxy_protocols[1];
353extern const struct lws_protocols lws_status_protocols[1];
354extern const struct lws_protocols lws_mirror_protocols[1];
355extern const struct lws_protocols lws_ssh_base_protocols[2];
356extern const struct lws_protocols post_demo_protocols[1];
357extern const struct lws_protocols dumb_increment_protocols[1];
358extern const struct lws_protocols deaddrop_protocols[1];
359extern const struct lws_protocols lws_raw_test_protocols[1];
360extern const struct lws_protocols lws_sshd_demo_protocols[1];
361extern const struct lws_protocols lws_acme_client_protocols[1];
362extern const struct lws_protocols client_loopback_test_protocols[1];
363extern const struct lws_protocols fulltext_demo_protocols[1];
364extern 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
const lws_plugin_header_t * hdr
const struct lws_event_loop_ops * ops
size_t per_session_data_size
lws_callback_function * callback
const struct lws_protocols * protocols
const char * lws_build_hash
const struct lws_extension * extensions
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 int lws_protocol_init(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN const struct lws_protocols * lws_get_protocol(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN void * lws_protocol_vh_priv_get(struct lws_vhost *vhost, const struct lws_protocols *prot)
int(* each_plugin_cb_t)(struct lws_plugin *p, void *user)
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 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_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 int lws_plugins_destroy(struct lws_plugin **pplugin, each_plugin_cb_t each, void *each_user)