SharkSSL™ Embedded SSL/TLS Stack
WscState Struct Reference

Detailed Description

WebSocket Client State Information, initialize using: WscState wss={0}; however, several members must be set.

#include <WsClientLib.h>

Data Fields

U8 * recBuf
 The receive buffer must be set when not in secure mode.
 
U8 * sendBuf
 The send buffer must be set when not in secure mode.
 
int recBufLen
 The receive buffer length must be set to the recBuf length.
 
int sendBufLen
 The send buffer length must be set to the sendBuf length.
 
SharkSslConscon
 The SharkSslCon object must be set when using secure mode.
 
SOCKETsock
 The SOCKET object must be set.
 
int frameLen
 The WebSocket frame length.
 
int bytesRead
 Read frame data until: frameLen - bytesRead = 0.
 
U8 isTimeout
 Set when the read function returns due to a timeout.