MySQL 8.0.39
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 ()
 
bool authenticate (const std::vector< uint8_t > &client_auth_method_data)
 

Private Attributes

MySQLClassicProtocol protocol_
 
bool with_tls_ {false}
 

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()

bool server_mock::MySQLServerMockSessionClassic::authenticate ( 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

◆ 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

◆ 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: