REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
websockets::network::TcpClient Struct Reference
#include <tcp.h>
Collaboration diagram for websockets::network::TcpClient:

Public Member Functions | |
TcpClient (LucidacWebsocketsClient *context) | |
TcpClient () | |
bool | connect (std::string host, int port) |
bool | poll () |
bool | available () |
void | send (std::string data) |
void | send (uint8_t *data, uint32_t len) |
std::string | readLine () |
int | read (uint8_t *buffer, uint32_t len) |
void | close () |
~TcpClient () | |
Public Attributes | |
LucidacWebsocketsClient * | context |
EthernetClient * | client |
Detailed Description
Constructor & Destructor Documentation
◆ TcpClient() [1/2]
websockets::network::TcpClient::TcpClient | ( | LucidacWebsocketsClient * | context | ) |
◆ TcpClient() [2/2]
◆ ~TcpClient()
Member Function Documentation
◆ available()
|
inline |
Definition at line 37 of file tcp.h.
References client.
Referenced by websockets::internals::readData(), readLine(), and websockets::internals::readUntilSuccessfullOrError().
◆ close()
|
inline |
Definition at line 63 of file tcp.h.
Referenced by readLine().
◆ connect()
|
inline |
◆ poll()
◆ read()
|
inline |
Definition at line 61 of file tcp.h.
Referenced by websockets::internals::readUntilSuccessfullOrError().
◆ readLine()
|
inline |
Definition at line 47 of file tcp.h.
References available(), and close().
◆ send() [1/2]
|
inline |
◆ send() [2/2]
|
inline |
Member Data Documentation
◆ client
EthernetClient* websockets::network::TcpClient::client |
Definition at line 21 of file tcp.h.
Referenced by available().
◆ context
LucidacWebsocketsClient* websockets::network::TcpClient::context |
The documentation for this struct was generated from the following files: