Home
last modified time | relevance | path

Searched refs:role_ops (Results 1 – 25 of 36) sorted by relevance

12

/third_party/libwebsockets/lib/core-net/
Dclose.c166 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_destroy_role)) in __lws_reset_wsi()
167 lws_rops_func_fidx(wsi->role_ops, in __lws_reset_wsi()
421 if (wsi->role_ops == &role_ops_raw_file) { in __lws_close_free_wsi()
425 wsi->a.protocol->callback(wsi, wsi->role_ops->close_cb[0], in __lws_close_free_wsi()
434 if (wsi->role_ops == &role_ops_cgi) { in __lws_close_free_wsi()
468 if (wsi->role_ops == &role_ops_raw_skt) { in __lws_close_free_wsi()
532 wsi->role_ops->protocol_unbind_cb[ in __lws_close_free_wsi()
550 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_close_via_role_protocol) && in __lws_close_free_wsi()
551 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_close_via_role_protocol). in __lws_close_free_wsi()
592 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_close_kill_connection)) in __lws_close_free_wsi()
[all …]
Dservice.c53 n = wsi->role_ops->writeable_cb[lwsi_role_server(wsi)]; in lws_callback_as_writeable()
114 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol) && in lws_handle_POLLOUT_event()
115 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol). in lws_handle_POLLOUT_event()
143 assert(wsi->role_ops); in lws_handle_POLLOUT_event()
145 if (!lws_rops_fidx(wsi->role_ops, LWS_ROPS_handle_POLLOUT)) in lws_handle_POLLOUT_event()
148 n = lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_handle_POLLOUT). in lws_handle_POLLOUT_event()
205 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_perform_user_POLLOUT)) { in lws_handle_POLLOUT_event()
206 if (lws_rops_func_fidx(wsi->role_ops, in lws_handle_POLLOUT_event()
215 (unsigned long)wsi->wsistate, wsi->role_ops->name); in lws_handle_POLLOUT_event()
547 if (lws_rops_func_fidx(wsi->role_ops, in lws_service_do_ripe_rxflow()
[all …]
Dwsi.c84 vh->name, wsi->role_ops ? wsi->role_ops->name : "none", in lws_vhost_bind_wsi()
652 if (!lws_rops_fidx(wsi->role_ops, LWS_ROPS_tx_credit)) in lws_get_peer_write_allowance()
655 return lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_tx_credit). in lws_get_peer_write_allowance()
668 wsi->role_ops = ops; in lws_role_transition()
670 if (wsi->role_ops) in lws_role_transition()
671 name = wsi->role_ops->name; in lws_role_transition()
1223 wsi->role_ops->protocol_unbind_cb[!!lwsi_role_server(wsi)], in lws_bind_protocol()
1260 if (wsi->a.protocol->callback(wsi, wsi->role_ops->protocol_bind_cb[ in lws_bind_protocol()
1376 wsi->role_ops = parent_wsi->role_ops; in lws_wsi_mux_insert()
1408 (*w)->role_ops ? (*w)->role_ops->name : "?", in lws_wsi_mux_dump_children()
[all …]
Dwsi-timeout.c224 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_issue_keepalive)) in lws_validity_cb()
225 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_issue_keepalive). in lws_validity_cb()
284 wsi->role_ops && in lws_validity_confirmed()
285 lws_rops_fidx(wsi->role_ops, LWS_ROPS_issue_keepalive)) in lws_validity_confirmed()
286 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_issue_keepalive). in lws_validity_confirmed()
Doutput.c229 assert(wsi->role_ops); in lws_write()
231 if (!lws_rops_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol)) in lws_write()
234 m = lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol). in lws_write()
340 if (wsi->role_ops->file_handle) in lws_ssl_capable_write_no_ssl()
Dadopt.c194 if (new_wsi->role_ops) { in __lws_adopt_descriptor_vhost1()
195 lws_metrics_tag_wsi_add(new_wsi, "role", new_wsi->role_ops->name); in __lws_adopt_descriptor_vhost1()
391 if (new_wsi->role_ops->adoption_cb[lwsi_role_server(new_wsi)]) in lws_adopt_descriptor_vhost2()
392 n = new_wsi->role_ops->adoption_cb[lwsi_role_server(new_wsi)]; in lws_adopt_descriptor_vhost2()
Dvhost.c173 wsi->role_ops->name); in lws_role_call_adoption_bind()
1230 wsi->role_ops->name);
1797 (w->role_ops == wsi->role_ops ||
1803 !(newconn_cannot_use_h1 && w->role_ops == &role_ops_h1) &&
Dpollfd.c532 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_callback_on_writable)) { in lws_callback_on_writable()
533 int q = lws_rops_func_fidx(wsi->role_ops, in lws_callback_on_writable()
Dnetwork.c481 wsi->role_ops == &role_ops_h1 in lws_retry_sul_schedule_retry_wsi()
487 wsi->role_ops == &role_ops_h2 in lws_retry_sul_schedule_retry_wsi()
/third_party/libwebsockets/lib/core-net/client/
Dconnect.c275 lwsl_wsi_info(wsi, "role binding to %s", wsi->role_ops->name); in lws_client_connect_via_info()
320 lws_wsi_tag(wsi), wsi->role_ops->name, in lws_client_connect_via_info()
397 wsi->role_ops->name, i->address, in lws_client_connect_via_info()
407 wsi->role_ops->name ? wsi->role_ops->name : "novh", vh->name, i->address); in lws_client_connect_via_info()
431 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_client_bind)) { in lws_client_connect_via_info()
433 int n = lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_client_bind). in lws_client_connect_via_info()
462 if (wsi->role_ops != &role_ops_raw_skt || in lws_client_connect_via_info()
466 wsi->role_ops->adoption_cb[0], in lws_client_connect_via_info()
467 wsi->role_ops->name, wsi->a.protocol->name); in lws_client_connect_via_info()
469 wsi->a.protocol->callback(wsi, wsi->role_ops->adoption_cb[0], in lws_client_connect_via_info()
Dconnect4.c166 wsi->role_ops->name, wsi->a.protocol->name, rawish, in lws_client_connect_4_established()
242 m = wsi->role_ops->adoption_cb[0]; in lws_client_connect_4_established()
/third_party/libwebsockets/lib/roles/h1/
Dprivate-lib-roles-h1.h30 #define lwsi_role_h1(wsi) (wsi->role_ops == &role_ops_h1)
Dops-h1.c83 if (wsi->role_ops == &role_ops_raw_skt in lws_read_h1()
86 wsi->role_ops == &role_ops_raw_file in lws_read_h1()
604 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol) && in rops_handle_POLLIN_h1()
605 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol). in rops_handle_POLLIN_h1()
/third_party/libwebsockets/lib/roles/raw-proxy/
Dprivate-lib-roles-raw-proxy.h29 #define lwsi_role_raw_proxy(wsi) (wsi->role_ops == &role_ops_raw_proxy)
/third_party/libwebsockets/lib/roles/dbus/
Dprivate-lib-roles-dbus.h31 #define lwsi_role_dbus(wsi) (wsi->role_ops == &role_ops_dbus)
/third_party/libwebsockets/lib/event-libs/libuv/
Dlibuv.c427 wsi->role_ops && strcmp(wsi->role_ops->name, "raw-file") && in elops_wsi_logical_close_uv()
513 if (wsi->role_ops->file_handle) in elops_accept_uv()
806 if (wsi->role_ops && !strcmp(wsi->role_ops->name, "listen") && in lws_libuv_closewsi()
/third_party/libwebsockets/lib/roles/cgi/
Dprivate-lib-roles-cgi.h37 #define lwsi_role_cgi(wsi) (wsi->role_ops == &role_ops_cgi)
Dops-cgi.c33 assert(wsi->role_ops == &role_ops_cgi); in rops_handle_POLLIN_cgi()
/third_party/libwebsockets/lib/event-libs/libev/
Dlibev.c291 if (wsi->role_ops->file_handle) in elops_accept_ev()
312 lwsl_wsi_debug(wsi, "%s flags 0x%x %p %d", wsi->role_ops->name, flags, in elops_io_ev()
392 if (wsi->role_ops->file_handle) in elops_init_vhost_listen_wsi_ev()
/third_party/libwebsockets/lib/roles/ws/
Dprivate-lib-roles-ws.h29 #define lwsi_role_ws(wsi) (wsi->role_ops == &role_ops_ws)
Dops-ws.c1335 wsi->role_ops->name, wsi->a.protocol->name, in rops_handle_POLLOUT_ws()
1384 if (wsi->role_ops == &role_ops_raw_skt in rops_handle_POLLOUT_ws()
1386 || wsi->role_ops == &role_ops_raw_file in rops_handle_POLLOUT_ws()
1858 return lws_rops_func_fidx(encap->role_ops, in rops_write_role_protocol_ws()
1950 if (lws_rops_func_fidx(enc->role_ops, in rops_callback_on_writable_ws()
2054 if (lws_rops_func_fidx(enc->role_ops, LWS_ROPS_issue_keepalive). in rops_issue_keepalive_ws()
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c1621 if (wsi->role_ops && in lws_http_action()
1622 lws_rops_fidx(wsi->role_ops, LWS_ROPS_check_upgrades)) in lws_http_action()
1623 switch (lws_rops_func_fidx(wsi->role_ops, in lws_http_action()
2157 if (wsi->role_ops->adoption_cb[1]) in lws_http_to_fallback()
2158 n = wsi->role_ops->adoption_cb[1]; in lws_http_to_fallback()
2174 if (wsi->role_ops->rx_cb[lwsi_role_server(wsi)]) in lws_http_to_fallback()
2175 n = wsi->role_ops->rx_cb[lwsi_role_server(wsi)]; in lws_http_to_fallback()
3057 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol) && in lws_serve_http_file_fragment()
3058 lws_rops_func_fidx(wsi->role_ops, LWS_ROPS_write_role_protocol). in lws_serve_http_file_fragment()
3137 if (lws_rops_fidx(wsi->role_ops, LWS_ROPS_tx_credit)) { in lws_serve_http_file_fragment()
[all …]
/third_party/libwebsockets/lib/event-libs/libevent/
Dlibevent.c275 if (wsi->role_ops->file_handle) in elops_accept_event()
427 if (wsi->role_ops->file_handle) in elops_init_vhost_listen_wsi_event()
/third_party/libwebsockets/lib/roles/h2/
Dprivate-lib-roles-h2.h26 #define lwsi_role_h2(wsi) (wsi->role_ops == &role_ops_h2)
/third_party/libwebsockets/lib/roles/mqtt/
Dprivate-lib-roles-mqtt.h30 #define lwsi_role_mqtt(wsi) (wsi->role_ops == &role_ops_mqtt)

12