26#ifndef ROUTING_SRC_PROCESSORS_BASE_CLASSIC_FORWARDER_H_
27#define ROUTING_SRC_PROCESSORS_BASE_CLASSIC_FORWARDER_H_
36 using Processor::Processor;
58 bool flush_before_next_func_optional =
true)
89 bool flush_before_next_func_optional =
true)
forward a mysql packet from the client to the server.
Definition: classic_forwarder.h:50
stdx::expected< Result, std::error_code > forward()
Definition: classic_forwarder.cc:304
stdx::expected< ForwardResult, std::error_code > forward_frame_sequence()
Definition: classic_forwarder.cc:350
Stage stage() const
Definition: classic_forwarder.h:65
ClientToServerForwarder(MysqlRoutingClassicConnectionBase *conn, bool flush_before_next_func_optional=true)
Definition: classic_forwarder.h:57
bool flush_before_next_func_optional_
Definition: classic_forwarder.h:73
stdx::expected< Result, std::error_code > process() override
Definition: classic_forwarder.cc:292
Stage stage_
Definition: classic_forwarder.h:75
Stage
Definition: classic_forwarder.h:52
void stage(Stage stage)
Definition: classic_forwarder.h:64
std::optional< std::string_view > diagnostic_stage_name() const override
stage name of a staged processor.
Definition: classic_forwarder.cc:363
a generic forwarder for mysql packets.
Definition: classic_forwarder.h:34
ForwardResult
Definition: classic_forwarder.h:38
Definition: classic_connection_base.h:57
a processor base class with helper functions.
Definition: processor.h:109
forward a mysql packet from the server to the client.
Definition: classic_forwarder.h:81
std::optional< std::string_view > diagnostic_stage_name() const override
stage name of a staged processor.
Definition: classic_forwarder.cc:376
stdx::expected< ForwardResult, std::error_code > forward_frame_sequence()
Definition: classic_forwarder.cc:278
void stage(Stage stage)
Definition: classic_forwarder.h:95
stdx::expected< Result, std::error_code > process() override
Definition: classic_forwarder.cc:218
ServerToClientForwarder(MysqlRoutingClassicConnectionBase *conn, bool flush_before_next_func_optional=true)
Definition: classic_forwarder.h:88
Stage stage() const
Definition: classic_forwarder.h:96
stdx::expected< Result, std::error_code > forward()
Definition: classic_forwarder.cc:230
Stage stage_
Definition: classic_forwarder.h:106
Stage
Definition: classic_forwarder.h:83
bool flush_before_next_func_optional_
Definition: classic_forwarder.h:104
Definition: expected.h:286