SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
WssReadState Struct Reference

#include <MSLib.h>

Data Fields

U8 * overflowPtr
 
int overflowLen
 
int frameHeaderIx
 
U8 * maskPtr
 
U8 frameHeader [8]
 
int frameLen
 The WebSocket frame length. More...
 
int bytesRead
 Read frame data until: frameLen - bytesRead = 0. More...
 
U8 isTimeout
 Set when function msRead returns due to a timeout. More...
 

Detailed Description

The WS protocol is frame based, and struct WssReadState keeps state information for the Minnow Server's MS_read function.

Field Documentation

◆ bytesRead

int WssReadState::bytesRead

Read frame data until: frameLen - bytesRead = 0.

◆ frameHeader

U8 WssReadState::frameHeader[8]

◆ frameHeaderIx

int WssReadState::frameHeaderIx

◆ frameLen

int WssReadState::frameLen

The WebSocket frame length.

◆ isTimeout

U8 WssReadState::isTimeout

Set when function msRead returns due to a timeout.

◆ maskPtr

U8* WssReadState::maskPtr

◆ overflowLen

int WssReadState::overflowLen

◆ overflowPtr

U8* WssReadState::overflowPtr