26#ifndef ROUTING_CLASSIC_PROTOCOL_STATE_INCLUDED
27#define ROUTING_CLASSIC_PROTOCOL_STATE_INCLUDED
51 std::optional<classic_protocol::message::server::Greeting>
89 std::optional<classic_protocol::message::client::Greeting> msg) {
99 std::optional<classic_protocol::message::server::Greeting> msg) {
protocol state of a classic protocol connection.
Definition: classic_protocol_state.h:37
HandshakeState handshake_state_
Definition: classic_protocol_state.h:195
classic_protocol::capabilities::value_type server_caps_
Definition: classic_protocol_state.h:173
uint8_t seq_id() const
Definition: classic_protocol_state.h:104
std::string schema()
Definition: classic_protocol_state.h:145
ClassicProtocolState()=default
void sent_attributes(std::string attrs)
Definition: classic_protocol_state.h:154
void seq_id(uint8_t id)
Definition: classic_protocol_state.h:106
std::string auth_method_name() const
Definition: classic_protocol_state.h:126
const std::optional< FrameInfo > & current_frame() const
Definition: classic_protocol_state.h:116
void handshake_state(HandshakeState state)
Definition: classic_protocol_state.h:160
uint8_t & seq_id()
Definition: classic_protocol_state.h:103
std::optional< classic_protocol::message::server::Greeting > server_greeting() const
Definition: classic_protocol_state.h:93
HandshakeState handshake_state() const
Definition: classic_protocol_state.h:158
void server_capabilities(classic_protocol::capabilities::value_type caps)
Definition: classic_protocol_state.h:63
std::string auth_method_data() const
Definition: classic_protocol_state.h:134
HandshakeState
Definition: classic_protocol_state.h:39
std::string sent_attributes()
Definition: classic_protocol_state.h:153
std::string auth_method_name_
Definition: classic_protocol_state.h:189
void client_greeting(std::optional< classic_protocol::message::client::Greeting > msg)
Definition: classic_protocol_state.h:88
void server_greeting(std::optional< classic_protocol::message::server::Greeting > msg)
Definition: classic_protocol_state.h:98
std::string sent_attributes_
Definition: classic_protocol_state.h:187
std::optional< FrameInfo > & current_frame()
Definition: classic_protocol_state.h:115
std::optional< uint8_t > msg_type_
Definition: classic_protocol_state.h:180
std::optional< uint8_t > & current_msg_type()
Definition: classic_protocol_state.h:120
classic_protocol::capabilities::value_type client_caps_
Definition: classic_protocol_state.h:174
uint8_t seq_id_
Definition: classic_protocol_state.h:182
void client_capabilities(classic_protocol::capabilities::value_type caps)
Definition: classic_protocol_state.h:67
uint64_t columns_left
Definition: classic_protocol_state.h:123
void schema(std::string s)
Definition: classic_protocol_state.h:146
std::optional< classic_protocol::message::server::Greeting > server_greeting_
Definition: classic_protocol_state.h:177
std::string username_
Definition: classic_protocol_state.h:184
void auth_method_name(std::string name)
Definition: classic_protocol_state.h:130
void attributes(std::string attrs)
Definition: classic_protocol_state.h:150
std::optional< FrameInfo > current_frame_
Definition: classic_protocol_state.h:179
ClassicProtocolState(classic_protocol::capabilities::value_type server_caps, classic_protocol::capabilities::value_type client_caps, std::optional< classic_protocol::message::server::Greeting > server_greeting, std::string username, std::string schema, std::string attributes)
Definition: classic_protocol_state.h:48
classic_protocol::capabilities::value_type client_capabilities() const
Definition: classic_protocol_state.h:71
uint32_t params_left
Definition: classic_protocol_state.h:124
classic_protocol::status::value_type status_flags_
Definition: classic_protocol_state.h:193
void auth_method_data(std::string data)
Definition: classic_protocol_state.h:138
std::optional< classic_protocol::message::client::Greeting > client_greeting() const
Definition: classic_protocol_state.h:83
std::string auth_method_data_
Definition: classic_protocol_state.h:190
const std::optional< uint8_t > & current_msg_type() const
Definition: classic_protocol_state.h:121
std::optional< classic_protocol::message::client::Greeting > client_greeting_
Definition: classic_protocol_state.h:176
std::string recv_attributes_
Definition: classic_protocol_state.h:186
classic_protocol::capabilities::value_type server_capabilities() const
Definition: classic_protocol_state.h:75
void username(std::string user)
Definition: classic_protocol_state.h:143
std::string username()
Definition: classic_protocol_state.h:142
std::string attributes()
Definition: classic_protocol_state.h:149
classic_protocol::capabilities::value_type shared_capabilities() const
Definition: classic_protocol_state.h:79
std::string schema_
Definition: classic_protocol_state.h:185
Definition: classic_protocol_state.h:198
bool trace_commands() const
trace the events of the commands.
Definition: classic_protocol_state.h:229
void gtid_executed(const std::string >id_execed)
Definition: classic_protocol_state.h:233
classic_protocol::status::value_type status_flags_
Definition: classic_protocol_state.h:260
PreparedStatements prepared_stmts_
Definition: classic_protocol_state.h:262
void wait_for_my_writes(bool v)
Definition: classic_protocol_state.h:238
const PreparedStatements & prepared_statements() const
Definition: classic_protocol_state.h:215
std::optional< AccessMode > access_mode_
Definition: classic_protocol_state.h:272
void access_mode(std::optional< AccessMode > v)
Definition: classic_protocol_state.h:254
std::string gtid_executed() const
Definition: classic_protocol_state.h:236
PreparedStatements & prepared_statements()
Definition: classic_protocol_state.h:218
bool wait_for_my_writes_
Definition: classic_protocol_state.h:269
bool wait_for_my_writes() const
Definition: classic_protocol_state.h:239
std::unordered_map< uint32_t, PreparedStatement > PreparedStatements
Definition: classic_protocol_state.h:213
void password(std::optional< std::string > pw)
Definition: classic_protocol_state.h:202
std::optional< std::string > password_
Definition: classic_protocol_state.h:257
void trace_commands(bool val)
Definition: classic_protocol_state.h:230
classic_protocol::status::value_type status_flags() const
Definition: classic_protocol_state.h:205
std::string gtid_executed_
Definition: classic_protocol_state.h:267
bool trace_commands_
Definition: classic_protocol_state.h:265
AccessMode
Definition: classic_protocol_state.h:248
std::chrono::seconds wait_for_my_writes_timeout_
Definition: classic_protocol_state.h:270
std::chrono::seconds wait_for_my_writes_timeout() const
Definition: classic_protocol_state.h:241
void status_flags(classic_protocol::status::value_type val)
Definition: classic_protocol_state.h:209
const std::optional< std::string > & password() const
Definition: classic_protocol_state.h:203
std::optional< AccessMode > access_mode() const
Definition: classic_protocol_state.h:253
void wait_for_my_writes_timeout(std::chrono::seconds timeout)
Definition: classic_protocol_state.h:244
Definition: classic_protocol_state.h:275
char * user
Definition: mysqladmin.cc:66
std::bitset< 32 > value_type
Definition: classic_protocol_constants.h:73
std::bitset< 16 > value_type
Definition: classic_protocol_constants.h:168
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:498
Definition: gcs_xcom_synode.h:64
case opt name
Definition: sslopt-case.h:29
Definition: classic_protocol_state.h:108
size_t forwarded_frame_size_
size of the whole frame that's already forwarded.
Definition: classic_protocol_state.h:111
size_t frame_size_
size of the whole frame.
Definition: classic_protocol_state.h:110
uint8_t seq_id_
sequence id.
Definition: classic_protocol_state.h:109
double seconds()
Definition: task.cc:310
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:510