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

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

#include <server_config.hpp>

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

Public Member Functions

 socket (tcp_accept_socket fd)
 
tcp_accept_socket take_fd () noexcept
 Returns the file descriptor and setting the fd member variable to the invalid socket.
 
- Public Member Functions inherited from caf::net::dsl::has_make_ctx
void assign (const has_make_ctx *other) noexcept
 

Public Attributes

tcp_accept_socket fd
 The socket file descriptor to use.
 
- 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 = "socket"
 

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 uses a user-provided socket.


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