TcpClientStream.h
Go to the documentation of this file.
size_t write(uint8_t charToWrite) override
Writes a single character to output stream.
Definition: TcpClientStream.h:24
size_t write(const uint8_t *buffer, size_t size) override
Writes characters from a buffer to output stream.
Definition: TcpClientStream.h:48
int available() override
Definition: TcpClientStream.h:67
void setClient(TcpClient &client)
Definition: TcpClientStream.h:32
size_t write(uint8_t c) override
Writes a single character to output stream.
Definition: TcpClientStream.h:62
TcpClientStream(TcpClient &client, size_t cbufferSize=1024, size_t threshold=400)
Definition: TcpClientStream.h:26
bool push(const uint8_t *buffer, size_t size)
Definition: TcpClientStream.h:37
size_t readBytes(char *buffer, size_t length) override
Read chars from stream into buffer.
Definition: TcpClientStream.h:43
size_t readBytes(char *buffer, size_t length) override
Read chars from stream into buffer.
Definition: TcpClient.h:46
bool send(const char *data, uint16_t len, bool forceCloseAfterSent=false)
void setReceiveDelegate(TcpClientDataDelegate receiveCb=nullptr)
Set or clear the callback for received data.
Definition: TcpClient.h:89
void commit()
Tries to send the pending data immediately.
Definition: TcpClient.h:144
Delegate< bool(TcpClient &client, char *data, int size)> TcpClientDataDelegate
Definition: TcpClient.h:26
Definition: Components/Hosted/include/Hosted/Client.h:32