C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
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>

Inherits caf::net::octet_stream::transport.

Public Types

using super = octet_stream::transport
 
using connection_handle = connection
 
using worker_ptr = std::unique_ptr< socket_event_layer >
 

Static Public Member Functions

static std::unique_ptr< transportmake (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()

static std::unique_ptr< 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()

static 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()

static 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 file: