MySQL 8.0.39
Source Code Documentation
classic_forwarder.cc File Reference

Functions

static bool has_frame_header (ClassicProtocolState *src_protocol)
 
static stdx::expected< size_t, std::error_code > forward_frame_header_as_is (Channel *src_channel, Channel *dst_channel, size_t header_size)
 
static stdx::expected< size_t, std::error_code > write_frame_header (Channel *dst_channel, classic_protocol::frame::Header frame_header)
 
static stdx::expected< size_t, std::error_code > forward_header (Channel *src_channel, ClassicProtocolState *src_protocol, Channel *dst_channel, ClassicProtocolState *dst_protocol, size_t header_size, size_t payload_size)
 
static stdx::expected< bool, std::error_code > forward_frame_from_channel (Channel *src_channel, ClassicProtocolState *src_protocol, Channel *dst_channel, ClassicProtocolState *dst_protocol)
 
static stdx::expected< Forwarder::ForwardResult, std::error_code > forward_frame_sequence (Channel *src_channel, ClassicProtocolState *src_protocol, Channel *dst_channel, ClassicProtocolState *dst_protocol)
 

Function Documentation

◆ forward_frame_from_channel()

static stdx::expected< bool, std::error_code > forward_frame_from_channel ( Channel src_channel,
ClassicProtocolState src_protocol,
Channel dst_channel,
ClassicProtocolState dst_protocol 
)
static
Returns
frame-is-done on success and std::error_code on error.

◆ forward_frame_header_as_is()

static stdx::expected< size_t, std::error_code > forward_frame_header_as_is ( Channel src_channel,
Channel dst_channel,
size_t  header_size 
)
static

◆ forward_frame_sequence()

static stdx::expected< Forwarder::ForwardResult, std::error_code > forward_frame_sequence ( Channel src_channel,
ClassicProtocolState src_protocol,
Channel dst_channel,
ClassicProtocolState dst_protocol 
)
static

◆ forward_header()

static stdx::expected< size_t, std::error_code > forward_header ( Channel src_channel,
ClassicProtocolState src_protocol,
Channel dst_channel,
ClassicProtocolState dst_protocol,
size_t  header_size,
size_t  payload_size 
)
static

◆ has_frame_header()

static bool has_frame_header ( ClassicProtocolState src_protocol)
static

◆ write_frame_header()

static stdx::expected< size_t, std::error_code > write_frame_header ( Channel dst_channel,
classic_protocol::frame::Header  frame_header 
)
static