MySQL 9.1.0
Source Code Documentation
NET_ASYNC Struct Reference

#include <mysql_async.h>

Public Attributes

unsigned char * cur_pos
 The position in buff we continue reads from when data is next available. More...
 
enum net_async_block_state async_blocking_state
 Blocking state. More...
 
enum net_async_operation async_operation
 Our current operation. More...
 
size_t async_bytes_wanted
 How many bytes we want to read. More...
 
bool read_rows_is_first_read
 Simple state to know if we're reading the first row, and command/query statuses. More...
 
enum net_send_command_status async_send_command_status
 
enum net_read_query_result_status async_read_query_result_status
 
enum net_async_read_packet_state async_packet_read_state
 State when waiting on an async read. More...
 
size_t async_packet_length
 Size of the packet we're currently reading. More...
 
unsigned char * async_write_headers
 Headers and vector for our async writes; see net_serv.c for detailed description. More...
 
struct io_vecasync_write_vector
 
size_t async_write_vector_size
 
size_t async_write_vector_current
 
unsigned char inline_async_write_header [NET_HEADER_SIZE+COMP_HEADER_SIZE+NET_HEADER_SIZE+1]
 If the packet length is less than MAX_PACKET_LENGTH then use a static array to hold the meta packet header. More...
 
struct io_vec inline_async_write_vector [3]
 
unsigned char ** compressed_write_buffers
 Keep track of compressed buffers. More...
 
size_t compressed_buffers_size
 Size of the compressed buffer. More...
 
struct mp_state mp_state
 

Member Data Documentation

◆ async_blocking_state

enum net_async_block_state NET_ASYNC::async_blocking_state

Blocking state.

◆ async_bytes_wanted

size_t NET_ASYNC::async_bytes_wanted

How many bytes we want to read.

◆ async_operation

enum net_async_operation NET_ASYNC::async_operation

Our current operation.

◆ async_packet_length

size_t NET_ASYNC::async_packet_length

Size of the packet we're currently reading.

◆ async_packet_read_state

enum net_async_read_packet_state NET_ASYNC::async_packet_read_state

State when waiting on an async read.

◆ async_read_query_result_status

enum net_read_query_result_status NET_ASYNC::async_read_query_result_status

◆ async_send_command_status

enum net_send_command_status NET_ASYNC::async_send_command_status

◆ async_write_headers

unsigned char* NET_ASYNC::async_write_headers

Headers and vector for our async writes; see net_serv.c for detailed description.

◆ async_write_vector

struct io_vec* NET_ASYNC::async_write_vector

◆ async_write_vector_current

size_t NET_ASYNC::async_write_vector_current

◆ async_write_vector_size

size_t NET_ASYNC::async_write_vector_size

◆ compressed_buffers_size

size_t NET_ASYNC::compressed_buffers_size

Size of the compressed buffer.

◆ compressed_write_buffers

unsigned char** NET_ASYNC::compressed_write_buffers

Keep track of compressed buffers.

◆ cur_pos

unsigned char* NET_ASYNC::cur_pos

The position in buff we continue reads from when data is next available.

◆ inline_async_write_header

unsigned char NET_ASYNC::inline_async_write_header[NET_HEADER_SIZE+COMP_HEADER_SIZE+ NET_HEADER_SIZE+1]

If the packet length is less than MAX_PACKET_LENGTH then use a static array to hold the meta packet header.

The array either holds the usual packet header or a compressed meta packet header as following. The compressed meta packet header is followwed by usual compresses packet heder that is 7 bytes in length.

Packet

Header
B1 B2 B3 : Packet length
B4 : Packet number
A generic interface for different kinds of packets.
Definition: pipeline_interfaces.h:51
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Payload
B5 : COM_COMMAND

Compressed Packet

Header
B1 B2 B3 : Compress packet length
B4 : Compress Packet Nunmber
00 00 00 : Indicates following payload is uncompressed
Payload
B8 B9 B10 : Packet size
B11 : Packet number
B12 : COM_COMMAND
size_t size(const char *const c)
Definition: base64.h:46

◆ inline_async_write_vector

struct io_vec NET_ASYNC::inline_async_write_vector[3]

◆ mp_state

struct mp_state NET_ASYNC::mp_state

◆ read_rows_is_first_read

bool NET_ASYNC::read_rows_is_first_read

Simple state to know if we're reading the first row, and command/query statuses.


The documentation for this struct was generated from the following file: