MySQL 8.0.39
Source Code Documentation
|
Provides plugin access to communication channel. More...
#include <plugin_auth_common.h>
Public Attributes | |
int(* | read_packet )(struct MYSQL_PLUGIN_VIO *vio, unsigned char **buf) |
Plugin provides a pointer reference and this function sets it to the contents of any incoming packet. More... | |
int(* | write_packet )(struct MYSQL_PLUGIN_VIO *vio, const unsigned char *packet, int packet_len) |
Plugin provides a buffer with data and the length and this function sends it as a packet. More... | |
void(* | info )(struct MYSQL_PLUGIN_VIO *vio, struct MYSQL_PLUGIN_VIO_INFO *info) |
Fills in a MYSQL_PLUGIN_VIO_INFO structure, providing the information about the connection. More... | |
enum net_async_status(* | read_packet_nonblocking )(struct MYSQL_PLUGIN_VIO *vio, unsigned char **buf, int *result) |
Non blocking version of read_packet. More... | |
enum net_async_status(* | write_packet_nonblocking )(struct MYSQL_PLUGIN_VIO *vio, const unsigned char *pkt, int pkt_len, int *result) |
Non blocking version of write_packet. More... | |
Provides plugin access to communication channel.
void(* MYSQL_PLUGIN_VIO::info) (struct MYSQL_PLUGIN_VIO *vio, struct MYSQL_PLUGIN_VIO_INFO *info) |
Fills in a MYSQL_PLUGIN_VIO_INFO structure, providing the information about the connection.
int(* MYSQL_PLUGIN_VIO::read_packet) (struct MYSQL_PLUGIN_VIO *vio, unsigned char **buf) |
Plugin provides a pointer reference and this function sets it to the contents of any incoming packet.
Returns the packet length, or -1 if the plugin should terminate.
enum net_async_status(* MYSQL_PLUGIN_VIO::read_packet_nonblocking) (struct MYSQL_PLUGIN_VIO *vio, unsigned char **buf, int *result) |
Non blocking version of read_packet.
This function points buf to starting position of incoming packet. When this function returns NET_ASYNC_NOT_READY plugin should call this function again until all incoming packets are read. If return code is NET_ASYNC_COMPLETE, plugin can do further processing of read packets.
int(* MYSQL_PLUGIN_VIO::write_packet) (struct MYSQL_PLUGIN_VIO *vio, const unsigned char *packet, int packet_len) |
Plugin provides a buffer with data and the length and this function sends it as a packet.
Returns 0 on success, 1 on failure.
enum net_async_status(* MYSQL_PLUGIN_VIO::write_packet_nonblocking) (struct MYSQL_PLUGIN_VIO *vio, const unsigned char *pkt, int pkt_len, int *result) |
Non blocking version of write_packet.
Sends data available in pkt of length pkt_len to server in asynchronous way.