Home
last modified time | relevance | path

Searched refs:lwsi_state (Results 1 – 25 of 28) sorted by relevance

12

/external/libwebsockets/lib/roles/h1/
Dops-h1.c48 lwsl_debug("%s: h1 path: wsi state 0x%x\n", __func__, lwsi_state(wsi)); in lws_read_h1()
50 switch (lwsi_state(wsi)) { in lws_read_h1()
105 switch (lwsi_state(wsi)) { in lws_read_h1()
161 if (lwsi_state(wsi) != LRS_DISCARD_BODY) { in lws_read_h1()
198 if (lwsi_state(wsi) == LRS_DISCARD_BODY) { in lws_read_h1()
269 lwsl_err("%s: Unhandled state %d\n", __func__, lwsi_state(wsi)); in lws_read_h1()
308 if (lwsi_state(wsi) == LRS_DEFERRING_ACTION) in lws_h1_server_socket_service()
335 if (lwsi_state(wsi) == LRS_SSL_ACK_PENDING) in lws_h1_server_socket_service()
340 if ((lwsi_state(wsi) == LRS_ESTABLISHED || in lws_h1_server_socket_service()
341 lwsi_state(wsi) == LRS_ISSUING_FILE || in lws_h1_server_socket_service()
[all …]
/external/libwebsockets/lib/roles/h2/
Dops-h2.c122 if (lwsi_state(wsi) == LRS_PRE_WS_SERVING_ACCEPT) { in rops_handle_POLLIN_h2()
127 if (lwsi_state(wsi) == LRS_WAITING_CONNECT) { in rops_handle_POLLIN_h2()
147 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE) in rops_handle_POLLIN_h2()
155 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE || in rops_handle_POLLIN_h2()
156 lwsi_state(wsi) == LRS_WAITING_TO_SEND_CLOSE || in rops_handle_POLLIN_h2()
157 lwsi_state(wsi) == LRS_AWAITING_CLOSE_ACK) { in rops_handle_POLLIN_h2()
200 (lwsi_state(wsi) != LRS_ESTABLISHED && in rops_handle_POLLIN_h2()
201 lwsi_state(wsi) != LRS_H2_WAITING_TO_SEND_HEADERS))) { in rops_handle_POLLIN_h2()
266 if (lwsi_role_h2(wsi) && lwsi_state(wsi) != LRS_BODY && in rops_handle_POLLIN_h2()
267 lwsi_state(wsi) != LRS_DISCARD_BODY) in rops_handle_POLLIN_h2()
[all …]
Dhttp2.c753 if (lwsi_state(wsi) == LRS_H2_AWAIT_SETTINGS) { in lws_h2_do_pps_send()
1845 switch (lwsi_state(wsi)) { in lws_h2_parser()
2005 lwsi_state(h2n->swsi) == LRS_ESTABLISHED) { in lws_h2_parser()
2070 if (lwsi_state(h2n->swsi) == LRS_DEFERRING_ACTION) { in lws_h2_parser()
/external/libwebsockets/lib/core-net/
Dclose.c336 if (lwsi_state(wsi) == LRS_DEAD_SOCKET) in __lws_close_free_wsi()
341 lwsi_state(wsi) == LRS_SHUTDOWN) in __lws_close_free_wsi()
382 if (lwsi_state(wsi) == LRS_WAITING_CONNECT || in __lws_close_free_wsi()
383 lwsi_state(wsi) == LRS_WAITING_DNS || in __lws_close_free_wsi()
384 lwsi_state(wsi) == LRS_H1C_ISSUE_HANDSHAKE) in __lws_close_free_wsi()
451 if ((lwsi_state(wsi) == LRS_WAITING_SERVER_REPLY || in __lws_close_free_wsi()
452 lwsi_state(wsi) == LRS_WAITING_DNS || in __lws_close_free_wsi()
453 lwsi_state(wsi) == LRS_WAITING_CONNECT) && in __lws_close_free_wsi()
470 lwsi_state(wsi) != LRS_SHUTDOWN && in __lws_close_free_wsi()
471 lwsi_state(wsi) != LRS_UNCONNECTED && in __lws_close_free_wsi()
[all …]
Dservice.c100 if (lwsi_state(wsi) == LRS_FLUSHING_BEFORE_CLOSE) { in lws_handle_POLLOUT_event()
193 lwsi_state(wsi) != LRS_H2_WAITING_TO_SEND_HEADERS && in lws_handle_POLLOUT_event()
194 lwsi_state(wsi) != LRS_ISSUE_HTTP_BODY) in lws_handle_POLLOUT_event()
334 lwsi_state(wsi) != LRS_DEFERRING_ACTION) in lws_service_adjust_timeout()
523 lwsi_state(wsi) != LRS_DEFERRING_ACTION) { in lws_service_do_ripe_rxflow()
566 lwsi_state(wsi) != LRS_DEFERRING_ACTION) { in lws_service_flag_pending()
678 if (lwsi_state(wsi) == LRS_SHUTDOWN && in lws_service_fd_tsi()
Dvhost.c1495 (lwsi_state(w) == LRS_H2_WAITING_TO_SEND_HEADERS ||
1496 lwsi_state(w) == LRS_ESTABLISHED ||
1497 lwsi_state(w) == LRS_IDLING)) {
1500 __func__, lwsi_state(w));
1502 if (lwsi_state(w) == LRS_IDLING) {
1526 lwsi_state(w) == LRS_ESTABLISHED) {
1556 if (lwsi_state(w) == LRS_IDLING) {
Doutput.c58 if (lwsi_state(wsi) == LRS_FLUSHING_BEFORE_CLOSE && in lws_issue_raw()
154 if (lwsi_state(wsi) == LRS_FLUSHING_BEFORE_CLOSE) { in lws_issue_raw()
Dwsi.c445 lws_role_transition(struct lws *wsi, enum lwsi_role role, enum lwsi_state state, in lws_role_transition()
1165 wsi, wsi->mux.my_sid, lwsi_state(wsi), in lws_wsi_mux_dump_waiting_children()
1333 lwsi_state(w) == LRS_H2_WAITING_TO_SEND_HEADERS) { in lws_wsi_mux_apply_queue()
1348 lwsi_state(wsi) == LRS_ESTABLISHED) { in lws_wsi_mux_apply_queue()
Dsocks5-client.c283 switch (lwsi_state(wsi)) { in lws_socks5c_handle_state()
Dwsi-timeout.c115 if (lwsi_state(wsi) == LRS_WAITING_SSL) in lws_sul_wsitimeout_cb()
/external/libwebsockets/lib/roles/raw-skt/
Dops-raw-skt.c56 if (!lwsi_role_client(wsi) && lwsi_state(wsi) != LRS_ESTABLISHED) { in rops_handle_POLLIN_raw_skt()
61 if (lwsi_state(wsi) != LRS_SSL_INIT) in rops_handle_POLLIN_raw_skt()
75 wsi, lwsi_state(wsi)); in rops_handle_POLLIN_raw_skt()
77 switch (lwsi_state(wsi)) { in rops_handle_POLLIN_raw_skt()
190 if (lwsi_state(wsi) == LRS_WAITING_CONNECT && in rops_handle_POLLIN_raw_skt()
/external/libwebsockets/lib/roles/
Dprivate-lib-roles.h85 enum lwsi_state { enum
156 #define lwsi_state(wsi) ((enum lwsi_state)(wsi->wsistate & LRS_MASK)) macro
158 ((enum lwsi_state)(wsi->wsistate_pre_close & LRS_MASK))
/external/libwebsockets/lib/roles/ws/
Dops-ws.c459 if (lwsi_state(wsi) == LRS_AWAITING_CLOSE_ACK) { in lws_ws_rx_sm()
467 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE) in lws_ws_rx_sm()
602 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE || in lws_ws_rx_sm()
603 lwsi_state(wsi) == LRS_AWAITING_CLOSE_ACK) in lws_ws_rx_sm()
966 if (lwsi_state(wsi) == LRS_PRE_WS_SERVING_ACCEPT) { in rops_handle_POLLIN_ws()
974 if (lwsi_state(wsi) == LRS_WAITING_CONNECT) { in rops_handle_POLLIN_ws()
994 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE) in rops_handle_POLLIN_ws()
1000 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE || in rops_handle_POLLIN_ws()
1001 lwsi_state(wsi) == LRS_WAITING_TO_SEND_CLOSE) { in rops_handle_POLLIN_ws()
1108 (lwsi_state(wsi) != LRS_ESTABLISHED && in rops_handle_POLLIN_ws()
[all …]
Dclient-parser-ws.c397 if (lwsi_state(wsi) == LRS_AWAITING_CLOSE_ACK) { in lws_ws_client_rx_sm()
640 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE || in lws_ws_client_rx_sm()
641 lwsi_state(wsi) == LRS_WAITING_TO_SEND_CLOSE || in lws_ws_client_rx_sm()
642 lwsi_state(wsi) == LRS_AWAITING_CLOSE_ACK) in lws_ws_client_rx_sm()
Dclient-ws.c74 if ((lwsi_state(wsi) != LRS_WAITING_PROXY_REPLY) && in lws_ws_handshake_client()
75 (lwsi_state(wsi) != LRS_H1C_ISSUE_HANDSHAKE) && in lws_ws_handshake_client()
76 (lwsi_state(wsi) != LRS_WAITING_SERVER_REPLY) && in lws_ws_handshake_client()
/external/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c55 if (lwsi_state(wsi) != LRS_ESTABLISHED) { in rops_handle_POLLIN_mqtt()
58 if (lwsi_state(wsi) == LRS_WAITING_SSL && in rops_handle_POLLIN_mqtt()
83 if (lwsi_state(wsi) == LRS_RETURNED_CLOSE) in rops_handle_POLLIN_mqtt()
109 if (!(lwsi_role_client(wsi) && lwsi_state(wsi) != LRS_ESTABLISHED)) { in rops_handle_POLLIN_mqtt()
350 if (lwsi_state(wsi) == LRS_ESTABLISHED && in rops_handle_POLLOUT_mqtt()
Dmqtt.c373 if (lwsi_state(wsi) == LRS_MQTTC_AWAIT_CONNACK && in _lws_mqtt_rx_parser()
1610 if (lwsi_state(wsi) != LRS_ESTABLISHED) { in lws_mqtt_client_send_publish()
1612 lwsi_state(wsi)); in lws_mqtt_client_send_publish()
1772 switch (lwsi_state(wsi)) { in lws_mqtt_client_send_subcribe()
1951 switch (lwsi_state(wsi)) { in lws_mqtt_client_send_unsubcribe()
/external/libwebsockets/lib/roles/http/client/
Dclient-handshake.c149 if (lwsi_state(wsi) != LRS_ESTABLISHED) in lws_client_connect_4_established()
191 __func__, wsi, lwsi_state(wsi_piggyback)); in lws_client_connect_4_established()
195 wsi->protocol->name, rawish, wsi->vhost->name, lwsi_state(wsi)); in lws_client_connect_4_established()
203 if (lwsi_state(wsi) == LRS_WAITING_CONNECT && in lws_client_connect_4_established()
222 __func__, wsi, lwsi_state(wsi)); in lws_client_connect_4_established()
224 if (lwsi_state(wsi) == LRS_WAITING_CONNECT) in lws_client_connect_4_established()
386 if (lwsi_state(wsi) == LRS_WAITING_CONNECT &&
451 if (lwsi_state(wsi) == LRS_WAITING_DNS &&
797 if (lwsi_state(wsi) == LRS_WAITING_DNS ||
798 lwsi_state(wsi) == LRS_WAITING_CONNECT) {
[all …]
Dclient-http.c108 switch (lwsi_state(wsi)) { in lws_client_socket_service()
333 if (lwsi_state(wsi) == LRS_IDLING) { in lws_client_socket_service()
/external/libwebsockets/lib/roles/raw-proxy/
Dops-raw-proxy.c53 lwsi_state(wsi) != LRS_SSL_ACK_PENDING && in rops_handle_POLLIN_raw_proxy()
185 if (lwsi_state(wsi) == LRS_ESTABLISHED) in rops_handle_POLLOUT_raw_proxy()
/external/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt-handshake.c39 switch (lwsi_state(wsi)) { in lws_mqtt_client_send_connect()
166 lwsl_err("%s: unexpected state %d\n", __func__, lwsi_state(wsi)); in lws_mqtt_client_send_connect()
Dclient-mqtt.c185 switch (lwsi_state(wsi)) { in lws_mqtt_client_socket_service()
/external/libwebsockets/lib/tls/
Dtls-client.c55 if (lwsi_state(wsi) == LRS_WAITING_SSL) { in lws_ssl_client_connect2()
Dtls-server.c136 switch (lwsi_state(wsi)) { in lws_server_socket_service_ssl()
/external/libwebsockets/lib/roles/http/
Dparsers.c293 if (lwsi_role_client(wsi) && lwsi_state(wsi) == LRS_UNCONNECTED) in lws_header_table_attach()
336 (unsigned long)lwsi_role(wsi), lwsi_state(wsi)); in __lws_header_table_detach()
422 if (lwsi_role_client(wsi) && lwsi_state(wsi) == LRS_UNCONNECTED) { in __lws_header_table_detach()

12