Home
last modified time | relevance | path

Searched defs:wsi (Results 1 – 25 of 247) sorted by relevance

12345678910

/third_party/libwebsockets/lib/core-net/
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() local
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()
131 lws_get_network_wsi(struct lws *wsi) in lws_get_network_wsi()
170 struct lws *wsi; in lws_callback_all_protocol() local
189 lws_evlib_wsi_to_evlib_pt(struct lws *wsi) in lws_evlib_wsi_to_evlib_pt()
212 struct lws *wsi; in lws_callback_all_protocol_vhost_args() local
[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() local
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() local
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() local
249 _lws_validity_confirmed_role(struct lws *wsi) in _lws_validity_confirmed_role()
[all …]
Dpollfd.c28 _lws_change_pollfd(struct lws *wsi, int _and, int _or, struct lws_pollargs *pa) in _lws_change_pollfd()
235 struct lws *wsi = lws_container_of(d, struct lws, in lws_accept_modulation() local
256 struct lws *wsi = wsi_from_fd(pt->context, pt->fds[n].fd); in __dump_fds() local
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()
473 __lws_change_pollfd(struct lws *wsi, int _and, int _or) in __lws_change_pollfd()
507 lws_change_pollfd(struct lws *wsi, int _and, int _or) in lws_change_pollfd()
522 lws_callback_on_writable(struct lws *wsi) in lws_callback_on_writable()
563 lws_same_vh_protocol_insert(struct lws *wsi, int n) in lws_same_vh_protocol_insert()
579 __lws_same_vh_protocol_remove(struct lws *wsi) in __lws_same_vh_protocol_remove()
[all …]
Dclose.c40 __lws_reset_wsi(struct lws *wsi) in __lws_reset_wsi()
206 __lws_free_wsi(struct lws *wsi) in __lws_free_wsi()
272 lws_remove_child_from_any_parent(struct lws *wsi) in lws_remove_child_from_any_parent()
306 lws_inform_client_conn_fail(struct lws *wsi, void *arg, size_t len) in lws_inform_client_conn_fail()
326 lws_addrinfo_clean(struct lws *wsi) in lws_addrinfo_clean()
346 __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, in __lws_close_free_wsi()
877 __lws_close_free_wsi_final(struct lws *wsi) in __lws_close_free_wsi_final()
1008 lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *caller) in lws_close_free_wsi()
Dservice.c49 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()
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() local
384 lws_buflist_aware_read(struct lws_context_per_thread *pt, struct lws *wsi, in lws_buflist_aware_read()
472 lws_buflist_aware_finished_consuming(struct lws *wsi, struct lws_tokens *ebuf, in lws_buflist_aware_finished_consuming()
533 struct lws *wsi = lws_container_of(d, struct lws, dll_buflist); in lws_service_do_ripe_rxflow() local
586 struct lws *wsi = lws_container_of(d, struct lws, dll_buflist); in lws_service_flag_pending() local
610 struct lws *wsi = lws_container_of(p, struct lws, in lws_service_flag_pending() local
642 struct lws *wsi; in lws_service_fd_tsi() local
Doutput.c31 lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len) in lws_issue_raw()
214 lws_write(struct lws *wsi, unsigned char *buf, size_t len, in lws_write()
247 lws_ssl_capable_read_no_ssl(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_read_no_ssl()
308 lws_ssl_capable_write_no_ssl(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_write_no_ssl()
377 lws_ssl_pending_no_ssl(struct lws *wsi) in lws_ssl_pending_no_ssl()
/third_party/libwebsockets/lib/roles/ws/
Dops-ws.c35 lws_ws_rx_sm(struct lws *wsi, char already_processed, unsigned char c) in lws_ws_rx_sm()
752 lws_remaining_packet_payload(struct lws *wsi) in lws_remaining_packet_payload()
757 int lws_frame_is_binary(struct lws *wsi) in lws_frame_is_binary()
763 lws_add_wsi_to_draining_ext_list(struct lws *wsi) in lws_add_wsi_to_draining_ext_list()
780 lws_remove_wsi_from_draining_ext_list(struct lws *wsi) in lws_remove_wsi_from_draining_ext_list()
807 lws_0405_frame_mask_generate(struct lws *wsi) in lws_0405_frame_mask_generate()
826 lws_server_init_wsi_for_ws(struct lws *wsi) in lws_server_init_wsi_for_ws()
871 lws_is_final_fragment(struct lws *wsi) in lws_is_final_fragment()
885 lws_is_first_fragment(struct lws *wsi) in lws_is_first_fragment()
891 lws_get_reserved_bits(struct lws *wsi) in lws_get_reserved_bits()
[all …]
/third_party/libwebsockets/lib/roles/h2/
Dhttp2.c134 void lws_h2_init(struct lws *wsi) in lws_h2_init()
141 lws_h2_state(struct lws *wsi, enum lws_h2_states s) in lws_h2_state()
154 lws_h2_update_peer_txcredit(struct lws *wsi, unsigned int sid, int bump) in lws_h2_update_peer_txcredit()
198 lws_h2_get_peer_txcredit_estimate(struct lws *wsi) in lws_h2_get_peer_txcredit_estimate()
205 lws_h2_update_peer_txcredit_thresh(struct lws *wsi, unsigned int sid, int threshold, int bump) in lws_h2_update_peer_txcredit_thresh()
223 struct lws *wsi; in __lws_wsi_server_new() local
326 lws_wsi_h2_adopt(struct lws *parent_wsi, struct lws *wsi) in lws_wsi_h2_adopt()
389 lws_h2_issue_preface(struct lws *wsi) in lws_h2_issue_preface()
429 lws_pps_schedule(struct lws *wsi, struct lws_h2_protocol_send *pps) in lws_pps_schedule()
442 lws_h2_goaway(struct lws *wsi, uint32_t err, const char *reason) in lws_h2_goaway()
[all …]
Dops-h2.c98 rops_handle_POLLIN_h2(struct lws_context_per_thread *pt, struct lws *wsi, in rops_handle_POLLIN_h2()
363 int rops_handle_POLLOUT_h2(struct lws *wsi) in rops_handle_POLLOUT_h2()
407 rops_write_role_protocol_h2(struct lws *wsi, unsigned char *buf, size_t len, in rops_write_role_protocol_h2()
523 rops_check_upgrades_h2(struct lws *wsi) in rops_check_upgrades_h2()
605 rops_tx_credit_h2(struct lws *wsi, char peer_to_us, int add) in rops_tx_credit_h2()
641 rops_destroy_role_h2(struct lws *wsi) in rops_destroy_role_h2()
678 rops_close_kill_connection_h2(struct lws *wsi, enum lws_close_status reason) in rops_close_kill_connection_h2()
746 rops_callback_on_writable_h2(struct lws *wsi) in rops_callback_on_writable_h2()
797 lws_h2_bind_for_post_before_action(struct lws *wsi) in lws_h2_bind_for_post_before_action()
923 rops_perform_user_POLLOUT_h2(struct lws *wsi) in rops_perform_user_POLLOUT_h2()
[all …]
Dhpack.c206 static int lws_frag_start(struct lws *wsi, int hdr_token_idx) in lws_frag_start()
273 static int lws_frag_append(struct lws *wsi, unsigned char c) in lws_frag_append()
283 static int lws_frag_end(struct lws *wsi) in lws_frag_end()
297 lws_hdr_extant(struct lws *wsi, enum lws_token_indexes h) in lws_hdr_extant()
312 static void lws_dump_header(struct lws *wsi, int hdr) in lws_dump_header()
359 lws_token_from_index(struct lws *wsi, int index, const char **arg, int *len, in lws_token_from_index()
421 lws_h2_dynamic_table_dump(struct lws *wsi) in lws_h2_dynamic_table_dump()
486 lws_dynamic_token_insert(struct lws *wsi, int hdr_len, in lws_dynamic_token_insert()
568 lws_hpack_dynamic_size(struct lws *wsi, int size) in lws_hpack_dynamic_size()
682 lws_hpack_destroy_dynamic_header(struct lws *wsi) in lws_hpack_destroy_dynamic_header()
[all …]
/third_party/libwebsockets/lib/roles/http/
Dparsers.c109 __lws_header_table_reset(struct lws *wsi, int autoservice) in __lws_header_table_reset()
149 lws_header_table_reset(struct lws *wsi, int autoservice) in lws_header_table_reset()
161 _lws_header_ensure_we_are_on_waiting_list(struct lws *wsi) in _lws_header_ensure_we_are_on_waiting_list()
184 __lws_remove_from_ah_waiting_list(struct lws *wsi) in __lws_remove_from_ah_waiting_list()
207 lws_header_table_attach(struct lws *wsi, int autoservice) in lws_header_table_attach()
306 int __lws_header_table_detach(struct lws *wsi, int autoservice) in __lws_header_table_detach()
445 int lws_header_table_detach(struct lws *wsi, int autoservice) in lws_header_table_detach()
459 lws_hdr_fragment_length(struct lws *wsi, enum lws_token_indexes h, int frag_idx) in lws_hdr_fragment_length()
478 int lws_hdr_total_length(struct lws *wsi, enum lws_token_indexes h) in lws_hdr_total_length()
501 int lws_hdr_copy_fragment(struct lws *wsi, char *dst, int len, in lws_hdr_copy_fragment()
[all …]
Dheader.c56 lws_wsi_is_h2(struct lws *wsi) in lws_wsi_is_h2()
69 lws_add_http_header_by_name(struct lws *wsi, const unsigned char *name, in lws_add_http_header_by_name()
99 int lws_finalize_http_header(struct lws *wsi, unsigned char **p, in lws_finalize_http_header()
117 lws_finalize_write_http_header(struct lws *wsi, unsigned char *start, in lws_finalize_write_http_header()
136 lws_add_http_header_by_token(struct lws *wsi, enum lws_token_indexes token, in lws_add_http_header_by_token()
154 lws_add_http_header_content_length(struct lws *wsi, in lws_add_http_header_content_length()
177 lws_add_http_common_headers(struct lws *wsi, unsigned int code, in lws_add_http_common_headers()
305 lws_add_http_header_status(struct lws *wsi, unsigned int _code, in lws_add_http_header_status()
410 lws_return_http_status(struct lws *wsi, unsigned int code, in lws_return_http_status()
524 lws_http_redirect(struct lws *wsi, int code, const unsigned char *loc, int len, in lws_http_redirect()
[all …]
/third_party/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c28 rops_handle_POLLIN_mqtt(struct lws_context_per_thread *pt, struct lws *wsi, in rops_handle_POLLIN_mqtt()
229 rops_client_bind_mqtt(struct lws *wsi, const struct lws_client_connect_info *i) in rops_client_bind_mqtt()
276 rops_handle_POLLOUT_mqtt(struct lws *wsi) in rops_handle_POLLOUT_mqtt()
432 rops_issue_keepalive_mqtt(struct lws *wsi, int isvalid) in rops_issue_keepalive_mqtt()
450 rops_close_role_mqtt(struct lws_context_per_thread *pt, struct lws *wsi) in rops_close_role_mqtt()
503 rops_callback_on_writable_mqtt(struct lws *wsi) in rops_callback_on_writable_mqtt()
559 rops_close_kill_connection_mqtt(struct lws *wsi, enum lws_close_status reason) in rops_close_kill_connection_mqtt()
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-ssl.c45 lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_read()
154 lws_ssl_pending(struct lws *wsi) in lws_ssl_pending()
163 lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_write()
223 struct lws *wsi; in lws_ssl_info_callback() local
250 lws_ssl_close(struct lws *wsi) in lws_ssl_close()
305 lws_tls_ctx_from_wsi(struct lws *wsi) in lws_tls_ctx_from_wsi()
314 __lws_tls_shutdown(struct lws *wsi) in __lws_tls_shutdown()
/third_party/libwebsockets/lib/roles/h1/
Dops-h1.c42 lws_read_h1(struct lws *wsi, unsigned char *buf, lws_filepos_t len) in lws_read_h1()
329 lws_h1_server_socket_service(struct lws *wsi, struct lws_pollfd *pollfd) in lws_h1_server_socket_service()
561 rops_handle_POLLIN_h1(struct lws_context_per_thread *pt, struct lws *wsi, in rops_handle_POLLIN_h1()
711 rops_handle_POLLOUT_h1(struct lws *wsi) in rops_handle_POLLOUT_h1()
780 rops_write_role_protocol_h1(struct lws *wsi, unsigned char *buf, size_t len, in rops_write_role_protocol_h1()
849 rops_alpn_negotiated_h1(struct lws *wsi, const char *alpn) in rops_alpn_negotiated_h1()
869 rops_destroy_role_h1(struct lws *wsi) in rops_destroy_role_h1()
905 rops_adoption_bind_h1(struct lws *wsi, int type, const char *vh_prot_name) in rops_adoption_bind_h1()
973 rops_client_bind_h1(struct lws *wsi, const struct lws_client_connect_info *i) in rops_client_bind_h1()
1068 rops_close_kill_connection_h1(struct lws *wsi, enum lws_close_status reason) in rops_close_kill_connection_h1()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-fds.c28 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi) in lws_plat_insert_socket_into_fds()
37 struct lws *wsi, int m) in lws_plat_delete_socket_from_fds()
46 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
52 insert_wsi(const struct lws_context *context, struct lws *wsi) in insert_wsi()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-ssl.c36 int lws_openssl_describe_cipher(struct lws *wsi) in lws_openssl_describe_cipher()
51 int lws_ssl_get_error(struct lws *wsi, int n) in lws_ssl_get_error()
199 lws_ssl_capable_read(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_read()
329 lws_ssl_pending(struct lws *wsi) in lws_ssl_pending()
338 lws_ssl_capable_write(struct lws *wsi, unsigned char *buf, size_t len) in lws_ssl_capable_write()
402 struct lws *wsi; in lws_ssl_info_callback() local
441 lws_ssl_close(struct lws *wsi) in lws_ssl_close()
524 lws_tls_ctx_from_wsi(struct lws *wsi) in lws_tls_ctx_from_wsi()
533 __lws_tls_shutdown(struct lws *wsi) in __lws_tls_shutdown()
/third_party/libwebsockets/lib/roles/raw-proxy/
Dops-raw-proxy.c28 rops_handle_POLLIN_raw_proxy(struct lws_context_per_thread *pt, struct lws *wsi, in rops_handle_POLLIN_raw_proxy()
130 rops_adoption_bind_raw_proxy(struct lws *wsi, int type, in rops_adoption_bind_raw_proxy()
162 rops_client_bind_raw_proxy(struct lws *wsi, in rops_client_bind_raw_proxy()
186 rops_handle_POLLOUT_raw_proxy(struct lws *wsi) in rops_handle_POLLOUT_raw_proxy()
/third_party/libwebsockets/lib/roles/
Dprivate-lib-roles.h67 #define lwsi_role(wsi) (wsi->wsistate & (unsigned int)LWSI_ROLE_MASK) argument
69 #define lwsi_set_role(wsi, role) wsi->wsistate = \ argument
75 #define lwsi_role_client(wsi) (!!(wsi->wsistate & LWSIFR_CLIENT)) argument
76 #define lwsi_role_server(wsi) (!!(wsi->wsistate & LWSIFR_SERVER)) argument
77 #define lwsi_role_h2_ENCAPSULATION(wsi) \ argument
156 #define lwsi_state(wsi) ((enum lwsi_state)(wsi->wsistate & LRS_MASK)) argument
157 #define lwsi_state_PRE_CLOSE(wsi) \ argument
159 #define lwsi_state_est(wsi) (!(wsi->wsistate & LWSIFS_NOT_EST)) argument
160 #define lwsi_state_est_PRE_CLOSE(wsi) \ argument
162 #define lwsi_state_can_handle_POLLOUT(wsi) (wsi->wsistate & LWSIFS_POCB) argument
[all …]
/third_party/libwebsockets/lib/plat/unix/
Dunix-fds.c54 sanity_assert_no_wsi_traces(const struct lws_context *context, struct lws *wsi) in sanity_assert_no_wsi_traces()
124 insert_wsi(const struct lws_context *context, struct lws *wsi) in insert_wsi()
212 delete_from_fdwsi(const struct lws_context *context, struct lws *wsi) in delete_from_fdwsi()
236 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi) in lws_plat_insert_socket_into_fds()
248 struct lws *wsi, int m) in lws_plat_delete_socket_from_fds()
261 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c28 lws_client_http_body_pending(struct lws *wsi, int something_left_to_send) in lws_client_http_body_pending()
34 lws_http_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd) in lws_http_client_socket_service()
501 lws_http_transaction_completed_client(struct lws *wsi) in lws_http_transaction_completed_client()
573 lws_http_client_http_response(struct lws *wsi) in lws_http_client_http_response()
585 lws_http_is_redirected_to_get(struct lws *wsi) in lws_http_is_redirected_to_get()
591 lws_client_interpret_server_handshake(struct lws *wsi) in lws_client_interpret_server_handshake()
1063 lws_http_multipart_headers(struct lws *wsi, uint8_t *p) in lws_http_multipart_headers()
1090 lws_client_http_multipart(struct lws *wsi, const char *name, in lws_client_http_multipart()
1130 lws_generate_client_handshake(struct lws *wsi, char *pkt) in lws_generate_client_handshake()
1326 lws_http_client_read(struct lws *wsi, char **buf, int *len) in lws_http_client_read()
[all …]
/third_party/libwebsockets/lib/roles/cgi/
Dops-cgi.c28 rops_handle_POLLIN_cgi(struct lws_context_per_thread *pt, struct lws *wsi, in rops_handle_POLLIN_cgi()
84 rops_handle_POLLOUT_cgi(struct lws *wsi) in rops_handle_POLLOUT_cgi()
90 rops_destroy_role_cgi(struct lws *wsi) in rops_destroy_role_cgi()
130 rops_close_role_cgi(struct lws_context_per_thread *pt, struct lws *wsi) in rops_close_role_cgi()
/third_party/libwebsockets/lib/event-libs/uloop/
Duloop.c138 struct lws *wsi = lws_container_of(d, struct lws, listen_list); in elops_listen_init_uloop() local
174 elops_accept_uloop(struct lws *wsi) in elops_accept_uloop()
188 elops_io_uloop(struct lws *wsi, unsigned int flags) in elops_io_uloop()
220 struct lws *wsi = lws_container_of(d, struct lws, listen_list); in elops_listen_destroy_uloop() local
241 elops_destroy_wsi_uloop(struct lws *wsi) in elops_destroy_wsi_uloop()
256 elops_wsi_logical_close_uloop(struct lws *wsi) in elops_wsi_logical_close_uloop()
264 elops_init_vhost_listen_wsi_uloop(struct lws *wsi) in elops_init_vhost_listen_wsi_uloop()
/third_party/libwebsockets/lib/roles/http/compression/
Dstream.c39 lws_http_compression_validate(struct lws *wsi) in lws_http_compression_validate()
61 lws_http_compression_apply(struct lws *wsi, const char *name, in lws_http_compression_apply()
108 lws_http_compression_destroy(struct lws *wsi) in lws_http_compression_destroy()
125 lws_http_compression_transform(struct lws *wsi, unsigned char *buf, in lws_http_compression_transform()
/third_party/libwebsockets/lib/event-libs/sdevent/
Dsdevent.c94 struct lws *wsi = (struct lws *)userdata; in sock_accept_handler() local
157 io_sd(struct lws *wsi, unsigned int flags) in io_sd()
213 init_vhost_listen_wsi_sd(struct lws *wsi) in init_vhost_listen_wsi_sd()
237 struct lws *wsi = lws_container_of(d, struct lws, listen_list); in elops_listen_init_sdevent() local
312 wsi_destroy_sd(struct lws *wsi) in wsi_destroy_sd()
328 wsi_logical_close_sd(struct lws *wsi) in wsi_logical_close_sd()
336 sock_accept_sd(struct lws *wsi) in sock_accept_sd()
371 struct lws *wsi = lws_container_of(d, struct lws, listen_list); in elops_listen_destroy_sdevent() local

12345678910