MySQL 9.1.0
Source Code Documentation
server_mock::MySQLServerMockSessionClassic Class Reference

#include <classic_mock_session.h>

Inheritance diagram for server_mock::MySQLServerMockSessionClassic:
[legend]

Public Member Functions

 MySQLServerMockSessionClassic (ProtocolBase::socket_type client_sock, ProtocolBase::endpoint_type client_ep, TlsServerContext &tls_server_ctx, std::unique_ptr< StatementReaderBase > statement_processor, const bool debug_mode, const bool with_tls)
 
void run () override
 
void cancel () override
 
void terminate () override
 
- Public Member Functions inherited from server_mock::MySQLServerMockSession
 MySQLServerMockSession (std::unique_ptr< StatementReaderBase > statement_processor, const bool debug_mode)
 
virtual ~MySQLServerMockSession ()=default
 
bool debug_mode () const
 
void disconnector (std::function< void()> func)
 
void disconnect ()
 

Private Member Functions

void server_greeting ()
 
void client_greeting ()
 
void auth_switched ()
 
void idle ()
 
void send_response_then_idle ()
 
void send_response_then_disconnect ()
 
void finish ()
 
stdx::expected< void, ErrorResponseauthenticate (const StatementReaderBase::handshake_data &handshake, const std::vector< uint8_t > &client_auth_method_data)
 

Private Attributes

MySQLClassicProtocol protocol_
 
bool with_tls_ {false}
 
std::optional< StatementReaderBase::handshake_dataexpected_handshake_
 
mysql_harness::logging::DomainLogger logger_
 

Additional Inherited Members

- Protected Attributes inherited from server_mock::MySQLServerMockSession
std::unique_ptr< StatementReaderBasejson_reader_
 

Constructor & Destructor Documentation

◆ MySQLServerMockSessionClassic()

server_mock::MySQLServerMockSessionClassic::MySQLServerMockSessionClassic ( ProtocolBase::socket_type  client_sock,
ProtocolBase::endpoint_type  client_ep,
TlsServerContext tls_server_ctx,
std::unique_ptr< StatementReaderBase statement_processor,
const bool  debug_mode,
const bool  with_tls 
)
inline

Member Function Documentation

◆ auth_switched()

void server_mock::MySQLServerMockSessionClassic::auth_switched ( )
private

◆ authenticate()

stdx::expected< void, ErrorResponse > server_mock::MySQLServerMockSessionClassic::authenticate ( const StatementReaderBase::handshake_data handshake,
const std::vector< uint8_t > &  client_auth_method_data 
)
private

◆ cancel()

void server_mock::MySQLServerMockSessionClassic::cancel ( )
inlineoverridevirtual

◆ client_greeting()

void server_mock::MySQLServerMockSessionClassic::client_greeting ( )
private

if the client client wants to switch to a method the server does not understand, force the server's method.

◆ finish()

void server_mock::MySQLServerMockSessionClassic::finish ( )
private

◆ idle()

void server_mock::MySQLServerMockSessionClassic::idle ( )
private

◆ run()

void server_mock::MySQLServerMockSessionClassic::run ( )
overridevirtual

◆ send_response_then_disconnect()

void server_mock::MySQLServerMockSessionClassic::send_response_then_disconnect ( )
private

◆ send_response_then_idle()

void server_mock::MySQLServerMockSessionClassic::send_response_then_idle ( )
private

◆ server_greeting()

void server_mock::MySQLServerMockSessionClassic::server_greeting ( )
private

◆ terminate()

void server_mock::MySQLServerMockSessionClassic::terminate ( )
inlineoverridevirtual

Member Data Documentation

◆ expected_handshake_

std::optional<StatementReaderBase::handshake_data> server_mock::MySQLServerMockSessionClassic::expected_handshake_
private

◆ logger_

mysql_harness::logging::DomainLogger server_mock::MySQLServerMockSessionClassic::logger_
private

◆ protocol_

MySQLClassicProtocol server_mock::MySQLServerMockSessionClassic::protocol_
private

◆ with_tls_

bool server_mock::MySQLServerMockSessionClassic::with_tls_ {false}
private

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