|
xale-db 1.0
minimal SQL engine, written in c++
|
Represents an established per-client TCP connection. More...
#include <IClientConnection.h>


Public Member Functions | |
| virtual | ~IClientConnection ()=default |
| virtual int | read (std::vector< uint8_t > &buffer, size_t size)=0 |
| Read data from the client. | |
| virtual int | respond (const std::vector< uint8_t > *data, size_t size)=0 |
| Send data to the client. | |
| virtual void | close ()=0 |
| Close this client connection. | |
Represents an established per-client TCP connection.
Returned by IListenerSocket::acceptClient(). Each instance is independent and safe to use from a dedicated thread.
|
virtualdefault |
|
pure virtual |
Close this client connection.
Implemented in Xale::Net::LinuxSSLClientConnection.
|
pure virtual |
Read data from the client.
| buffer | Buffer filled with received bytes |
| size | Maximum bytes to read |
Implemented in Xale::Net::LinuxSSLClientConnection.
|
pure virtual |
Send data to the client.
| data | Data to send |
| size | Number of bytes to send |
Implemented in Xale::Net::LinuxSSLClientConnection.