xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
Xale::Net::LinuxSSLClientConnection Class Reference

SSL/TLS client connection (Linux). More...

#include <LinuxSSLClientConnection.h>

Inheritance diagram for Xale::Net::LinuxSSLClientConnection:
Inheritance graph
Collaboration diagram for Xale::Net::LinuxSSLClientConnection:
Collaboration graph

Public Member Functions

 LinuxSSLClientConnection (int fd, SSL *ssl)
 Construct from an accepted fd and its SSL object.
 ~LinuxSSLClientConnection () override
 Shuts down SSL and closes the socket.
int read (std::vector< uint8_t > &buffer, size_t size) override
 Read data through SSL.
int respond (const std::vector< uint8_t > *data, size_t size) override
 Send data through SSL.
void close () override
 Shutdown SSL and close the socket.
Public Member Functions inherited from Xale::Net::IClientConnection
virtual ~IClientConnection ()=default

Detailed Description

SSL/TLS client connection (Linux).

Takes ownership of the SSL* but NOT of the SSL_CTX* which stays in the listener socket.

Constructor & Destructor Documentation

◆ LinuxSSLClientConnection()

Xale::Net::LinuxSSLClientConnection::LinuxSSLClientConnection ( int fd,
SSL * ssl )

Construct from an accepted fd and its SSL object.

Parameters
fdAccepted client socket fd
sslSSL object already handshaked for this connection

◆ ~LinuxSSLClientConnection()

Xale::Net::LinuxSSLClientConnection::~LinuxSSLClientConnection ( )
override

Shuts down SSL and closes the socket.

Member Function Documentation

◆ close()

void Xale::Net::LinuxSSLClientConnection::close ( )
overridevirtual

Shutdown SSL and close the socket.

Implements Xale::Net::IClientConnection.

◆ read()

int Xale::Net::LinuxSSLClientConnection::read ( std::vector< uint8_t > & buffer,
size_t size )
overridevirtual

Read data through SSL.

Implements Xale::Net::IClientConnection.

◆ respond()

int Xale::Net::LinuxSSLClientConnection::respond ( const std::vector< uint8_t > * data,
size_t size )
overridevirtual

Send data through SSL.

Implements Xale::Net::IClientConnection.


The documentation for this class was generated from the following files: