MySQL 8.4.2
Source Code Documentation
ServerSideClassicProtocolState Class Reference

#include <classic_protocol_state.h>

Inheritance diagram for ServerSideClassicProtocolState:
[legend]

Public Member Functions

 ClassicProtocolState ()=default
 
 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)
 
- Public Member Functions inherited from ClassicProtocolState
 ClassicProtocolState ()=default
 
 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)
 
void server_capabilities (classic_protocol::capabilities::value_type caps)
 
void client_capabilities (classic_protocol::capabilities::value_type caps)
 
classic_protocol::capabilities::value_type client_capabilities () const
 
classic_protocol::capabilities::value_type server_capabilities () const
 
classic_protocol::capabilities::value_type shared_capabilities () const
 
std::optional< classic_protocol::message::client::Greetingclient_greeting () const
 
void client_greeting (std::optional< classic_protocol::message::client::Greeting > msg)
 
std::optional< classic_protocol::message::server::Greetingserver_greeting () const
 
void server_greeting (std::optional< classic_protocol::message::server::Greeting > msg)
 
uint8_t & seq_id ()
 
uint8_t seq_id () const
 
void seq_id (uint8_t id)
 
std::optional< FrameInfo > & current_frame ()
 
const std::optional< FrameInfo > & current_frame () const
 
std::optional< uint8_t > & current_msg_type ()
 
const std::optional< uint8_t > & current_msg_type () const
 
std::string auth_method_name () const
 
void auth_method_name (std::string name)
 
std::string auth_method_data () const
 
void auth_method_data (std::string data)
 
std::string username ()
 
void username (std::string user)
 
std::string schema ()
 
void schema (std::string s)
 
std::string attributes ()
 
void attributes (std::string attrs)
 
std::string sent_attributes ()
 
void sent_attributes (std::string attrs)
 
HandshakeState handshake_state () const
 
void handshake_state (HandshakeState state)
 
SystemVariablessystem_variables ()
 
const SystemVariablessystem_variables () const
 

Additional Inherited Members

- Public Types inherited from ClassicProtocolState
enum class  HandshakeState { kConnected , kServerGreeting , kClientGreeting , kFinished }
 
- Public Attributes inherited from ClassicProtocolState
uint64_t columns_left {}
 
uint32_t params_left {}
 

Member Function Documentation

◆ ClassicProtocolState() [1/2]

ClassicProtocolState::ClassicProtocolState ( )
default

◆ ClassicProtocolState() [2/2]

ClassicProtocolState::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 
)
inline

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