#include <connection.h>
|
enum class | Function { kInitDestination
, kConnectFinish
} |
|
stdx::expected< void, std::error_code > | resolve () |
|
stdx::expected< void, std::error_code > | init_destination (routing_guidelines::Session_info session_info) |
|
stdx::expected< void, std::error_code > | init_endpoint () |
|
stdx::expected< void, std::error_code > | next_endpoint () |
|
stdx::expected< void, std::error_code > | next_destination () |
|
stdx::expected< void, std::error_code > | connect_init () |
|
stdx::expected< void, std::error_code > | try_connect () |
|
stdx::expected< void, std::error_code > | connect_finish () |
|
stdx::expected< void, std::error_code > | connected () |
|
stdx::expected< void, std::error_code > | connect_failed (std::error_code ec) |
|
net::io_context & | io_ctx_ |
|
MySQLRoutingContext & | context_ |
|
net::ip::tcp::resolver | resolver_ {io_ctx_} |
|
mysql_harness::DestinationSocket | server_sock_ |
|
mysql_harness::DestinationEndpoint | server_endpoint_ |
|
routing_guidelines::Session_info | session_info_ |
|
DestinationManager * | destination_manager_ |
|
std::unique_ptr< Destination > | destination_ {nullptr} |
|
std::vector< mysql_harness::DestinationEndpoint > | endpoints_ |
|
std::vector< mysql_harness::DestinationEndpoint >::iterator | endpoints_it_ |
|
std::error_code | last_ec_ {make_error_code(DestinationsErrc::kNotSet)} |
|
Function | func_ {Function::kInitDestination} |
|
net::steady_timer | connect_timer_ {io_ctx_} |
|
bool | connect_timed_out_ {false} |
|
std::optional< mysql_harness::Destination > | destination_id_ |
|
std::function< void(const mysql_harness::Destination &, std::error_code)> | on_connect_failure_ |
|
std::function< void(const mysql_harness::Destination &)> | on_connect_success_ |
|
std::function< bool(const mysql_harness::Destination &)> | on_is_destination_good_ |
|
◆ connect()
template<class ConnectionType >
◆ ConnectorBase()
template<class ConnectionType >
The documentation for this class was generated from the following file: