Configuration for a client that uses a user-provided socket.
More...
#include <client_config.hpp>
|
| socket (stream_socket fd) |
|
| socket (const socket &)=delete |
|
socket & | operator= (const socket &)=delete |
|
| socket (socket &&other) noexcept |
|
socket & | operator= (socket &&other) noexcept |
|
stream_socket | take_fd () noexcept |
| Returns the file descriptor and setting the fd member variable to the invalid socket.
|
|
| has_ctx (ctx_ptr ptr) |
|
| has_ctx (has_ctx &&)=default |
|
| has_ctx (const has_ctx &)=default |
|
has_ctx & | operator= (has_ctx &&)=default |
|
has_ctx & | operator= (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 constexpr std::string_view | name = "socket" |
|
|
using | ctx_ptr = std::shared_ptr< ssl::context > |
|
template<class SumType > |
static has_ctx * | from (SumType &data) noexcept |
|
template<class SumType > |
static const has_ctx * | from (const SumType &data) noexcept |
|
Configuration for a client that uses a user-provided socket.
The documentation for this class was generated from the following file:
- libcaf_net/caf/net/dsl/client_config.hpp