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

Linux SSL/TLS implementation of IListenerSocket. More...

#include <LinuxSSLListenerSocket.h>

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

Public Member Functions

 LinuxSSLListenerSocket (std::string certFile, std::string keyFile)
 Construct with paths to PEM certificate and key files.
bool open (int port) override
 Bind and start listening, initialise SSL context.
std::unique_ptr< IClientConnectionacceptClient () override
 Block until a client connects, perform SSL handshake, return connection.
void close () override
 Close the listening socket and free SSL context.
Public Member Functions inherited from Xale::Net::IListenerSocket
virtual ~IListenerSocket ()=default

Detailed Description

Linux SSL/TLS implementation of IListenerSocket.

Constructor & Destructor Documentation

◆ LinuxSSLListenerSocket()

Xale::Net::LinuxSSLListenerSocket::LinuxSSLListenerSocket ( std::string certFile,
std::string keyFile )

Construct with paths to PEM certificate and key files.

Member Function Documentation

◆ acceptClient()

std::unique_ptr< IClientConnection > Xale::Net::LinuxSSLListenerSocket::acceptClient ( )
overridevirtual

Block until a client connects, perform SSL handshake, return connection.

Returns
IClientConnection for the accepted client, nullptr on error

Implements Xale::Net::IListenerSocket.

◆ close()

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

Close the listening socket and free SSL context.

Implements Xale::Net::IListenerSocket.

◆ open()

bool Xale::Net::LinuxSSLListenerSocket::open ( int port)
overridevirtual

Bind and start listening, initialise SSL context.

Implements Xale::Net::IListenerSocket.


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