C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
caf::net::dsl::has_ctx Class Reference

Configuration for a client that uses a user-provided socket. More...

#include <has_ctx.hpp>

Inheritance diagram for caf::net::dsl::has_ctx:
caf::net::dsl::client_config::lazy caf::net::dsl::client_config::socket caf::net::dsl::generic_config::lazy caf::net::dsl::server_config::lazy caf::net::dsl::server_config::socket

Public Types

using ctx_ptr = std::shared_ptr< ssl::context >
 

Public Member Functions

 has_ctx (ctx_ptr ptr)
 
 has_ctx (has_ctx &&)=default
 
 has_ctx (const has_ctx &)=default
 
has_ctxoperator= (has_ctx &&)=default
 
has_ctxoperator= (const has_ctx &)=default
 
template<class F >
auto connection_with_ctx (F &&f)
 Returns a function that, when called with a stream_socket, calls f either with a new SSL connection from ctx or with the file the file descriptor if no SSL context is defined.
 
template<class F >
auto acceptor_with_ctx (F &&f)
 Returns a function that, when called with an accept socket, calls f either with a new SSL acceptor from ctx or with the file the file descriptor if no SSL context is defined.
 

Static Public Member Functions

template<class SumType >
static has_ctxfrom (SumType &data) noexcept
 
template<class SumType >
static const has_ctxfrom (const SumType &data) noexcept
 

Public Attributes

std::shared_ptr< ssl::contextctx
 SSL context for secure servers.
 

Detailed Description

Configuration for a client that uses a user-provided socket.


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