#include <Shellminator-Websocket.hpp>
Definition at line 96 of file Shellminator-Websocket.hpp.
◆ wsDecodedHeaderType_t
◆ wsState_t
◆ ShellminatorWebSocket() [1/2]
ShellminatorWebSocket::ShellminatorWebSocket |
( |
| ) |
|
◆ ShellminatorWebSocket() [2/2]
ShellminatorWebSocket::ShellminatorWebSocket |
( |
int |
port_p | ) |
|
◆ appendToCircularBuffer() [1/2]
void ShellminatorWebSocket::appendToCircularBuffer |
( |
uint8_t * |
data, |
|
|
int |
dataSize |
|
) |
| |
|
private |
◆ appendToCircularBuffer() [2/2]
void ShellminatorWebSocket::appendToCircularBuffer |
( |
uint8_t |
data | ) |
|
|
private |
◆ attachConnectCallback()
◆ attachDebugChannel()
void ShellminatorWebSocket::attachDebugChannel |
( |
Stream * |
dbg_p | ) |
|
◆ attachDisconnectCallback()
void ShellminatorWebSocket::attachDisconnectCallback |
( |
void(*)(ShellminatorWebSocket *) |
disconnectCallback_p | ) |
|
◆ available()
int ShellminatorWebSocket::available |
( |
| ) |
|
|
override |
◆ begin()
void ShellminatorWebSocket::begin |
( |
| ) |
|
◆ closeClient()
void ShellminatorWebSocket::closeClient |
( |
bool |
sendCloseFrame = false | ) |
|
|
private |
◆ finishDecoding()
void ShellminatorWebSocket::finishDecoding |
( |
| ) |
|
|
private |
◆ flush()
void ShellminatorWebSocket::flush |
( |
| ) |
|
|
override |
◆ generateServerKey()
bool ShellminatorWebSocket::generateServerKey |
( |
| ) |
|
|
private |
◆ peek()
int ShellminatorWebSocket::peek |
( |
| ) |
|
|
override |
Peek the firtst byte from the channel.
- Returns
- Read and return one byte form the channel. The byte will NOT be removed from the channel.
Definition at line 662 of file Shellminator-Websocket.cpp.
◆ read()
int ShellminatorWebSocket::read |
( |
| ) |
|
|
override |
Read one byte form the channel.
- Returns
- Read and return one byte form the channel. The byte will be removed from the channel.
Definition at line 644 of file Shellminator-Websocket.cpp.
◆ resetDataVariables()
void ShellminatorWebSocket::resetDataVariables |
( |
| ) |
|
|
private |
◆ resetVariables()
void ShellminatorWebSocket::resetVariables |
( |
| ) |
|
|
private |
◆ sendFrame()
◆ sendFrame125()
◆ update()
void ShellminatorWebSocket::update |
( |
| ) |
|
◆ write() [1/2]
size_t ShellminatorWebSocket::write |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
override |
◆ write() [2/2]
size_t ShellminatorWebSocket::write |
( |
uint8_t |
b | ) |
|
|
override |
Write one byte to the channel.
- Parameters
-
b | The value that has to be written to the channel. |
- Returns
- The number of bytes that has been successfully written to the channel. Because it is the base class, it returns 0.
Definition at line 677 of file Shellminator-Websocket.cpp.
◆ wsDataProcessing()
void ShellminatorWebSocket::wsDataProcessing |
( |
char |
newChar | ) |
|
|
private |
◆ wsHeaderProcessing()
void ShellminatorWebSocket::wsHeaderProcessing |
( |
char |
newChar | ) |
|
|
private |
◆ client
WiFiClient ShellminatorWebSocket::client |
|
private |
◆ clientBuffer
◆ clientBufferCounter
int ShellminatorWebSocket::clientBufferCounter = 0 |
|
private |
◆ clientConnected
bool ShellminatorWebSocket::clientConnected = false |
|
private |
◆ clientKey
◆ clientLineNameBuffer
◆ clientLineValueBuffer
◆ clientVersion
int ShellminatorWebSocket::clientVersion |
|
private |
◆ connectCallback
◆ connectionUpgradeLineFound
bool ShellminatorWebSocket::connectionUpgradeLineFound |
|
private |
◆ dbg
Stream* ShellminatorWebSocket::dbg = NULL |
|
private |
◆ decodedDataXorCntr
uint8_t ShellminatorWebSocket::decodedDataXorCntr |
|
private |
◆ decodedHdrFin
bool ShellminatorWebSocket::decodedHdrFin |
|
private |
◆ decodedHdrMask
bool ShellminatorWebSocket::decodedHdrMask |
|
private |
◆ decodedHdrMaskKeys
uint8_t ShellminatorWebSocket::decodedHdrMaskKeys[4] |
|
private |
◆ decodedHdrPayloadCntr
uint8_t ShellminatorWebSocket::decodedHdrPayloadCntr |
|
private |
◆ decodedHdrPayloadLen
uint8_t ShellminatorWebSocket::decodedHdrPayloadLen |
|
private |
◆ decodedHdrType
◆ disconnectCallback
◆ httpGetLineFound
bool ShellminatorWebSocket::httpGetLineFound |
|
private |
◆ port
int ShellminatorWebSocket::port = 443 |
|
private |
◆ server
WiFiServer* ShellminatorWebSocket::server |
|
private |
◆ serverHeader
const char * ShellminatorWebSocket::serverHeader |
|
staticprivate |
Initial value:=
"HTTP/1.1 101 Switching Protocols\r\n"
"Server: Shellminator\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
"Sec-WebSocket-Version: 13\r\n"
"Sec-WebSocket-Accept: "
Definition at line 170 of file Shellminator-Websocket.hpp.
◆ serverKey
◆ streamBuffer
◆ streamBufferReadPointer
uint32_t ShellminatorWebSocket::streamBufferReadPointer |
|
private |
◆ streamBufferWritePointer
uint32_t ShellminatorWebSocket::streamBufferWritePointer |
|
private |
◆ upgradeWebsocketLineFound
bool ShellminatorWebSocket::upgradeWebsocketLineFound |
|
private |
◆ wsState