Home
last modified time | relevance | path

Searched refs:wsistate (Results 1 – 18 of 18) sorted by relevance

/third_party/libwebsockets/lib/roles/
Dprivate-lib-roles.h67 #define lwsi_role(wsi) (wsi->wsistate & (unsigned int)LWSI_ROLE_MASK)
69 #define lwsi_set_role(wsi, role) wsi->wsistate = \
70 (wsi->wsistate & (~LWSI_ROLE_MASK)) | role
75 #define lwsi_role_client(wsi) (!!(wsi->wsistate & LWSIFR_CLIENT))
76 #define lwsi_role_server(wsi) (!!(wsi->wsistate & LWSIFR_SERVER))
78 ((wsi->wsistate & LWSI_ROLE_ENCAP_MASK) == LWSIFR_P_ENCAP_H2)
156 #define lwsi_state(wsi) ((enum lwsi_state)(wsi->wsistate & LRS_MASK))
159 #define lwsi_state_est(wsi) (!(wsi->wsistate & LWSIFS_NOT_EST))
162 #define lwsi_state_can_handle_POLLOUT(wsi) (wsi->wsistate & LWSIFS_POCB)
164 #define lwsi_set_state(wsi, lrs) wsi->wsistate = \
[all …]
DREADME.md147 - the wsi holds a generic uint32 `wsistate` that contains role flags and wsi state
/third_party/libwebsockets/lib/core-net/
Dwsi.c38 wsi->wsistate = (wsi->wsistate & (~LWSI_ROLE_MASK)) | role; in lwsi_set_role()
40 lwsl_wsi_debug(wsi, "state 0x%lx", (unsigned long)wsi->wsistate); in lwsi_set_role()
45 lws_wsi_state_t old = wsi->wsistate; in lwsi_set_state()
47 wsi->wsistate = (old & (unsigned int)(~LRS_MASK)) | lrs; in lwsi_set_state()
50 (unsigned long)old, (unsigned long)wsi->wsistate); in lwsi_set_state()
666 wsi->wsistate = (unsigned int)role | (unsigned int)state; in lws_role_transition()
673 (unsigned long)wsi->wsistate, name); in lws_role_transition()
Dservice.c215 (unsigned long)wsi->wsistate, wsi->role_ops->name); in lws_handle_POLLOUT_event()
541 (unsigned long)wsi->wsistate); in lws_service_do_ripe_rxflow()
Dadopt.c78 new_wsi->wsistate |= LWSIFR_SERVER; in lws_create_new_server_wsi()
389 new_wsi->wsistate |= LWSIFR_SERVER; in lws_adopt_descriptor_vhost2()
Dclose.c431 wsi->wsistate_pre_close = wsi->wsistate; in __lws_close_free_wsi()
Dprivate-lib-core-net.h742 lws_wsi_state_t wsistate; member
Dvhost.c1896 (unsigned long)w->wsistate);
/third_party/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c37 (unsigned int)wsi->wsistate, wsi->a.protocol->name, in rops_handle_POLLIN_mqtt()
384 lws_wsi_tag(w), (unsigned int)w->wsistate); in rops_handle_POLLOUT_mqtt()
511 (unsigned int)wsi->wsistate); in rops_callback_on_writable_mqtt()
/third_party/libwebsockets/lib/roles/h2/
Dops-h2.c117 wsi->lc.gutag, (unsigned int)wsi->wsistate, in rops_handle_POLLIN_h2()
122 if (wsi->wsistate == 0x10000013) { in rops_handle_POLLIN_h2()
434 (unsigned int)wsi->wsistate, *wp, wsi->a.protocol ? in rops_write_role_protocol_h2()
871 (int)wsi->wsistate, wsi->a.protocol->name); in lws_h2_bind_for_post_before_action()
975 (unsigned int)w->wsistate); in rops_perform_user_POLLOUT_h2()
Dhttp2.c1808 (unsigned int)h2n->swsi->wsistate); in lws_h2_parse_end_of_frame()
/third_party/libwebsockets/lib/roles/cgi/
Dops-cgi.c72 wsi->parent, wsi->wsistate); in rops_handle_POLLIN_cgi()
/third_party/libwebsockets/lib/roles/raw-skt/
Dops-raw-skt.c109 lwsl_wsi_debug(wsi, "wsistate 0x%x\n", (int)wsi->wsistate);
/third_party/libwebsockets/minimal-examples/ws-client/minimal-ws-client-ping/
DREADME.md89 …] I: lws_client_socket_service: HANDSHAKE2: 0x5669090: sending headers (wsistate 0x10000204), w so…
/third_party/libwebsockets/lib/roles/h1/
Dops-h1.c637 (unsigned int)wsi->wsistate); in rops_handle_POLLIN_h1()
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c2031 lws_wsi_tag(wsi), (int)wsi->wsistate); in lws_http_action()
2639 lws_wsi_tag(wsi), (int)wsi->wsistate, wsi->buflist); in lws_http_transaction_completed()
2717 __func__, lws_wsi_tag(wsi), (int)wsi->wsistate); in lws_http_transaction_completed()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c281 (unsigned long)wsi->wsistate, wsi->desc.sockfd); in lws_http_client_socket_service()
/third_party/libwebsockets/lib/roles/http/
Dparsers.c384 (unsigned long)wsi->wsistate); in __lws_header_table_detach()