/third_party/libwebsockets/lib/core-net/ |
D | close.c | 166 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 …]
|
D | service.c | 53 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 …]
|
D | wsi.c | 84 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 …]
|
D | wsi-timeout.c | 224 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()
|
D | output.c | 229 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()
|
D | adopt.c | 194 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()
|
D | vhost.c | 173 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) &&
|
D | pollfd.c | 532 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()
|
D | network.c | 481 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/ |
D | connect.c | 275 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()
|
D | connect4.c | 166 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/ |
D | private-lib-roles-h1.h | 30 #define lwsi_role_h1(wsi) (wsi->role_ops == &role_ops_h1)
|
D | ops-h1.c | 83 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/ |
D | private-lib-roles-raw-proxy.h | 29 #define lwsi_role_raw_proxy(wsi) (wsi->role_ops == &role_ops_raw_proxy)
|
/third_party/libwebsockets/lib/roles/dbus/ |
D | private-lib-roles-dbus.h | 31 #define lwsi_role_dbus(wsi) (wsi->role_ops == &role_ops_dbus)
|
/third_party/libwebsockets/lib/event-libs/libuv/ |
D | libuv.c | 427 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/ |
D | private-lib-roles-cgi.h | 37 #define lwsi_role_cgi(wsi) (wsi->role_ops == &role_ops_cgi)
|
D | ops-cgi.c | 33 assert(wsi->role_ops == &role_ops_cgi); in rops_handle_POLLIN_cgi()
|
/third_party/libwebsockets/lib/event-libs/libev/ |
D | libev.c | 291 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/ |
D | private-lib-roles-ws.h | 29 #define lwsi_role_ws(wsi) (wsi->role_ops == &role_ops_ws)
|
D | ops-ws.c | 1335 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/ |
D | server.c | 1621 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/ |
D | libevent.c | 275 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/ |
D | private-lib-roles-h2.h | 26 #define lwsi_role_h2(wsi) (wsi->role_ops == &role_ops_h2)
|
/third_party/libwebsockets/lib/roles/mqtt/ |
D | private-lib-roles-mqtt.h | 30 #define lwsi_role_mqtt(wsi) (wsi->role_ops == &role_ops_mqtt)
|