Home
last modified time | relevance | path

Searched refs:lws (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/third_party/libwebsockets/lib/core-net/
Dprivate-lib-core-net.h37 struct lws *parent_wsi;
38 struct lws *child_list;
39 struct lws *sibling_list;
252 struct lws *wsi;
266 lws_aysnc_dns_completed(struct lws *wsi, void *sa, size_t salen,
270 lws_async_dns_cancel(struct lws *wsi);
321 struct lws *fake_wsi; /* used for callbacks where there's no wsi */
344 struct lws *pipe_wsi;
549 #define mux_to_wsi(_m) lws_container_of(_m, struct lws, mux)
552 lws_wsi_mux_insert(struct lws *wsi, struct lws *parent_wsi, unsigned int sid);
[all …]
Dwsi.c28 lws_wsi_tag(struct lws *wsi) in lws_wsi_tag()
36 void lwsi_set_role(struct lws *wsi, lws_wsi_state_t role) in lwsi_set_role()
43 void lwsi_set_state(struct lws *wsi, lws_wsi_state_t lrs) in lwsi_set_state()
58 struct lws *wsi = (struct lws *)obj; in lws_log_prepend_wsi()
65 lws_vhost_bind_wsi(struct lws_vhost *vh, struct lws *wsi) in lws_vhost_bind_wsi()
93 __lws_vhost_unbind_wsi(struct lws *wsi) in __lws_vhost_unbind_wsi()
130 struct lws *
131 lws_get_network_wsi(struct lws *wsi) in lws_get_network_wsi()
170 struct lws *wsi; in lws_callback_all_protocol()
189 lws_evlib_wsi_to_evlib_pt(struct lws *wsi) in lws_evlib_wsi_to_evlib_pt()
[all …]
Dwsi-timeout.c28 __lws_wsi_remove_from_sul(struct lws *wsi) in __lws_wsi_remove_from_sul()
45 struct lws *wsi = lws_container_of(sul, struct lws, sul_hrtimer); in lws_sul_hrtimer_cb()
55 __lws_set_timer_usecs(struct lws *wsi, lws_usec_t us) in __lws_set_timer_usecs()
65 lws_set_timer_usecs(struct lws *wsi, lws_usec_t usecs) in lws_set_timer_usecs()
77 struct lws *wsi = lws_container_of(sul, struct lws, sul_timeout); in lws_sul_wsitimeout_cb()
125 __lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in __lws_set_timeout()
140 lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in lws_set_timeout()
176 lws_set_timeout_us(struct lws *wsi, enum pending_timeout reason, lws_usec_t us) in lws_set_timeout_us()
201 struct lws *wsi = lws_container_of(sul, struct lws, sul_validity); in lws_validity_cb()
249 _lws_validity_confirmed_role(struct lws *wsi) in _lws_validity_confirmed_role()
[all …]
/third_party/libwebsockets/
Dlibwebsockets.dox104 include/libwebsockets/lws-adopt.h \
105 include/libwebsockets/lws-async-dns.h \
106 include/libwebsockets/lws-bb-i2c.h \
107 include/libwebsockets/lws-bb-spi.h \
108 include/libwebsockets/lws-button.h \
109 include/libwebsockets/lws-callbacks.h \
110 include/libwebsockets/lws-cgi.h \
111 include/libwebsockets/lws-client.h \
112 include/libwebsockets/lws-context-vhost.h \
113 include/libwebsockets/lws-dbus.h \
[all …]
/third_party/libwebsockets/lib/roles/h2/
Dprivate-lib-roles-h2.h141 lws_h2_state(struct lws *wsi, enum lws_h2_states s);
258 struct lws *swsi;
324 lws_h2_rst_stream(struct lws *wsi, uint32_t err, const char *reason);
325 struct lws * lws_h2_get_nth_child(struct lws *wsi, int n);
326 void lws_h2_init(struct lws *wsi);
328 lws_h2_settings(struct lws *nwsi, struct http2_settings *settings,
331 lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,
334 lws_h2_do_pps_send(struct lws *wsi);
336 lws_h2_frame_write(struct lws *wsi, int type, int flags, unsigned int sid,
338 struct lws *
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-http.h75 lws_serve_http_file(struct lws *wsi, const char *file, const char *content_type,
79 lws_serve_http_file_fragment(struct lws *wsi);
403 lws_hdr_total_length(struct lws *wsi, enum lws_token_indexes h);
415 lws_hdr_fragment_length(struct lws *wsi, enum lws_token_indexes h,
433 lws_hdr_copy(struct lws *wsi, char *dest, int len, enum lws_token_indexes h);
453 lws_hdr_copy_fragment(struct lws *wsi, char *dest, int len,
473 lws_hdr_custom_length(struct lws *wsi, const char *name, int nlen);
494 lws_hdr_custom_copy(struct lws *wsi, char *dst, int len, const char *name,
515 lws_hdr_custom_name_foreach(struct lws *wsi, lws_hdr_custom_fe_cb_t cb, void *opaque);
541 lws_get_urlarg_by_name_safe(struct lws *wsi, const char *name, char *buf, int len);
[all …]
Dlws-misc.h394 lws_wsi_user(struct lws *wsi);
403 lws_wsi_tsi(struct lws *wsi);
416 lws_set_wsi_user(struct lws *wsi, void *user);
501 lws_get_context(const struct lws *wsi);
534 LWS_VISIBLE LWS_EXTERN struct lws * LWS_WARN_UNUSED_RESULT
535 lws_get_parent(const struct lws *wsi);
543 LWS_VISIBLE LWS_EXTERN struct lws * LWS_WARN_UNUSED_RESULT
544 lws_get_child(const struct lws *wsi);
569 lws_get_udp(const struct lws *wsi);
572 lws_get_opaque_parent_data(const struct lws *wsi);
[all …]
Dlws-eventlib-exports.h49 int (*init_vhost_listen_wsi)(struct lws *wsi);
53 int (*wsi_logical_close)(struct lws *wsi);
55 int (*check_client_connect_ok)(struct lws *wsi);
57 void (*close_handle_manually)(struct lws *wsi);
59 int (*sock_accept)(struct lws *wsi);
61 void (*io)(struct lws *wsi, unsigned int flags);
67 void (*destroy_wsi)(struct lws *wsi);
80 lws_evlib_wsi_to_evlib_pt(struct lws *wsi);
96 lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason,
109 LWS_VISIBLE LWS_EXTERN struct lws *
[all …]
Dlws-adopt.h48 LWS_VISIBLE LWS_EXTERN struct lws *
63 LWS_VISIBLE LWS_EXTERN struct lws *
143 LWS_VISIBLE LWS_EXTERN struct lws *
146 struct lws *parent);
153 struct lws *parent; /**< NULL or struct lws to attach new_wsi to as a child */
180 LWS_VISIBLE LWS_EXTERN struct lws *
206 LWS_VISIBLE LWS_EXTERN struct lws *
231 LWS_VISIBLE LWS_EXTERN struct lws *
262 LWS_VISIBLE LWS_EXTERN struct lws *
265 struct lws *parent_wsi, void *opaque,
Dlws-ws-state.h38 lws_send_pipe_choked(struct lws *wsi);
46 lws_is_final_fragment(struct lws *wsi);
54 lws_is_first_fragment(struct lws *wsi);
61 lws_get_reserved_bits(struct lws *wsi);
80 lws_partial_buffered(struct lws *wsi);
92 lws_frame_is_binary(struct lws *wsi);
Dlws-client.h136 struct lws *parent_wsi;
147 struct lws **pwsi;
256 LWS_VISIBLE LWS_EXTERN struct lws *
308 lws_http_client_read(struct lws *wsi, char **buf, int *len);
323 lws_http_client_http_response(struct lws *wsi);
360 lws_client_http_body_pending(struct lws *wsi, int something_left_to_send);
377 lws_client_http_multipart(struct lws *wsi, const char *name,
411 lws_tls_session_is_reused(struct lws *wsi);
Dlws-cgi.h54 struct lws **stdwsi; /**< get fd with lws_get_socket_fd() */
73 lws_cgi(struct lws *wsi, const char * const *exec_array,
83 lws_cgi_write_split_stdout_headers(struct lws *wsi);
91 lws_cgi_kill(struct lws *wsi);
99 LWS_VISIBLE LWS_EXTERN struct lws *
100 lws_cgi_get_stdwsi(struct lws *wsi, enum lws_enum_stdinouterr ch);
/third_party/libwebsockets/lib/tls/
Dprivate-network.h97 lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, size_t len);
99 lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, size_t len);
101 lws_ssl_pending(struct lws *wsi);
103 lws_server_socket_service_ssl(struct lws *new_wsi, lws_sockfd_type accept_fd,
110 lws_ssl_close(struct lws *wsi);
116 __lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi);
118 lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi);
120 lws_ssl_client_bio_create(struct lws *wsi);
123 lws_ssl_client_connect2(struct lws *wsi, char *errbuf, size_t len);
134 lws_tls_server_certs_load(struct lws_vhost *vhost, struct lws *wsi,
[all …]
/third_party/libwebsockets/lib/roles/
Dprivate-lib-roles.h72 void lwsi_set_role(struct lws *wsi, lws_wsi_state_t role);
167 void lwsi_set_state(struct lws *wsi, lws_wsi_state_t lrs);
194 typedef int (*lws_rops_check_upgrades_t)(struct lws *wsi);
209 struct lws *wsi,
212 typedef int (*lws_rops_handle_POLLOUT_t)(struct lws *wsi);
214 typedef int (*lws_rops_perform_user_POLLOUT_t)(struct lws *wsi);
216 typedef int (*lws_rops_callback_on_writable_t)(struct lws *wsi);
218 typedef int (*lws_rops_tx_credit_t)(struct lws *wsi, char peer_to_us, int add);
220 typedef int (*lws_rops_write_role_protocol_t)(struct lws *wsi,
225 typedef struct lws * (*lws_rops_encapsulation_parent_t)(struct lws *wsi);
[all …]
/third_party/libwebsockets/lib/roles/ws/
Dprivate-lib-roles-ws.h85 struct lws *rx_draining_ext_list;
86 struct lws *tx_draining_ext_list;
97 struct lws *rx_draining_ext_list;
98 struct lws *tx_draining_ext_list;
167 lws_ws_handshake_client(struct lws *wsi, unsigned char **buf, size_t len);
174 lws_any_extension_handled(struct lws *wsi, enum lws_extension_callback_reasons r,
178 lws_ext_cb_active(struct lws *wsi, int reason, void *buf, int len);
180 lws_ext_cb_all_exts(struct lws_context *context, struct lws *wsi, int reason,
185 handshake_0405(struct lws_context *context, struct lws *wsi);
187 lws_process_ws_upgrade(struct lws *wsi);
[all …]
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client/
DCMakeLists.txt1 project(lws-minimal-http-client C)
8 set(SAMP lws-minimal-http-client)
50 add_test(NAME http-client-warmcat COMMAND lws-minimal-http-client )
55 add_test(NAME http-client-warmcat-h1 COMMAND lws-minimal-http-client --h1)
62 …add_test(NAME http-client-fi-ctx1 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
67 …# add_test(NAME http-client-fi-pi COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
71 …add_test(NAME http-client-fi-ctx2 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
74 …add_test(NAME http-client-fi-ctx3 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
77 …add_test(NAME http-client-fi-ctx4 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
80 …add_test(NAME http-client-fi-ctx5 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
[all …]
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client-jit-trust/
DCMakeLists.txt1 project(lws-minimal-http-client-jit-trust C)
8 set(SAMP lws-minimal-http-client-jit-trust)
49 add_test(NAME http-client-warmcat COMMAND lws-minimal-http-client )
54 add_test(NAME http-client-warmcat-h1 COMMAND lws-minimal-http-client --h1)
61 …add_test(NAME http-client-fi-ctx1 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
66 …# add_test(NAME http-client-fi-pi COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
70 …add_test(NAME http-client-fi-ctx2 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
73 …add_test(NAME http-client-fi-ctx3 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
76 …add_test(NAME http-client-fi-ctx4 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
79 …add_test(NAME http-client-fi-ctx5 COMMAND lws-minimal-http-client --expected-exit 5 --fault-inject…
[all …]
/third_party/libwebsockets/lib/plat/unix/
Dunix-fds.c30 struct lws *
33 struct lws **p, **done; in wsi_from_fd()
54 sanity_assert_no_wsi_traces(const struct lws_context *context, struct lws *wsi) in sanity_assert_no_wsi_traces()
56 struct lws **p, **done; in sanity_assert_no_wsi_traces()
91 struct lws **p, **done; in sanity_assert_no_sockfd_traces()
124 insert_wsi(const struct lws_context *context, struct lws *wsi) in insert_wsi()
126 struct lws **p, **done; in insert_wsi()
174 struct lws **p, **done; in delete_from_fd()
212 delete_from_fdwsi(const struct lws_context *context, struct lws *wsi) in delete_from_fdwsi()
215 struct lws **p, **done; in delete_from_fdwsi()
[all …]
/third_party/libwebsockets/READMEs/
DREADME.plugin-sshd-base.md6 lws-ssh-base is a protcol plugin for libwebsockets that implements a
50 lws-ssh-base is Free Software, available under libwebsockets' MIT license.
65 lws installs a test keypair in /usr[/local]/share/libwebsockets-test-server
73 "lws-test-sshd" was run under. It accepts the lws ssh test key which is
86 $ ssh -p 2200 -i /usr/local/share/libwebsockets-test-server/lws-ssh-test-keys anyuser@127.0.0.1
89 2) There's also a working example plugin `lws-sshd-demo` that "subclasses" the
90 abstract `lws-ssh-base` plugin to make a protocol which can be used from,
92 the lws-sshd-demo ssh server, the related config is:
100 "lws-ssh-base": {
102 "ops-from": "lws-sshd-demo"
[all …]
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client-multi/
DCMakeLists.txt1 project(lws-minimal-http-client-multi C)
8 set(SAMP lws-minimal-http-client-multi)
53 …add_test(NAME st_hcm_srv COMMAND cmd.exe /c start /b $<TARGET_FILE:lws-minimal-http-server-tls> --…
54 …add_test(NAME ki_hcm_srv COMMAND taskkill /F /IM $<TARGET_FILE_NAME:lws-minimal-http-server-tls> /…
64 hcm_srv ${VALGRIND} --tool=memcheck $<TARGET_FILE:lws-minimal-http-server-tls>
68 hcm_srv ${VALGRIND} $<TARGET_FILE_NAME:lws-minimal-http-server-tls>
82 hcm_srv $<TARGET_FILE:lws-minimal-http-server-tls>
86 hcm_srv $<TARGET_FILE_NAME:lws-minimal-http-server-tls>
118 add_test(NAME http-client-multi COMMAND lws-minimal-http-client-multi
120 add_test(NAME http-client-multi-h1 COMMAND lws-minimal-http-client-multi
[all …]
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-sign/
DCMakeLists.txt1 project(lws-crypto-cose-sign C)
8 set(SAMP lws-crypto-cose-sign)
21 COMMAND lws-crypto-cose-sign -s -k set1.cks --kid 11
26 COMMAND lws-crypto-cose-sign -s -k set1.cks --kid sec384
31 COMMAND lws-crypto-cose-sign -s -k set1.cks --kid sec512
39 COMMAND lws-crypto-cose-sign -k set1.cks
46 COMMAND lws-crypto-cose-sign -k set1.cks
53 COMMAND lws-crypto-cose-sign -k set1.cks --cose-sign
62 COMMAND lws-crypto-cose-sign -s -k rsa-4096.ck
70 COMMAND lws-crypto-cose-sign -k rsa-4096.ck --cose-sign
[all …]
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib-foreign/
DREADME.md1 # lws minimal http server eventlib foreign
6 --uv|Use the libuv event library (lws must have been configured with `-DLWS_WITH_LIBUV=1`)
7 --event|Use the libevent library (lws must have been configured with `-DLWS_WITH_LIBEVENT=1`)
8 --ev|Use the libev event library (lws must have been configured with `-DLWS_WITH_LIBEV=1`)
9 --sd|Use the systemd event library (lws must have been configured with `-DLWS_WITH_SDEVENT=1`)
19 This demonstrates having lws take part in a libuv loop owned by
24 does not need to stop during lws creation or destruction.
28 Then the lws context is created inside the timer callback and runs for 10s...
29 during this period you can visit http://localhost:7681 for normal lws
32 After the 10s are up, the lws context is destroyed inside the foreign loop
[all …]
/third_party/libwebsockets/lib/roles/http/
Dprivate-lib-roles-http.h89 lws_ranges_init(struct lws *wsi, struct lws_range_parsing *rp,
106 struct lws *wsi; /* owner */
160 struct lws *wsi;
171 lws_rewrite_create(struct lws *wsi, hubbub_callback_t cb, const char *from, const char *to);
180 struct lws *ah_wait_list;
220 struct lws *new_wsi_list;
231 struct lws *ah_wait_list;
311 lws_check_basic_auth(struct lws *wsi, const char *basic_auth_login_file, unsigned int auth_mode);
314 lws_unauthorised_basic_auth(struct lws *wsi);
317 lws_read_h1(struct lws *wsi, unsigned char *buf, lws_filepos_t len);
[all …]
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-key/
DCMakeLists.txt1 project(lws-crypto-cose-key C)
8 set(SAMP lws-crypto-cose-key)
19 COMMAND lws-crypto-cose-key --stdin set1.cks )
21 COMMAND lws-crypto-cose-key --kty EC2 --curve P-256 --kid ctest-256 --stdout ctest-ec-256.key)
23 COMMAND lws-crypto-cose-key --kty EC2 --curve P-384 --kid ctest-384 --stdout ctest-ec-384.key)
25 COMMAND lws-crypto-cose-key --kty EC2 --curve P-521 --kid ctest-512 --stdout ctest-ec-512.key)
27 COMMAND lws-crypto-cose-key --kty SYMMETRIC --bits 256 --stdout ctest-sym-256.key)
29 COMMAND lws-crypto-cose-key --kty RSA --bits 2048 --stdout ctest-rsa-2048.key)
31 COMMAND lws-crypto-cose-key --stdin ctest-rsa-2048.key)
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-smp/
DREADME.md1 # lws minimal http server with multithreaded service
3 Lws supports multithreaded service... build lws with `-DLWS_MAP_SMP=<max number of threads>`, the
4 default is 1. If nonzero, some extra pthreads locking is built into lws and it supports multiple
7 ![lws-smp-overview](/doc-assets/lws-smp-ov.png)
16 ![lws-smp-example](/doc-assets/lws-smp-example.png)
27 $ ./lws-minimal-http-server-smp

12345678910>>...25