Factory type for the with(...).accept(...).start(...)
DSL.
More...
#include <server_factory.hpp>
|
template<class Token , class... Args> |
| server_factory (Token token, const dsl::generic_config_value &from, Args &&... args) |
|
| server_factory (server_factory &&other) noexcept |
|
server_factory & | operator= (server_factory &&other) noexcept |
|
template<class OnStart > |
expected< disposable > | start (OnStart on_start) && |
| Starts a server that accepts incoming connections with the length-prefixing protocol.
|
|
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 .
|
|
|
dsl::server_config_value & | base_config () override |
|
server_factory && | dref () |
|
auto | with_ssl_acceptor_or_socket (Fn &&fn) |
|
Factory type for the with(...).accept(...).start(...)
DSL.
◆ 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:
- libcaf_net/caf/net/lp/server_factory.hpp
- libcaf_net/caf/net/lp/server_factory.cpp