Base type for client factories for use with has_connect.
More...
#include <client_factory_base.hpp>
|
|
template<class F > |
| Derived & | do_on_error (F callback) |
| | Sets the callback for errors.
|
| |
| Derived & | retry_delay (timespan value) |
| | Sets the retry delay for connection attempts.
|
| |
| Derived & | connection_timeout (timespan value) |
| | Sets the connection timeout for connection attempts.
|
| |
| Derived & | max_retry_count (size_t value) |
| | Sets the maximum number of connection retry attempts.
|
| |
|
|
Derived & | dref () |
| |
|
template<class Fn > |
| auto | with_ssl_connection (Fn &&fn) |
| |
|
template<class Fn > |
| auto | with_ssl_connection_or_socket (Fn &&fn) |
| |
|
template<class Fn > |
| auto | with_ssl_connection_or_socket_select (bool use_ssl, Fn &&fn) |
| |
|
virtual client_config_value & | base_config ()=0 |
| |
template<class Derived>
class caf::net::dsl::client_factory_base< Derived >
Base type for client factories for use with has_connect.
◆ connection_timeout()
Sets the connection timeout for connection attempts.
- Parameters
-
| value | The new connection timeout. |
- Returns
- a reference to this
client_factory.
◆ max_retry_count()
Sets the maximum number of connection retry attempts.
- Parameters
-
| value | The new maximum retry count. |
- Returns
- a reference to this
client_factory.
◆ retry_delay()
Sets the retry delay for connection attempts.
- Parameters
-
| value | The new retry delay. |
- Returns
- a reference to this
client_factory.
The documentation for this class was generated from the following file:
- libcaf_net/caf/net/dsl/client_factory_base.hpp