|
| | TlsSwitchableConnection (std::unique_ptr< ConnectionBase > conn, std::unique_ptr< RoutingConnectionBase > routing_conn, SslMode ssl_mode, std::unique_ptr< ProtocolStateBase > state) |
| |
| | TlsSwitchableConnection (std::unique_ptr< ConnectionBase > conn, std::unique_ptr< RoutingConnectionBase > routing_conn, SslMode ssl_mode, std::unique_ptr< Channel > channel, std::unique_ptr< ProtocolStateBase > state) |
| |
| std::vector< std::pair< std::string, std::string > > | initial_connection_attributes () const |
| |
| void | assign_connection (std::unique_ptr< ConnectionBase > conn) |
| | assign a low-level connection. More...
|
| |
| template<class Func > |
| void | async_recv (Func &&func) |
| | async receive data from connection into the channel's receive buffer. More...
|
| |
| template<class Func > |
| void | async_send (Func &&func) |
| | async send data from the channel's send buffer to the connection. More...
|
| |
| template<class Func > |
| void | async_wait_send (Func &&func) |
| | async wait until connection allows to send data. More...
|
| |
| template<class Func > |
| void | async_wait_error (Func &&func) |
| |
| Channel * | channel () |
| |
| const Channel * | channel () const |
| |
| SslMode | ssl_mode () const |
| |
| bool | is_open () const |
| |
| net::impl::socket::native_handle_type | native_handle () const |
| |
| stdx::expected< void, std::error_code > | close () const |
| |
| stdx::expected< void, std::error_code > | shutdown (net::socket_base::shutdown_type st) const |
| |
| std::string | endpoint () const |
| |
| uint64_t | reset_error_count (BlockedEndpoints &blocked_endpoints) |
| |
| uint64_t | increment_error_count (BlockedEndpoints &blocked_endpoints) |
| |
| stdx::expected< void, std::error_code > | cancel () |
| |
| ProtocolStateBase * | protocol () |
| |
| const ProtocolStateBase * | protocol () const |
| |
| std::unique_ptr< ConnectionBase > & | connection () |
| |
| bool | is_secure_transport () const |
| | check if the channel is secure. More...
|
| |
a Connection that can be switched to TLS.
wraps
- a low-level connections (conn)
- a routing connection (endpoints, destinations, ...)
- a tls switchable (a SSL_CTX * wrapper)
- protocol state (classic, xproto)