Configuration for a client that creates the socket on demand.
More...
#include <client_config.hpp>
|
using | server_t = std::variant<server_address, uri> |
| Type for holding a client address.
|
|
using | ctx_ptr = std::shared_ptr<ssl::context> |
|
using | ctx_factory = std::function<expected<ctx_ptr>()> |
|
|
| lazy (std::string host, uint16_t port) |
|
| lazy (const uri &addr) |
|
void | assign (const has_make_ctx *other) noexcept |
|
|
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.
|
|
ctx_factory | make_ctx |
| SSL context factory for lazy loading SSL on demand.
|
|
|
static constexpr std::string_view | name = "lazy" |
|
|
template<class SumType > |
static auto | from (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