MySQL 8.3.0
Source Code Documentation
vio_priv.h File Reference

Structures and functions private to the vio package. More...

#include <mysql_com.h>
#include "m_string.h"
#include "my_sys.h"
#include "mysql/psi/psi_memory.h"
#include "violite.h"

Go to the source code of this file.

Macros

#define DONT_MAP_VIO
 

Functions

bool vio_buff_has_data (Vio *vio)
 
int vio_socket_io_wait (Vio *vio, enum enum_vio_io_event event)
 Attempt to wait for an I/O event on a socket. More...
 
int vio_socket_timeout (Vio *vio, uint which, bool old_mode)
 
size_t vio_ssl_read (Vio *vio, uchar *buf, size_t size)
 
size_t vio_ssl_write (Vio *vio, const uchar *buf, size_t size)
 
int vio_ssl_shutdown (Vio *vio)
 
void vio_ssl_delete (Vio *vio)
 
bool vio_ssl_has_data (Vio *vio)
 

Variables

PSI_memory_key key_memory_vio
 
PSI_memory_key key_memory_vio_read_buffer
 
PSI_memory_key key_memory_vio_ssl_fd
 

Detailed Description

Structures and functions private to the vio package.

Macro Definition Documentation

◆ DONT_MAP_VIO

#define DONT_MAP_VIO

Function Documentation

◆ vio_buff_has_data()

bool vio_buff_has_data ( Vio vio)

◆ vio_socket_io_wait()

int vio_socket_io_wait ( Vio vio,
enum enum_vio_io_event  event 
)

Attempt to wait for an I/O event on a socket.

Parameters
vioVIO object representing a connected socket.
eventThe type of I/O event (read or write) to wait for.
Returns
Return value is -1 on failure, 0 on success.

◆ vio_socket_timeout()

int vio_socket_timeout ( Vio vio,
uint  which,
bool  old_mode 
)

◆ vio_ssl_delete()

void vio_ssl_delete ( Vio vio)

◆ vio_ssl_has_data()

bool vio_ssl_has_data ( Vio vio)

◆ vio_ssl_read()

size_t vio_ssl_read ( Vio vio,
uchar buf,
size_t  size 
)

◆ vio_ssl_shutdown()

int vio_ssl_shutdown ( Vio vio)

◆ vio_ssl_write()

size_t vio_ssl_write ( Vio vio,
const uchar buf,
size_t  size 
)

Variable Documentation

◆ key_memory_vio

PSI_memory_key key_memory_vio
extern

◆ key_memory_vio_read_buffer

PSI_memory_key key_memory_vio_read_buffer
extern

◆ key_memory_vio_ssl_fd

PSI_memory_key key_memory_vio_ssl_fd
extern