MySQL 9.1.0
Source Code Documentation
TlsSwitchableClientConnection< T > Class Template Reference

#include <basic_protocol_splicer.h>

Inheritance diagram for TlsSwitchableClientConnection< T >:
[legend]

Public Types

using protocol_state_type = typename base_class_::protocol_state_type
 
- Public Types inherited from TlsSwitchableConnection< T >
using protocol_state_type = T
 

Public Member Functions

 TlsSwitchableClientConnection (std::unique_ptr< ConnectionBase > conn, std::unique_ptr< RoutingConnectionBase > routing_conn, SslMode ssl_mode, protocol_state_type state)
 
 TlsSwitchableClientConnection (std::unique_ptr< ConnectionBase > conn, std::unique_ptr< RoutingConnectionBase > routing_conn, SslMode ssl_mode, Channel channel, protocol_state_type state)
 
std::vector< std::pair< std::string, std::string > > initial_connection_attributes () const
 
uint64_t reset_error_count (BlockedEndpoints &blocked_endpoints)
 
uint64_t increment_error_count (BlockedEndpoints &blocked_endpoints)
 
- Public Member Functions inherited from TlsSwitchableConnection< T >
 TlsSwitchableConnection (std::unique_ptr< ConnectionBase > conn, SslMode ssl_mode, protocol_state_type state)
 
 TlsSwitchableConnection (std::unique_ptr< ConnectionBase > conn, SslMode ssl_mode, Channel channel, protocol_state_type state)
 
void assign_connection (std::unique_ptr< ConnectionBase > conn)
 assign a low-level connection. More...
 
void prepare_for_pool ()
 
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)
 
Channelchannel ()
 
const Channelchannel () 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
 
stdx::expected< void, std::error_code > cancel ()
 
protocol_state_typeprotocol ()
 
const protocol_state_typeprotocol () const
 
std::unique_ptr< ConnectionBase > & connection ()
 
const std::unique_ptr< ConnectionBase > & connection () const
 
bool is_secure_transport () const
 check if the channel is secure. More...
 

Private Types

using base_class_ = TlsSwitchableConnection< T >
 

Private Attributes

std::unique_ptr< RoutingConnectionBaserouting_conn_
 

Additional Inherited Members

- Static Public Attributes inherited from TlsSwitchableConnection< T >
static constexpr size_t kRecvBufferSize {16UL * 1024}
 

Member Typedef Documentation

◆ base_class_

template<class T >
using TlsSwitchableClientConnection< T >::base_class_ = TlsSwitchableConnection<T>
private

◆ protocol_state_type

Constructor & Destructor Documentation

◆ TlsSwitchableClientConnection() [1/2]

template<class T >
TlsSwitchableClientConnection< T >::TlsSwitchableClientConnection ( std::unique_ptr< ConnectionBase conn,
std::unique_ptr< RoutingConnectionBase routing_conn,
SslMode  ssl_mode,
protocol_state_type  state 
)
inline

◆ TlsSwitchableClientConnection() [2/2]

template<class T >
TlsSwitchableClientConnection< T >::TlsSwitchableClientConnection ( std::unique_ptr< ConnectionBase conn,
std::unique_ptr< RoutingConnectionBase routing_conn,
SslMode  ssl_mode,
Channel  channel,
protocol_state_type  state 
)
inline

Member Function Documentation

◆ increment_error_count()

template<class T >
uint64_t TlsSwitchableClientConnection< T >::increment_error_count ( BlockedEndpoints blocked_endpoints)
inline

◆ initial_connection_attributes()

template<class T >
std::vector< std::pair< std::string, std::string > > TlsSwitchableClientConnection< T >::initial_connection_attributes ( ) const
inline

◆ reset_error_count()

template<class T >
uint64_t TlsSwitchableClientConnection< T >::reset_error_count ( BlockedEndpoints blocked_endpoints)
inline

Member Data Documentation

◆ routing_conn_

template<class T >
std::unique_ptr<RoutingConnectionBase> TlsSwitchableClientConnection< T >::routing_conn_
private

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