MySQL 8.0.40
Source Code Documentation
ProtocolSplicerBase Class Reference

splices two connections together. More...

#include <basic_protocol_splicer.h>

Public Member Functions

 ProtocolSplicerBase (TlsSwitchableConnection client_conn, TlsSwitchableConnection server_conn)
 
template<class Func >
void async_wait_send_server (Func &&func)
 
template<class Func >
void async_recv_server (Func &&func)
 
template<class Func >
void async_send_server (Func &&func)
 
template<class Func >
void async_recv_client (Func &&func)
 
template<class Func >
void async_send_client (Func &&func)
 
template<class Func >
void async_client_wait_error (Func &&func)
 
TlsSwitchableConnectionclient_conn ()
 
const TlsSwitchableConnectionclient_conn () const
 
TlsSwitchableConnectionserver_conn ()
 
const TlsSwitchableConnectionserver_conn () const
 
SslMode source_ssl_mode () const
 
SslMode dest_ssl_mode () const
 
Channelclient_channel ()
 
const Channelclient_channel () const
 
Channelserver_channel ()
 
stdx::expected< void, std::error_code > tls_accept ()
 accept a TLS connection from the client_channel_. More...
 

Protected Attributes

TlsSwitchableConnection client_conn_
 
TlsSwitchableConnection server_conn_
 

Detailed Description

splices two connections together.

Constructor & Destructor Documentation

◆ ProtocolSplicerBase()

ProtocolSplicerBase::ProtocolSplicerBase ( TlsSwitchableConnection  client_conn,
TlsSwitchableConnection  server_conn 
)
inline

Member Function Documentation

◆ async_client_wait_error()

template<class Func >
void ProtocolSplicerBase::async_client_wait_error ( Func &&  func)
inline

◆ async_recv_client()

template<class Func >
void ProtocolSplicerBase::async_recv_client ( Func &&  func)
inline

◆ async_recv_server()

template<class Func >
void ProtocolSplicerBase::async_recv_server ( Func &&  func)
inline

◆ async_send_client()

template<class Func >
void ProtocolSplicerBase::async_send_client ( Func &&  func)
inline

◆ async_send_server()

template<class Func >
void ProtocolSplicerBase::async_send_server ( Func &&  func)
inline

◆ async_wait_send_server()

template<class Func >
void ProtocolSplicerBase::async_wait_send_server ( Func &&  func)
inline

◆ client_channel() [1/2]

Channel * ProtocolSplicerBase::client_channel ( )
inline

◆ client_channel() [2/2]

const Channel * ProtocolSplicerBase::client_channel ( ) const
inline

◆ client_conn() [1/2]

TlsSwitchableConnection & ProtocolSplicerBase::client_conn ( )
inline

◆ client_conn() [2/2]

const TlsSwitchableConnection & ProtocolSplicerBase::client_conn ( ) const
inline

◆ dest_ssl_mode()

SslMode ProtocolSplicerBase::dest_ssl_mode ( ) const
inline

◆ server_channel()

Channel * ProtocolSplicerBase::server_channel ( )
inline

◆ server_conn() [1/2]

TlsSwitchableConnection & ProtocolSplicerBase::server_conn ( )
inline

◆ server_conn() [2/2]

const TlsSwitchableConnection & ProtocolSplicerBase::server_conn ( ) const
inline

◆ source_ssl_mode()

SslMode ProtocolSplicerBase::source_ssl_mode ( ) const
inline

◆ tls_accept()

stdx::expected< void, std::error_code > ProtocolSplicerBase::tls_accept ( )
inline

accept a TLS connection from the client_channel_.

Member Data Documentation

◆ client_conn_

TlsSwitchableConnection ProtocolSplicerBase::client_conn_
protected

◆ server_conn_

TlsSwitchableConnection ProtocolSplicerBase::server_conn_
protected

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