REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Functions | |
uint32_t | swapEndianess (uint32_t num) |
uint64_t | swapEndianess (uint64_t num) |
uint32_t | readUntilSuccessfullOrError (network::TcpClient &socket, uint8_t *buffer, const uint32_t len) |
Header | readHeaderFromSocket (network::TcpClient &socket) |
FLASHMEM uint64_t | readExtendedPayloadLength (network::TcpClient &socket, const Header &header) |
void | readMaskingKey (network::TcpClient &socket, uint8_t *outputBuffer) |
FLASHMEM std::string | readData (network::TcpClient &socket, uint64_t extendedPayload) |
void | remaskData (std::string &data, const uint8_t *const maskingKey, uint64_t payloadLength) |
void | remaskData (std::string &data, const char *const maskingKey, size_t first, size_t len) |
Function Documentation
◆ readData()
FLASHMEM std::string websockets::internals::readData | ( | network::TcpClient & | socket, |
uint64_t | extendedPayload ) |
Definition at line 166 of file endpoint.cpp.
References readData(), readUntilSuccessfullOrError(), and uint32_t.
Referenced by readData().
◆ readExtendedPayloadLength()
FLASHMEM uint64_t websockets::internals::readExtendedPayloadLength | ( | network::TcpClient & | socket, |
const Header & | header ) |
Definition at line 143 of file endpoint.cpp.
References readExtendedPayloadLength(), readUntilSuccessfullOrError(), and swapEndianess().
Referenced by readExtendedPayloadLength().
◆ readHeaderFromSocket()
Header websockets::internals::readHeaderFromSocket | ( | network::TcpClient & | socket | ) |
Definition at line 135 of file endpoint.cpp.
References readHeaderFromSocket(), and readUntilSuccessfullOrError().
Referenced by readHeaderFromSocket().
◆ readMaskingKey()
void websockets::internals::readMaskingKey | ( | network::TcpClient & | socket, |
uint8_t * | outputBuffer ) |
Definition at line 161 of file endpoint.cpp.
References readMaskingKey(), and readUntilSuccessfullOrError().
Referenced by readMaskingKey().
◆ readUntilSuccessfullOrError()
uint32_t websockets::internals::readUntilSuccessfullOrError | ( | network::TcpClient & | socket, |
uint8_t * | buffer, | ||
const uint32_t | len ) |
Definition at line 127 of file endpoint.cpp.
References readUntilSuccessfullOrError(), and uint32_t.
Referenced by readData(), readExtendedPayloadLength(), readHeaderFromSocket(), readMaskingKey(), and readUntilSuccessfullOrError().
◆ remaskData() [1/2]
void websockets::internals::remaskData | ( | std::string & | data, |
const char *const | maskingKey, | ||
size_t | first, | ||
size_t | len ) |
Definition at line 378 of file endpoint.cpp.
References remaskData().
◆ remaskData() [2/2]
void websockets::internals::remaskData | ( | std::string & | data, |
const uint8_t *const | maskingKey, | ||
uint64_t | payloadLength ) |
Definition at line 190 of file endpoint.cpp.
References remaskData().
Referenced by remaskData(), and remaskData().
◆ swapEndianess() [1/2]
Definition at line 46 of file endpoint.cpp.
References uint32_t.
Referenced by readExtendedPayloadLength(), and swapEndianess().
◆ swapEndianess() [2/2]
uint64_t websockets::internals::swapEndianess | ( | uint64_t | num | ) |
Definition at line 55 of file endpoint.cpp.
References swapEndianess(), and uint32_t.