C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::lp::server_factory Class Reference

Factory type for the with(...).accept(...).start(...) DSL. More...

#include <server_factory.hpp>

Inheritance diagram for caf::net::lp::server_factory:
caf::net::dsl::server_factory_base< server_factory >

Classes

class  config_impl
 The configuration for a length-prefix framing server. More...
 

Public Member Functions

template<class Token , class... Args>
 server_factory (Token token, const dsl::generic_config_value &from, Args &&... args)
 
 server_factory (server_factory &&other) noexcept
 
server_factoryoperator= (server_factory &&other) noexcept
 
template<class OnStart >
expected< disposablestart (OnStart on_start) &&
 Starts a server that accepts incoming connections with the length-prefixing protocol.
 
- Public Member Functions inherited from caf::net::dsl::server_factory_base< server_factory >
server_factory && do_on_error (F callback) &&
 Sets the callback for errors.
 
server_factory && max_connections (size_t value) &&
 Configures how many concurrent connections the server accepts.
 
server_factory && reuse_address (bool value) &&
 Configures whether the server creates its socket with SO_REUSEADDR.
 

Protected Member Functions

dsl::server_config_value & base_config () override
 
- Protected Member Functions inherited from caf::net::dsl::server_factory_base< server_factory >
server_factory && dref ()
 
auto with_ssl_acceptor_or_socket (Fn &&fn)
 

Detailed Description

Factory type for the with(...).accept(...).start(...) DSL.

Member Function Documentation

◆ base_config()

dsl::server_config_value & caf::net::lp::server_factory::base_config ( )
overrideprotectedvirtual

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