|
SharkSSL™ Embedded SSL/TLS Stack
|
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. | |
| SharkSslCon * | scon |
| The SharkSslCon object must be set when using secure mode. | |
| SOCKET * | sock |
| 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. | |