Home
last modified time | relevance | path

Searched refs:lws (Results 1 - 25 of 257) sorted by relevance

1234567891011

/third_party/libwebsockets/include/
H A Dlibwebsockets.h185 /* this is only set when we're building lws itself shared */
313 * Helpers for pthread mutex in user code... if lws is built for
361 #include <libwebsockets/lws-logs.h>
371 struct lws;
410 #include <libwebsockets/lws-freertos.h>
439 #include <libwebsockets/lws-optee.h>
582 struct lws;
584 #include <libwebsockets/lws-dll2.h>
585 #include <libwebsockets/lws-map.h>
587 #include <libwebsockets/lws
[all...]
/third_party/libwebsockets/lib/core-net/
H A Dprivate-lib-core-net.h37 struct lws *parent_wsi;
38 struct lws *child_list;
39 struct lws *sibling_list;
66 /* null-terminated array of pointers to roles lws built with */
231 void *opaque_user_data; /* not allocated or freed by lws */
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_ws
619 struct lws { global() struct
[all...]
H A 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 *ws in lws_callback_all_protocol()
[all...]
H A 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 *ws
[all...]
H A Dadopt.c47 struct lws *
50 struct lws *new_wsi; in lws_create_new_server_wsi()
120 static struct lws *
122 const char *vh_prot_name, struct lws *parent, in __lws_adopt_descriptor_vhost1()
127 struct lws *new_wsi; in __lws_adopt_descriptor_vhost1()
249 lws_adopt_ss_server_accept(struct lws *new_wsi) in lws_adopt_ss_server_accept()
352 static struct lws *
353 lws_adopt_descriptor_vhost2(struct lws *new_wsi, lws_adoption_type type, in lws_adopt_descriptor_vhost2()
479 struct lws *
482 struct lws *paren in lws_adopt_descriptor_vhost()
[all...]
H A Dpollfd.c28 _lws_change_pollfd(struct lws *wsi, int _and, int _or, struct lws_pollargs *pa) in _lws_change_pollfd()
48 if (((volatile struct lws *)wsi)->handling_pollout && in _lws_change_pollfd()
58 ((volatile struct lws *)wsi)->leave_pollout_active = 1; in _lws_change_pollfd()
235 struct lws *wsi = lws_container_of(d, struct lws, in lws_accept_modulation()
256 struct lws *wsi = wsi_from_fd(pt->context, pt->fds[n].fd); in __dump_fds()
268 __insert_wsi_socket_into_fds(struct lws_context *context, struct lws *wsi) in __insert_wsi_socket_into_fds()
358 __remove_wsi_socket_from_fds(struct lws *wsi) in __remove_wsi_socket_from_fds()
365 struct lws *end_wsi; in __remove_wsi_socket_from_fds()
473 __lws_change_pollfd(struct lws *ws
[all...]
H A Dservice.c42 * should see you're illegally calling an lws api from another thread. in lws_service_assert_loop_thread()
49 lws_callback_as_writeable(struct lws *wsi) in lws_callback_as_writeable()
62 lws_handle_POLLOUT_event(struct lws *wsi, struct lws_pollfd *pollfd) in lws_handle_POLLOUT_event()
64 volatile struct lws *vwsi = (volatile struct lws *)wsi; in lws_handle_POLLOUT_event()
217 vwsi = (volatile struct lws *)wsi; in lws_handle_POLLOUT_event()
248 lws_rxflow_cache(struct lws *wsi, unsigned char *buf, size_t n, size_t len) in lws_rxflow_cache()
362 struct lws *wsi = lws_container_of(d, struct lws, dll_buflist); in lws_service_adjust_timeout()
384 lws_buflist_aware_read(struct lws_context_per_thread *pt, struct lws *ws
[all...]
/third_party/libwebsockets/lib/roles/h2/
H A Dprivate-lib-roles-h2.h141 lws_h2_state(struct lws *wsi, enum lws_h2_states s);
159 * lws general parsimonious header strategy is only store values from known
162 * That means if we can't map the peer header name to one that lws knows, we
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 *ws
[all...]
/third_party/libwebsockets/lib/tls/
H A 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 *ws
[all...]
H A Dtls-network.c40 struct lws *wsi = lws_container_of(p, struct lws, in lws_tls_fake_POLLIN_for_buffered()
57 __lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi) in __lws_ssl_remove_wsi_from_buffered_list()
63 lws_ssl_remove_wsi_from_buffered_list(struct lws *wsi) in lws_ssl_remove_wsi_from_buffered_list()
177 struct lws wsi; in lws_tls_cert_updated()
213 struct lws *wsi = lws_container_of(d, struct lws, in lws_gate_accepts()
/third_party/libwebsockets/lib/roles/
H A Dprivate-lib-roles.h47 * of lws internals. Even for lws internals, if you add stuff here, please keep
72 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 *ws
[all...]
/third_party/libwebsockets/include/libwebsockets/
H A 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);
169 * In lws the client http headers are temporarily stored in a pool, only for the
193 * As a convenience, lws has an api that will find the fragment with a
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 *ws
[all...]
H A 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...]
H A Dlws-misc.h176 * This only exists when lws was built in debug mode
361 * \param context: the lws context
375 * Spawn lws as a background process, taking care of various things
380 * lws_get_library_version(): return string describing the version of lws
389 * \param wsi: lws connection
394 lws_wsi_user(struct lws *wsi);
398 * \param wsi: lws connection
403 lws_wsi_tsi(struct lws *wsi);
407 * \param wsi: lws connection
410 * By default lws allocate
[all...]
H A Dlws-adopt.h31 * When using lws own event loop, these are not needed.
39 * \param context: lws context
48 LWS_VISIBLE LWS_EXTERN struct lws *
54 * \param vh: lws vhost
63 LWS_VISIBLE LWS_EXTERN struct lws *
128 * \param vh: lws vhost
132 * \param parent: NULL or struct lws to attach new_wsi to as a child
143 LWS_VISIBLE LWS_EXTERN struct lws *
146 struct lws *parent);
153 struct lws *paren
[all...]
H A Dlws-client.h66 * Normally lws balances reads and writes on all connections, so both
97 /**< By default lws rejects https redirecting to http. Set this
109 /**< lws context to create connection in */
134 * you a connected socket that lws itself will leave alone once
136 struct lws *parent_wsi;
147 struct lws **pwsi;
169 /**< NULL: allow lws default ALPN list, from vhost if present or from
170 * list of roles built into lws
181 /**< This data has no meaning to lws but is applied to the client wsi
256 LWS_VISIBLE LWS_EXTERN struct lws *
[all...]
H A Dlws-cgi.h32 * lws implementation already does the right thing.
54 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);
H A Dlws-writeable.h29 * lws can only write data on a connection when it is able to accept more
35 * When lws cannot complete your send at the time, it will buffer the data
57 lws_callback_on_writable(struct lws *wsi);
169 lws_callback_vhost_protocols(struct lws *wsi, int reason, void *in, size_t len)
190 lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
201 lws_get_socket_fd(struct lws *wsi);
220 * lws manages accounting for send window updates and payload writes
225 lws_get_peer_write_allowance(struct lws *wsi);
244 lws_wsi_tx_credit(struct lws *wsi, char peer_to_us, int add);
H A Dlws-threadpool.h77 struct lws *wsi; /**< either wsi or ss must be set */
87 void (*cleanup)(struct lws *wsi, void *user);
187 lws_threadpool_dequeue(struct lws *wsi) LWS_WARN_DEPRECATED;
215 lws_threadpool_task_status_wsi(struct lws *wsi,
234 * If the lws service context determined that the task must be aborted, it
250 * This only does anything on lws builds with CMAKE_BUILD_TYPE=DEBUG, otherwise
260 lws_threadpool_get_task_wsi(struct lws *wsi);
269 lws_threadpool_foreach_task_wsi(struct lws *wsi, void *user,
/third_party/libwebsockets/lib/roles/ws/
H A 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 *ws
[all...]
/third_party/libwebsockets/lib/plat/unix/
H A 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()
75 assert(0); /* this wsi is still mentioned inside lws */ 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 *ws
[all...]
/third_party/libwebsockets/lib/roles/http/
H A 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 *ws
[all...]
/third_party/libwebsockets/plugins/ssh-base/include/
H A Dlws-plugin-ssh.h113 /*! \defgroup ssh-base plugin: lws-ssh-base
116 * ##Plugin lws-ssh-base
122 * - "lws-ssh-base" - the ssh serving part
124 * - "lws-telnetd-base" - the telnet serving part
151 int (*channel_create)(struct lws *wsi, void **priv);
167 * \param wsi: struct lws * for the ssh connection
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);
249 * \param wsi: the struct lws th
[all...]
/third_party/libwebsockets/lib/plat/optee/
H A Dnetwork.c36 lws_plat_pipe_create(struct lws *wsi) in lws_plat_pipe_create()
42 lws_plat_pipe_signal(struct lws *wsi) in lws_plat_pipe_signal()
48 lws_plat_pipe_close(struct lws *wsi) in lws_plat_pipe_close()
53 lws_send_pipe_choked(struct lws *wsi) in lws_send_pipe_choked()
55 struct lws *wsi_eff; in lws_send_pipe_choked()
110 struct lws _lws; in _lws_plat_service_tsi()
222 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi) in lws_plat_insert_socket_into_fds()
231 struct lws *wsi, int m) in lws_plat_delete_socket_from_fds()
240 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
/third_party/libwebsockets/lib/roles/mqtt/
H A Dprivate-lib-roles-mqtt.h361 struct lws *wsi; /**< so sul can use lws_container_of */
417 _lws_mqtt_rx_parser(struct lws *wsi, lws_mqtt_parser_t *par,
421 lws_mqtt_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd,
422 struct lws *wsi_conn);
426 struct lws *wsi);
428 struct lws *
429 lws_mqtt_client_send_connect(struct lws *wsi);
431 struct lws *
432 lws_mqtt_client_send_disconnect(struct lws *wsi);
439 struct lws *
[all...]

Completed in 24 milliseconds

1234567891011