ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
websocket_msg_t Struct Reference

Owned WebSocket frame queued for sending or reassembly. More...

#include <include/ascii-chat/network/websocket/internal.h>

Data Fields

uint8_t * data
 Frame data (allocated, caller must free).
size_t len
 Frame length in bytes.
uint8_t first
 1 if first frame of message (or complete message)
uint8_t final
 1 if final frame of message (or complete message)

Detailed Description

Owned WebSocket frame queued for sending or reassembly.

Private state for one libwebsockets-backed ACIP transport

Owned WebSocket frame queued for sending or reassembly.

Used for both send and receive queues. Each frame may be a complete message or a fragment of a larger fragmented message. The receiver checks first/final flags to reassemble if needed. Used in both send_queue and recv_queue.

Definition at line 26 of file network/websocket/internal.h.

Field Documentation

◆ data

uint8_t* websocket_msg_t::data

Frame data (allocated, caller must free).

Definition at line 27 of file network/websocket/internal.h.

Referenced by websocket_transport_write_pending().

◆ final

uint8_t websocket_msg_t::final

1 if final frame of message (or complete message)

Definition at line 30 of file network/websocket/internal.h.

◆ first

uint8_t websocket_msg_t::first

1 if first frame of message (or complete message)

Definition at line 29 of file network/websocket/internal.h.

◆ len

size_t websocket_msg_t::len

Frame length in bytes.

Definition at line 28 of file network/websocket/internal.h.

Referenced by websocket_transport_write_pending().


The documentation for this struct was generated from the following file: