26#ifndef ROUTING_CLASSIC_PROCESSOR_INCLUDED
27#define ROUTING_CLASSIC_PROCESSOR_INCLUDED
127 "use 'if (auto &tr = tracer()) { tr.trace(...); } instead")]]
void
base class of all the processors.
Definition: processor.h:55
MysqlRoutingClassicConnectionBase * conn_
Definition: processor.h:83
virtual ~BasicProcessor()=default
MysqlRoutingClassicConnectionBase * connection()
Definition: processor.h:78
Result
Definition: processor.h:57
const MysqlRoutingClassicConnectionBase * connection() const
Definition: processor.h:76
BasicProcessor(MysqlRoutingClassicConnectionBase *conn)
Definition: processor.h:72
virtual stdx::expected< Result, std::error_code > process()=0
SSL aware socket buffers.
Definition: channel.h:64
protocol state of a classic protocol connection.
Definition: classic_connection_base.h:52
Definition: classic_connection_base.h:221
a processor base class with helper functions.
Definition: processor.h:89
stdx::expected< void, std::error_code > discard_current_msg(Channel *src_channel, ClassicProtocolState *src_protocol)
discard to current message.
Definition: processor.cc:94
static void log_fatal_error_code(const char *msg, std::error_code ec)
log a message with error-code as error.
Definition: processor.cc:134
stdx::expected< Result, std::error_code > send_server_failed(std::error_code ec)
Definition: processor.cc:37
stdx::expected< Result, std::error_code > recv_client_failed(std::error_code ec)
Definition: processor.cc:66
stdx::expected< Result, std::error_code > client_socket_failed(std::error_code ec)
Definition: processor.cc:86
void trace(Tracer::Event e)
Definition: processor.cc:139
stdx::expected< Result, std::error_code > recv_server_failed(std::error_code ec)
Definition: processor.cc:46
stdx::expected< Result, std::error_code > send_client_failed(std::error_code ec)
Definition: processor.cc:57
stdx::expected< Result, std::error_code > server_socket_failed(std::error_code ec)
Definition: processor.cc:77
Tracer & tracer()
Definition: processor.cc:143
traces the timestamps of events in a stderr log.
Definition: tracer.h:49
Definition: expected.h:944