C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::web_socket::client_factory Class Reference

Factory for the with(...).connect(...).start(...) DSL. More...

#include <client_factory.hpp>

Inheritance diagram for caf::net::web_socket::client_factory:
caf::net::dsl::client_factory_base< client_factory >

Public Member Functions

template<class Token , class... Args>
 client_factory (Token token, const dsl::generic_config_value &from, Args &&... args)
 
 client_factory (client_factory &&other) noexcept
 
client_factoryoperator= (client_factory &&other) noexcept
 
template<class OnStart >
expected< disposablestart (OnStart on_start)
 Starts a connection with the length-prefixing protocol.
 
- Public Member Functions inherited from caf::net::dsl::client_factory_base< client_factory >
client_factory & do_on_error (F callback)
 Sets the callback for errors.
 
client_factory & retry_delay (timespan value)
 Sets the retry delay for connection attempts.
 
client_factory & connection_timeout (timespan value)
 Sets the connection timeout for connection attempts.
 
client_factory & max_retry_count (size_t value)
 Sets the maximum number of connection retry attempts.
 

Protected Member Functions

dsl::client_config_value & base_config () override
 
- Protected Member Functions inherited from caf::net::dsl::client_factory_base< client_factory >
client_factory & dref ()
 
auto with_ssl_connection (Fn &&fn)
 
auto with_ssl_connection_or_socket (Fn &&fn)
 
auto with_ssl_connection_or_socket_select (bool use_ssl, Fn &&fn)
 

Detailed Description

Factory for the with(...).connect(...).start(...) DSL.

Member Function Documentation

◆ base_config()

dsl::client_config_value & caf::net::web_socket::client_factory::base_config ( )
overrideprotectedvirtual

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