![]() |
MySQL 8.0.41
Source Code Documentation
|
a Connection that can be switched to TLS. More...
#include <basic_protocol_splicer.h>
Public Member Functions | |
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... | |
Static Public Attributes | |
static constexpr size_t | kRecvBufferSize {16UL * 1024} |
Private Attributes | |
std::unique_ptr< ConnectionBase > | conn_ |
std::unique_ptr< RoutingConnectionBase > | routing_conn_ |
SslMode | ssl_mode_ |
std::unique_ptr< Channel > | channel_ |
std::unique_ptr< ProtocolStateBase > | protocol_ |
a Connection that can be switched to TLS.
wraps
|
inline |
|
inline |
|
inline |
assign a low-level connection.
|
inline |
async receive data from connection into the channel's receive buffer.
calls func when async operation is completed.
|
inline |
async send data from the channel's send buffer to the connection.
calls func when async operation is completed.
|
inline |
|
inline |
async wait until connection allows to send data.
calls func when async operation is completed.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
check if the channel is secure.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
staticconstexpr |
|
private |
|
private |
|
private |