Configuration for a client that creates the socket on demand.
More...
#include <client_config.hpp>
|
| lazy (std::string host, uint16_t port) |
|
| lazy (const uri &addr) |
|
| 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.
|
|
|
server_t | server |
| The address for reaching the server or an error.
|
|
timespan | retry_delay = std::chrono::seconds{1} |
| The delay between connection attempts.
|
|
timespan | connection_timeout = infinite |
| The timeout when trying to connect.
|
|
size_t | max_retry_count = 0 |
| The maximum amount of retries.
|
|
std::shared_ptr< ssl::context > | ctx |
| SSL context for secure servers.
|
|
|
static constexpr std::string_view | name = "lazy" |
|
|
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 creates the socket on demand.
The documentation for this class was generated from the following file:
- libcaf_net/caf/net/dsl/client_config.hpp