C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::dsl::server_config::lazy Class Reference

Configuration for a server that creates the socket on demand. More...

#include <server_config.hpp>

Inheritance diagram for caf::net::dsl::server_config::lazy:
caf::net::dsl::has_make_ctx

Public Member Functions

 lazy (uint16_t port, std::string bind_address, bool reuse=true)
 
- Public Member Functions inherited from caf::net::dsl::has_make_ctx
void assign (const has_make_ctx *other) noexcept
 

Public Attributes

uint16_t port = 0
 The port number to bind to.
 
std::string bind_address
 The address to bind to.
 
bool reuse_addr = true
 Whether to set SO_REUSEADDR on the socket.
 
- Public Attributes inherited from caf::net::dsl::has_make_ctx
ctx_factory make_ctx
 SSL context factory for lazy loading SSL on demand.
 

Static Public Attributes

static constexpr std::string_view name = "lazy"
 

Additional Inherited Members

- Public Types inherited from caf::net::dsl::has_make_ctx
using ctx_ptr = std::shared_ptr<ssl::context>
 
using ctx_factory = std::function<expected<ctx_ptr>()>
 
- Static Public Member Functions inherited from caf::net::dsl::has_make_ctx
template<class SumType >
static auto from (SumType &data) noexcept
 

Detailed Description

Configuration for a server that creates the socket on demand.


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