ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
websocket_msg_t Struct Reference

WebSocket message element (individual frame or fragment) 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

WebSocket message element (individual frame or fragment)

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 24 of file network/websocket/internal.h.

Field Documentation

◆ data

uint8_t* websocket_msg_t::data

Frame data (allocated, caller must free)

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

◆ final

uint8_t websocket_msg_t::final

1 if final frame of message (or complete message)

Definition at line 28 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 27 of file network/websocket/internal.h.

◆ len

size_t websocket_msg_t::len

Frame length in bytes.

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


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