Home
last modified time | relevance | path

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

12

/external/libwebsockets/lib/core-net/
Dclose.c132 if (wsi->role_ops->destroy_role) in __lws_reset_wsi()
133 wsi->role_ops->destroy_role(wsi); in __lws_reset_wsi()
285 if (wsi->role_ops == &role_ops_raw_file) { in __lws_close_free_wsi()
289 wsi->protocol->callback(wsi, wsi->role_ops->close_cb[0], in __lws_close_free_wsi()
298 if (wsi->role_ops == &role_ops_cgi) { in __lws_close_free_wsi()
326 if (wsi->role_ops == &role_ops_raw_skt) { in __lws_close_free_wsi()
390 wsi->role_ops->protocol_unbind_cb[ in __lws_close_free_wsi()
408 if (wsi->role_ops->close_via_role_protocol && in __lws_close_free_wsi()
409 wsi->role_ops->close_via_role_protocol(wsi, reason)) in __lws_close_free_wsi()
433 if (wsi->role_ops->close_kill_connection) in __lws_close_free_wsi()
[all …]
Dconnect.c136 lwsl_info("%s: role binding to %s\n", __func__, wsi->role_ops->name); in lws_client_connect_via_info()
179 __func__, wsi, wsi->role_ops->name, in lws_client_connect_via_info()
272 if (wsi->role_ops->client_bind) { in lws_client_connect_via_info()
273 int n = wsi->role_ops->client_bind(wsi, NULL); in lws_client_connect_via_info()
299 if (wsi->role_ops != &role_ops_raw_skt || in lws_client_connect_via_info()
303 wsi, wsi->role_ops->adoption_cb[0], in lws_client_connect_via_info()
304 wsi->role_ops->name, wsi->protocol->name); in lws_client_connect_via_info()
306 wsi->protocol->callback(wsi, wsi->role_ops->adoption_cb[0], in lws_client_connect_via_info()
Dservice.c55 n = wsi->role_ops->writeable_cb[lwsi_role_server(wsi)]; in lws_callback_as_writeable()
117 if (wsi->role_ops->write_role_protocol(wsi, NULL, 0, &wp) < 0) { in lws_handle_POLLOUT_event()
144 assert(wsi->role_ops); in lws_handle_POLLOUT_event()
146 if (!wsi->role_ops->handle_POLLOUT) in lws_handle_POLLOUT_event()
149 n = wsi->role_ops->handle_POLLOUT(wsi); in lws_handle_POLLOUT_event()
205 if (wsi->role_ops->perform_user_POLLOUT) { in lws_handle_POLLOUT_event()
206 if (wsi->role_ops->perform_user_POLLOUT(wsi) == -1) in lws_handle_POLLOUT_event()
213 (unsigned long)wsi->wsistate, wsi->role_ops->name); in lws_handle_POLLOUT_event()
526 if ((wsi->role_ops->handle_POLLIN)(pt, wsi, &pfd) == in lws_service_do_ripe_rxflow()
698 assert(wsi->role_ops); in lws_service_fd_tsi()
[all …]
Dwsi.c56 vh->name, wsi->role_ops ? wsi->role_ops->name : "none", in lws_vhost_bind_wsi()
439 if (!wsi->role_ops->tx_credit) in lws_get_peer_write_allowance()
441 return wsi->role_ops->tx_credit(wsi, LWSTXCR_US_TO_PEER, 0); in lws_get_peer_write_allowance()
453 wsi->role_ops = ops; in lws_role_transition()
455 if (wsi->role_ops) in lws_role_transition()
456 name = wsi->role_ops->name; in lws_role_transition()
932 wsi->role_ops->protocol_unbind_cb[!!lwsi_role_server(wsi)], in lws_bind_protocol()
969 if (wsi->protocol->callback(wsi, wsi->role_ops->protocol_bind_cb[ in lws_bind_protocol()
1071 wsi->role_ops = parent_wsi->role_ops; in lws_wsi_mux_insert()
1103 (*w)->role_ops ? (*w)->role_ops->name : "?", *w); in lws_wsi_mux_dump_children()
[all …]
Dwsi-timeout.c299 if (wsi->role_ops && wsi->role_ops->issue_keepalive) in lws_validity_cb()
300 wsi->role_ops->issue_keepalive(wsi, 0); in lws_validity_cb()
357 wsi->role_ops && wsi->role_ops->issue_keepalive) in lws_validity_confirmed()
358 wsi->role_ops->issue_keepalive(wsi, 1); in lws_validity_confirmed()
Doutput.c51 wsi->protocol->name, wsi->role_ops->name, in lws_issue_raw()
258 assert(wsi->role_ops); in lws_write()
259 if (!wsi->role_ops->write_role_protocol) in lws_write()
262 m = wsi->role_ops->write_role_protocol(wsi, buf, len, &wp); in lws_write()
368 if (wsi->role_ops->file_handle) in lws_ssl_capable_write_no_ssl()
Dadopt.c236 if (new_wsi->role_ops->adoption_cb[lwsi_role_server(new_wsi)]) in lws_adopt_descriptor_vhost2()
237 n = new_wsi->role_ops->adoption_cb[lwsi_role_server(new_wsi)]; in lws_adopt_descriptor_vhost2()
Dpollfd.c533 if (wsi->role_ops->callback_on_writable) { in lws_callback_on_writable()
534 int q = wsi->role_ops->callback_on_writable(wsi); in lws_callback_on_writable()
Dvhost.c170 wsi->role_ops->name); in lws_role_call_adoption_bind()
1467 (w->role_ops == wsi->role_ops ||
/external/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()
611 if (wsi->role_ops->write_role_protocol(wsi, NULL, 0, &wp) < 0) { in rops_handle_POLLIN_h1()
/external/libwebsockets/lib/roles/raw-proxy/
Dprivate-lib-roles-raw-proxy.h29 #define lwsi_role_raw_proxy(wsi) (wsi->role_ops == &role_ops_raw_proxy)
/external/libwebsockets/lib/roles/dbus/
Dprivate-lib-roles-dbus.h31 #define lwsi_role_dbus(wsi) (wsi->role_ops == &role_ops_dbus)
/external/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()
/external/libwebsockets/lib/roles/http/client/
Dclient-handshake.c194 __func__, wsi, wsi->role_ops->name, in lws_client_connect_4_established()
244 m = wsi->role_ops->adoption_cb[0]; in lws_client_connect_4_established()
1146 if (wsi->role_ops && wsi->role_ops->close_kill_connection)
1147 wsi->role_ops->close_kill_connection(wsi, 1);
1167 if (wsi->protocol && wsi->role_ops && wsi->protocol_bind_balance) {
1169 wsi->role_ops->protocol_unbind_cb[
/external/libwebsockets/lib/event-libs/libev/
Dlibev.c264 if (wsi->role_ops->file_handle) in elops_accept_ev()
357 if (wsi->role_ops->file_handle) in elops_init_vhost_listen_wsi_ev()
/external/libwebsockets/lib/roles/ws/
Dops-ws.c1320 wsi->role_ops->name, wsi->protocol->name, in rops_handle_POLLOUT_ws()
1369 if (wsi->role_ops == &role_ops_raw_skt in rops_handle_POLLOUT_ws()
1371 || wsi->role_ops == &role_ops_raw_file in rops_handle_POLLOUT_ws()
1841 return encap->role_ops->write_role_protocol(wsi, buf - pre, in rops_write_role_protocol_ws()
1927 if (enc->role_ops->callback_on_writable(wsi)) in rops_callback_on_writable_ws()
2024 if (enc->role_ops->issue_keepalive(enc, isvalid)) in rops_issue_keepalive_ws()
Dprivate-lib-roles-ws.h29 #define lwsi_role_ws(wsi) (wsi->role_ops == &role_ops_ws)
/external/libwebsockets/lib/roles/http/server/
Dserver.c1404 if (wsi->role_ops && wsi->role_ops->check_upgrades) in lws_http_action()
1405 switch (wsi->role_ops->check_upgrades(wsi)) { in lws_http_action()
1906 if (wsi->role_ops->adoption_cb[1]) in lws_http_to_fallback()
1907 n = wsi->role_ops->adoption_cb[1]; in lws_http_to_fallback()
1922 if (wsi->role_ops->rx_cb[lwsi_role_server(wsi)]) in lws_http_to_fallback()
1923 n = wsi->role_ops->rx_cb[lwsi_role_server(wsi)]; in lws_http_to_fallback()
2801 if (wsi->role_ops->write_role_protocol(wsi, NULL, 0, &wp) < 0) { in lws_serve_http_file_fragment()
2867 if (wsi->role_ops->tx_credit) { in lws_serve_http_file_fragment()
2869 wsi->role_ops->tx_credit(wsi, LWSTXCR_US_TO_PEER, 0); in lws_serve_http_file_fragment()
/external/libwebsockets/lib/event-libs/libevent/
Dlibevent.c251 if (wsi->role_ops->file_handle) in elops_accept_event()
381 if (wsi->role_ops->file_handle) in elops_init_vhost_listen_wsi_event()
/external/libwebsockets/lib/roles/mqtt/
Dprivate-lib-roles-mqtt.h32 #define lwsi_role_mqtt(wsi) (wsi->role_ops == &role_ops_mqtt)
/external/libwebsockets/lib/roles/h2/
Dprivate-lib-roles-h2.h26 #define lwsi_role_h2(wsi) (wsi->role_ops == &role_ops_h2)
/external/libwebsockets/lib/event-libs/libuv/
Dlibuv.c623 if (wsi->role_ops->file_handle) in elops_accept_uv()
873 if (wsi->role_ops == &role_ops_listen && wsi->context->deprecated) { in lws_libuv_closewsi()
/external/libwebsockets/lib/abstract/transports/
Draw-skt.c208 priv, priv->wsi, priv->wsi->role_ops); in lws_atcrs_tx()

12