Home
last modified time | relevance | path

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

12345678910>>...20

/external/libwebsockets/lib/core-net/
Dprivate-lib-core-net.h37 struct lws *parent_wsi;
38 struct lws *child_list;
39 struct lws *sibling_list;
328 struct lws *wsi;
341 lws_aysnc_dns_completed(struct lws *wsi, void *sa, size_t salen,
345 lws_async_dns_cancel(struct lws *wsi);
400 struct lws *fake_wsi; /* used for callbacks where there's no wsi */
418 struct lws *pipe_wsi;
549 struct lws *lserv_wsi;
612 #define mux_to_wsi(_m) lws_container_of(_m, struct lws, mux)
[all …]
Dwsi.c28 void lwsi_set_role(struct lws *wsi, lws_wsi_state_t role) in lwsi_set_role()
36 void lwsi_set_state(struct lws *wsi, lws_wsi_state_t lrs) in lwsi_set_state()
47 lws_vhost_bind_wsi(struct lws_vhost *vh, struct lws *wsi) in lws_vhost_bind_wsi()
63 lws_vhost_unbind_wsi(struct lws *wsi) in lws_vhost_unbind_wsi()
91 struct lws *
92 lws_get_network_wsi(struct lws *wsi) in lws_get_network_wsi()
131 struct lws *wsi; in lws_callback_all_protocol()
156 struct lws *wsi; in lws_callback_all_protocol_vhost_args()
182 lws_callback_vhost_protocols(struct lws *wsi, int reason, void *in, int len) in lws_callback_vhost_protocols()
198 struct lws *wsi = lws_zalloc(sizeof(*wsi), "fake wsi"); in lws_callback_vhost_protocols_vhost()
[all …]
Dadopt.c47 struct lws *
50 struct lws *new_wsi; in lws_create_new_server_wsi()
61 new_wsi = lws_zalloc(sizeof(struct lws), "new server wsi"); in lws_create_new_server_wsi()
118 static struct lws *
120 const char *vh_prot_name, struct lws *parent, in lws_adopt_descriptor_vhost1()
125 struct lws *new_wsi; in lws_adopt_descriptor_vhost1()
196 static struct lws *
197 lws_adopt_descriptor_vhost2(struct lws *new_wsi, lws_adoption_type type, in lws_adopt_descriptor_vhost2()
311 struct lws *
314 struct lws *parent) in lws_adopt_descriptor_vhost()
[all …]
Dwsi-timeout.c28 __lws_wsi_remove_from_sul(struct lws *wsi) in __lws_wsi_remove_from_sul()
49 struct lws *wsi = lws_container_of(sul, struct lws, sul_hrtimer); in lws_sul_hrtimer_cb()
59 __lws_set_timer_usecs(struct lws *wsi, lws_usec_t us) in __lws_set_timer_usecs()
68 lws_set_timer_usecs(struct lws *wsi, lws_usec_t usecs) in lws_set_timer_usecs()
80 struct lws *wsi = lws_container_of(sul, struct lws, sul_timeout); in lws_sul_wsitimeout_cb()
124 __lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in __lws_set_timeout()
138 lws_set_timeout(struct lws *wsi, enum pending_timeout reason, int secs) in lws_set_timeout()
169 lws_set_timeout_us(struct lws *wsi, enum pending_timeout reason, lws_usec_t us) in lws_set_timeout_us()
282 struct lws *wsi = lws_container_of(sul, struct lws, sul_validity); in lws_validity_cb()
322 _lws_validity_confirmed_role(struct lws *wsi) in _lws_validity_confirmed_role()
[all …]
/external/libwebsockets/lib/roles/h2/
Dprivate-lib-roles-h2.h141 lws_h2_state(struct lws *wsi, enum lws_h2_states s);
258 struct lws *swsi;
323 lws_h2_rst_stream(struct lws *wsi, uint32_t err, const char *reason);
324 struct lws * lws_h2_get_nth_child(struct lws *wsi, int n);
325 LWS_EXTERN void lws_h2_init(struct lws *wsi);
327 lws_h2_settings(struct lws *nwsi, struct http2_settings *settings,
330 lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,
333 lws_h2_do_pps_send(struct lws *wsi);
335 lws_h2_frame_write(struct lws *wsi, int type, int flags, unsigned int sid,
337 LWS_EXTERN struct lws *
[all …]
/external/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);
184 int (*check_upgrades)(struct lws *wsi);
197 int (*handle_POLLIN)(struct lws_context_per_thread *pt, struct lws *wsi,
200 int (*handle_POLLOUT)(struct lws *wsi);
202 int (*perform_user_POLLOUT)(struct lws *wsi);
204 int (*callback_on_writable)(struct lws *wsi);
206 int (*tx_credit)(struct lws *wsi, char peer_to_us, int add);
208 int (*write_role_protocol)(struct lws *wsi, unsigned char *buf,
212 struct lws * (*encapsulation_parent)(struct lws *wsi);
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_get_linear_ids.cpp56 size_t lws[3], gws[3], gwo[3]; in test_get_linear_ids() local
82 error = get_max_common_work_group_size(context, kernel, gws[0], lws); in test_get_linear_ids()
89 error = get_max_common_2D_work_group_size(context, kernel, gws, lws); in test_get_linear_ids()
98 error = get_max_common_3D_work_group_size(context, kernel, gws, lws); in test_get_linear_ids()
107 log_info(" testing offset=%u global=%u local=%u...\n", gwo[0], gws[0], lws[0]); in test_get_linear_ids()
111 gwo[0], gwo[1], gws[0], gws[1], lws[0], lws[1]); in test_get_linear_ids()
115 gwo[0], gwo[1], gwo[2], gws[0], gws[1], gws[2], lws[0], lws[1], lws[2]); in test_get_linear_ids()
128 error = clEnqueueNDRangeKernel(queue, kernel, dims, gwo, gws, lws, 0, NULL, NULL); in test_get_linear_ids()
146 … log_error("get_local_linear_id() failed at (%d, %d)\n", i % (int)lws[0], i / (int)lws[0]); in test_get_linear_ids()
160 i % (int)lws[0], j % (int)lws[1], in test_get_linear_ids()
[all …]
/external/OpenCL-CTS/test_conformance/subgroups/
Dtest_subgroup_ballot.cpp30 int lws = test_params.local_workgroup_size; in gen() local
32 int non_uniform_size = gws % lws; in gen()
45 int lws = test_params.local_workgroup_size; in chk() local
47 int sb_number = (lws + sbs - 1) / sbs; in chk()
50 int non_uniform_size = gws % lws; in chk()
51 int wg_number = gws / lws; in chk()
59 set_last_workgroup_params(non_uniform_size, sb_number, sbs, lws, in chk()
63 for (wi_id = 0; wi_id < lws; ++wi_id) in chk()
78 current_sbs = wg_offset + sbs > lws ? lws - wg_offset : sbs; in chk()
96 y += lws; in chk()
[all …]
/external/libwebsockets/
Dlibwebsockets.dox105 include/libwebsockets/lws-adopt.h \
106 include/libwebsockets/lws-async-dns.h \
107 include/libwebsockets/lws-callbacks.h \
108 include/libwebsockets/lws-cgi.h \
109 include/libwebsockets/lws-client.h \
110 include/libwebsockets/lws-context-vhost.h \
111 include/libwebsockets/lws-dbus.h \
112 include/libwebsockets/lws-detailed-latency.h \
113 include/libwebsockets/lws-diskcache.h \
114 include/libwebsockets/lws-dsh.h \
[all …]
/external/libwebsockets/lib/tls/
Dprivate-network.h84 lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, int len);
86 lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, int len);
88 lws_ssl_pending(struct lws *wsi);
90 lws_server_socket_service_ssl(struct lws *new_wsi, lws_sockfd_type accept_fd);
92 lws_ssl_close(struct lws *wsi);
98 __lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi);
100 lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi);
102 lws_ssl_client_bio_create(struct lws *wsi);
104 lws_ssl_client_connect1(struct lws *wsi);
106 lws_ssl_client_connect2(struct lws *wsi, char *errbuf, int len);
[all …]
/external/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);
402 lws_hdr_total_length(struct lws *wsi, enum lws_token_indexes h);
414 lws_hdr_fragment_length(struct lws *wsi, enum lws_token_indexes h,
432 lws_hdr_copy(struct lws *wsi, char *dest, int len, enum lws_token_indexes h);
452 lws_hdr_copy_fragment(struct lws *wsi, char *dest, int len,
472 lws_hdr_custom_length(struct lws *wsi, const char *name, int nlen);
493 lws_hdr_custom_copy(struct lws *wsi, char *dst, int len, const char *name,
507 lws_get_urlarg_by_name(struct lws *wsi, const char *name, char *buf, int len);
544 lws_add_http_header_status(struct lws *wsi,
[all …]
Dlws-misc.h254 lws_wsi_user(struct lws *wsi);
267 lws_set_wsi_user(struct lws *wsi, void *user);
352 lws_get_context(const struct lws *wsi);
385 LWS_VISIBLE LWS_EXTERN struct lws * LWS_WARN_UNUSED_RESULT
386 lws_get_parent(const struct lws *wsi);
394 LWS_VISIBLE LWS_EXTERN struct lws * LWS_WARN_UNUSED_RESULT
395 lws_get_child(const struct lws *wsi);
420 lws_get_udp(const struct lws *wsi);
423 lws_get_opaque_parent_data(const struct lws *wsi);
426 lws_set_opaque_parent_data(struct lws *wsi, void *data);
[all …]
Dlws-adopt.h48 LWS_VISIBLE LWS_EXTERN struct lws *
63 LWS_VISIBLE LWS_EXTERN struct lws *
111 LWS_VISIBLE LWS_EXTERN struct lws *
114 struct lws *parent);
121 struct lws *parent; /**< NULL or struct lws to attach new_wsi to as a child */
147 LWS_VISIBLE LWS_EXTERN struct lws *
173 LWS_VISIBLE LWS_EXTERN struct lws *
198 LWS_VISIBLE LWS_EXTERN struct lws *
224 LWS_VISIBLE LWS_EXTERN struct lws *
227 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-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);
Dlws-client.h94 struct lws *parent_wsi;
105 struct lws **pwsi;
184 LWS_VISIBLE LWS_EXTERN struct lws *
236 lws_http_client_read(struct lws *wsi, char **buf, int *len);
250 lws_http_client_http_response(struct lws *wsi);
287 lws_client_http_body_pending(struct lws *wsi, int something_left_to_send);
304 lws_client_http_multipart(struct lws *wsi, const char *name,
/external/libwebsockets/lib/roles/ws/
Dprivate-lib-roles-ws.h85 struct lws *rx_draining_ext_list;
86 struct lws *tx_draining_ext_list;
95 struct lws *rx_draining_ext_list;
96 struct lws *tx_draining_ext_list;
164 lws_ws_handshake_client(struct lws *wsi, unsigned char **buf, size_t len);
171 lws_any_extension_handled(struct lws *wsi, enum lws_extension_callback_reasons r,
175 lws_ext_cb_active(struct lws *wsi, int reason, void *buf, int len);
177 lws_ext_cb_all_exts(struct lws_context *context, struct lws *wsi, int reason,
182 handshake_0405(struct lws_context *context, struct lws *wsi);
184 lws_process_ws_upgrade(struct lws *wsi);
[all …]
/external/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 …]
/external/libwebsockets/lib/roles/http/
Dprivate-lib-roles-http.h89 lws_ranges_init(struct lws *wsi, struct lws_range_parsing *rp,
104 struct lws *wsi; /* owner */
158 struct lws *wsi;
169 lws_rewrite_create(struct lws *wsi, hubbub_callback_t cb, const char *from, const char *to);
178 struct lws *ah_wait_list;
218 struct lws *new_wsi_list;
229 struct lws *ah_wait_list;
306 lws_check_basic_auth(struct lws *wsi, const char *basic_auth_login_file, unsigned int auth_mode);
309 lws_unauthorised_basic_auth(struct lws *wsi);
312 lws_read_h1(struct lws *wsi, unsigned char *buf, lws_filepos_t len);
[all …]
/external/libwebsockets/lib/event-libs/
Dprivate-lib-event-libs.h42 int (*init_vhost_listen_wsi)(struct lws *wsi);
46 int (*wsi_logical_close)(struct lws *wsi);
48 int (*check_client_connect_ok)(struct lws *wsi);
50 void (*close_handle_manually)(struct lws *wsi);
52 int (*sock_accept)(struct lws *wsi);
54 void (*io)(struct lws *wsi, int flags);
60 void (*destroy_wsi)(struct lws *wsi);
/external/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`)
18 This demonstrates having lws take part in a libuv loop owned by
23 does not need to stop during lws creation or destruction.
27 Then the lws context is created inside the timer callback and runs for 10s...
28 during this period you can visit http://localhost:7681 for normal lws
31 After the 10s are up, the lws context is destroyed inside the foreign loop
44 $ ./lws-minimal-http-server-eventlib-foreign
[all …]
/external/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
/external/libwebsockets/plugins/ssh-base/include/
Dlws-plugin-ssh.h151 int (*channel_create)(struct lws *wsi, void **priv);
173 int (*rx)(void *priv, struct lws *wsi, const uint8_t *buf, uint32_t len);
220 size_t (*get_server_key)(struct lws *wsi, uint8_t *buf, size_t len);
232 size_t (*set_server_key)(struct lws *wsi, uint8_t *buf, size_t len);
256 …int (*exec)(void *priv, struct lws *wsi, const char *command, lws_ssh_finish_exec finish, void *fi…
269 int (*shell)(void *priv, struct lws *wsi, lws_ssh_finish_exec finish, void *finish_handle);
290 int (*child_process_io)(void *priv, struct lws *wsi,
301 int (*child_process_terminated)(void *priv, struct lws *wsi);
/external/libwebsockets/lib/plat/optee/
Dnetwork.c29 lws_plat_pipe_create(struct lws *wsi) in lws_plat_pipe_create()
35 lws_plat_pipe_signal(struct lws *wsi) in lws_plat_pipe_signal()
41 lws_plat_pipe_close(struct lws *wsi) in lws_plat_pipe_close()
46 lws_send_pipe_choked(struct lws *wsi) in lws_send_pipe_choked()
48 struct lws *wsi_eff; in lws_send_pipe_choked()
103 struct lws _lws; in _lws_plat_service_tsi()
213 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi) in lws_plat_insert_socket_into_fds()
222 struct lws *wsi, int m) in lws_plat_delete_socket_from_fds()
231 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
/external/libwebsockets/minimal-examples/api-tests/api-test-gencrypto/
DCMakeLists.txt1 project(lws-api-test-gencrypto)
5 set(SAMP lws-api-test-gencrypto)
6 set(SRCS main.c lws-genaes.c lws-genec.c)
8 # If we are being built as part of lws, confirm current build config supports
11 # If we are being built externally, confirm installed lws was configured to
34 message("${SAMP}: skipping as lws being built without ${reqconfig}")
36 message("${SAMP}: skipping as lws built with ${reqconfig}")
57 message(FATAL_ERROR "This project requires lws must have been configured with ${reqconfig}")

12345678910>>...20