|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
WebSocket connection state stored in ws_pool[]. More...
#include <websocket.h>
Public Attributes | |
| uint8_t | ws_id |
| Index into ws_pool[] (set at init). | |
| uint8_t | slot_id |
| Owning TCP slot in conn_pool[]. | |
| bool | active |
| True when this entry is in use. | |
| WsParseState | parse_state |
| Current frame parser state. | |
| WsOpcode | opcode |
| Opcode of the frame being parsed. | |
| bool | fin |
| FIN bit of the frame being parsed. | |
| bool | masked |
| True if client sent a masking key. | |
| uint8_t | mask_key [4] |
| Client masking key. | |
| uint32_t | payload_len |
| Expected payload byte count (current frame). | |
| uint32_t | payload_idx |
| Bytes received so far (current frame). | |
| uint8_t | len64_count |
| Bytes consumed from 64-bit length. | |
| uint8_t | buf [WS_FRAME_SIZE+1] |
| Reassembled message payload, null-terminated. | |
| bool | fragmenting |
| True between a non-FIN data frame and its FIN. | |
| WsOpcode | msg_opcode |
| Opcode of the data message being assembled. | |
| uint32_t | msg_len |
| Bytes assembled so far across all fragments. | |
| uint8_t | ctl_buf [125+1] |
| Control-frame payload (ping/pong/close), null-terminated. | |
WebSocket connection state stored in ws_pool[].
Allocated when an HTTP upgrade handshake succeeds. slot_id ties this entry back to conn_pool[] and the ring buffer.
Definition at line 124 of file websocket.h.
| uint8_t WsConn::ws_id |
Index into ws_pool[] (set at init).
Definition at line 126 of file websocket.h.
Referenced by ws_alloc(), ws_free(), and ws_init().
| uint8_t WsConn::slot_id |
Owning TCP slot in conn_pool[].
Definition at line 127 of file websocket.h.
Referenced by ws_alloc(), ws_close(), ws_feed_byte(), ws_parse(), and ws_send_frame().
| bool WsConn::active |
True when this entry is in use.
Definition at line 128 of file websocket.h.
Referenced by ws_active(), and ws_alloc().
| WsParseState WsConn::parse_state |
Current frame parser state.
Definition at line 130 of file websocket.h.
Referenced by DetWebServer::http_poll_slot(), ws_alloc(), ws_close(), ws_feed_byte(), and ws_parse().
| WsOpcode WsConn::opcode |
Opcode of the frame being parsed.
Definition at line 131 of file websocket.h.
Referenced by ws_feed_byte().
| bool WsConn::fin |
FIN bit of the frame being parsed.
Definition at line 132 of file websocket.h.
Referenced by ws_feed_byte().
| bool WsConn::masked |
True if client sent a masking key.
Definition at line 133 of file websocket.h.
Referenced by ws_feed_byte().
| uint8_t WsConn::mask_key[4] |
| uint32_t WsConn::payload_len |
Expected payload byte count (current frame).
Definition at line 136 of file websocket.h.
Referenced by ws_feed_byte().
| uint32_t WsConn::payload_idx |
Bytes received so far (current frame).
Definition at line 137 of file websocket.h.
Referenced by ws_feed_byte().
| uint8_t WsConn::len64_count |
Bytes consumed from 64-bit length.
Definition at line 138 of file websocket.h.
Referenced by ws_feed_byte().
| uint8_t WsConn::buf[WS_FRAME_SIZE+1] |
Reassembled message payload, null-terminated.
Definition at line 139 of file websocket.h.
Referenced by ws_feed_byte(), and ws_reset_frame().
| bool WsConn::fragmenting |
True between a non-FIN data frame and its FIN.
Definition at line 145 of file websocket.h.
Referenced by ws_feed_byte(), and ws_reset_frame().
| WsOpcode WsConn::msg_opcode |
Opcode of the data message being assembled.
Definition at line 146 of file websocket.h.
Referenced by ws_feed_byte(), and ws_reset_frame().
| uint32_t WsConn::msg_len |
Bytes assembled so far across all fragments.
Definition at line 147 of file websocket.h.
Referenced by ws_feed_byte(), and ws_reset_frame().
| uint8_t WsConn::ctl_buf[125+1] |
Control-frame payload (ping/pong/close), null-terminated.
Definition at line 148 of file websocket.h.
Referenced by ws_feed_byte(), and ws_reset_frame().