C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::ssl::transport Class Reference

Implements a octet stream transport that manages a stream socket with encrypted communication over TLS. More...

#include <transport.hpp>

Public Types

using worker_ptr = std::unique_ptr<socket_event_layer>
 
using connection_handle = connection
 
using upper_layer_ptr = std::unique_ptr<octet_stream::upper_layer>
 An owning smart pointer type for storing an upper layer object.
 

Static Public Member Functions

static std::unique_ptr< octet_stream::transport > make (connection conn, upper_layer_ptr up)
 Creates a new instance of the SSL transport for a socket that has already performed the SSL handshake.
 
static worker_ptr make_server (connection conn, upper_layer_ptr up)
 Returns a worker that performs the OpenSSL server handshake on the socket.
 
static worker_ptr make_client (connection conn, upper_layer_ptr up)
 Returns a worker that performs the OpenSSL client handshake on the socket.
 

Detailed Description

Implements a octet stream transport that manages a stream socket with encrypted communication over TLS.

Member Function Documentation

◆ make()

std::unique_ptr< octet_stream::transport > caf::net::ssl::transport::make ( connection conn,
upper_layer_ptr up )
static

Creates a new instance of the SSL transport for a socket that has already performed the SSL handshake.

Parameters
connThe connection object for managing fd.
upThe layer operating on top of this transport.

◆ make_client()

transport::worker_ptr caf::net::ssl::transport::make_client ( connection conn,
upper_layer_ptr up )
static

Returns a worker that performs the OpenSSL client handshake on the socket.

On success, the worker performs a handover to an openssl_transport that runs up.

Parameters
connThe connection object for managing fd.
upThe layer operating on top of this transport.

◆ make_server()

transport::worker_ptr caf::net::ssl::transport::make_server ( connection conn,
upper_layer_ptr up )
static

Returns a worker that performs the OpenSSL server handshake on the socket.

On success, the worker performs a handover to an openssl_transport that runs up.

Parameters
connThe connection object for managing fd.
upThe layer operating on top of this transport.

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