|
void | async_run () override |
|
void | stash_server_conn () override |
|
std::shared_ptr< MysqlRoutingClassicConnectionBase > | getptr () |
|
void | on_handshake_received () |
|
void | on_handshake_aborted () |
|
SslMode | source_ssl_mode () const |
|
SslMode | dest_ssl_mode () const |
|
net::impl::socket::native_handle_type | get_client_fd () const override |
|
std::string | get_client_address () const override |
| Returns address of client which connected to router. More...
|
|
std::string | get_server_address () const override |
| Returns address of server to which connection is established. More...
|
|
void | disconnect () override |
|
void | send_server_failed (std::error_code ec, bool call_finish=true) |
|
void | recv_server_failed (std::error_code ec, bool call_finish=true) |
|
void | send_client_failed (std::error_code ec, bool call_finish=true) |
|
void | recv_client_failed (std::error_code ec, bool call_finish=true) |
|
void | server_socket_failed (std::error_code ec, bool call_finish=true) |
|
virtual void | client_socket_failed (std::error_code ec, bool call_finish=true) |
|
void | resume () |
|
void | push_processor (std::unique_ptr< BasicProcessor > processor) |
|
void | pop_processor () |
|
stdx::expected< void, std::error_code > | track_session_changes (net::const_buffer session_trackers, classic_protocol::capabilities::value_type caps, bool ignore_some_state_changed=false) |
|
void | reset_to_initial () |
| reset the connection's settings to the initial-values. More...
|
|
ClientSideConnection::protocol_state_type & | client_protocol () |
|
const ClientSideConnection::protocol_state_type & | client_protocol () const |
|
ServerSideConnection::protocol_state_type & | server_protocol () |
|
const ServerSideConnection::protocol_state_type & | server_protocol () const |
|
ClientSideConnection & | client_conn () |
|
const ClientSideConnection & | client_conn () const |
|
ServerSideConnection & | server_conn () |
|
const ServerSideConnection & | server_conn () const |
|
std::string | get_destination_id () const override |
|
void | destination_id (const std::string &id) |
|
std::string | read_only_destination_id () const override |
|
void | read_only_destination_id (const std::string &destination_id) |
|
std::string | read_write_destination_id () const override |
|
void | read_write_destination_id (const std::string &destination_id) |
|
std::optional< net::ip::tcp::endpoint > | destination_endpoint () const override |
|
void | destination_endpoint (const std::optional< net::ip::tcp::endpoint > &ep) |
|
std::optional< net::ip::tcp::endpoint > | read_only_destination_endpoint () const override |
|
void | read_only_destination_endpoint (const std::optional< net::ip::tcp::endpoint > &ep) |
|
std::optional< net::ip::tcp::endpoint > | read_write_destination_endpoint () const override |
|
void | read_write_destination_endpoint (const std::optional< net::ip::tcp::endpoint > &ep) |
|
bool | authenticated () const |
| check if the connection is authenticated. More...
|
|
void | authenticated (bool v) |
|
bool | connection_sharing_possible () const |
| check if connection sharing is possible. More...
|
|
bool | connection_sharing_allowed () const |
| check if connection sharing is allowed. More...
|
|
void | connection_sharing_allowed_reset () |
| reset the connection-sharing state. More...
|
|
std::string | connection_sharing_blocked_by () const |
|
bool | greeting_from_router () const |
| if the router is sending the initial server-greeting. More...
|
|
void | requires_tls (bool v) |
| set if the server-connection requires TLS More...
|
|
bool | requires_tls () const |
| get if the server-connection requires TLS More...
|
|
void | requires_client_cert (bool v) |
| set if the server-connection requires a client cert More...
|
|
bool | requires_client_cert () const |
| get if the server-connection requires a client cert More...
|
|
void | some_state_changed (bool v) |
|
void | expected_server_mode (mysqlrouter::ServerMode v) |
|
mysqlrouter::ServerMode | expected_server_mode () const |
|
void | wait_for_my_writes (bool v) |
|
bool | wait_for_my_writes () const |
|
void | gtid_at_least_executed (const std::string >id) |
|
std::string | gtid_at_least_executed () const |
|
std::chrono::seconds | wait_for_my_writes_timeout () const |
|
void | wait_for_my_writes_timeout (std::chrono::seconds timeout) |
|
RouteDestination * | destinations () |
|
Destinations & | current_destinations () |
|
void | collation_connection_maybe_dirty (bool val) |
|
bool | collation_connection_maybe_dirty () const |
|
std::optional< classic_protocol::session_track::TransactionCharacteristics > | trx_characteristics () const |
|
void | trx_characteristics (std::optional< classic_protocol::session_track::TransactionCharacteristics > trx_chars) |
|
std::optional< classic_protocol::session_track::TransactionState > | trx_state () const |
|
ExecutionContext & | execution_context () |
|
const ExecutionContext & | execution_context () const |
|
void | trace (Tracer::Event e) |
|
Tracer & | tracer () |
|
net::steady_timer & | read_timer () |
|
net::steady_timer & | connect_timer () |
|
void | connect_error_code (const std::error_code &ec) |
|
std::error_code | connect_error_code () const |
|
void | diagnostic_area_changed (bool diagnostic_area_changed) |
|
bool | diagnostic_area_changed () const |
|
const TraceSpan & | events () const |
|
TraceSpan & | events () |
|
void | recv_from_either (FromEither v) |
|
FromEither | recv_from_either () const |
|
void | has_transient_error_at_connect (bool val) |
|
bool | has_transient_error_at_connect () const |
|
| MySQLRoutingConnectionBase (MySQLRoutingContext &context, std::function< void(MySQLRoutingConnectionBase *)> remove_callback) |
|
virtual | ~MySQLRoutingConnectionBase ()=default |
|
MySQLRoutingContext & | context () |
|
const MySQLRoutingContext & | context () const |
|
std::size_t | get_bytes_up () const |
|
std::size_t | get_bytes_down () const |
|
time_point_type | get_started () const |
|
time_point_type | get_connected_to_server () const |
|
time_point_type | get_last_sent_to_server () const |
|
time_point_type | get_last_received_from_server () const |
|
Stats | get_stats () const |
|
void | transfered_to_server (size_t bytes) |
|
void | transfered_to_client (size_t bytes) |
|
void | disassociate () |
|
void | accepted () |
|
virtual void | connected () |
|
template<class F > |
auto | disconnect_request (F &&f) |
|
bool | disconnect_requested () const |
|