MySQL 8.4.2
Source Code Documentation
|
a Connection that can be switched to TLS. More...
#include <connection_base.h>
Public Types | |
using | protocol_state_type = T |
Public Member Functions | |
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) |
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 |
stdx::expected< void, std::error_code > | cancel () |
protocol_state_type & | protocol () |
const protocol_state_type & | protocol () 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... | |
Static Public Attributes | |
static constexpr size_t | kRecvBufferSize {16UL * 1024} |
Private Attributes | |
std::unique_ptr< ConnectionBase > | conn_ |
SslMode | ssl_mode_ |
Channel | channel_ |
protocol_state_type | protocol_ |
a Connection that can be switched to TLS.
wraps
using TlsSwitchableConnection< T >::protocol_state_type = T |
|
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 |
check if the channel is secure.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
staticconstexpr |
|
private |
|
private |