MySQL 8.4.3
Source Code Documentation
|
#include <sys/types.h>
#include <new>
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_psi_config.h"
#include "mysql/psi/mysql_memory.h"
#include "mysql/psi/mysql_socket.h"
#include "mysql/psi/psi_memory.h"
#include "mysql/service_mysql_alloc.h"
#include "string_with_len.h"
#include "template_utils.h"
#include "vio/vio_priv.h"
Classes | |
struct | vio_string |
Functions | |
void | init_vio_psi_keys () |
Vio * | internal_vio_create (uint flags) |
void | internal_vio_delete (Vio *vio) |
static bool | has_no_data (Vio *vio) |
static bool | vio_init (Vio *vio, enum enum_vio_type type, my_socket sd, uint flags) |
bool | vio_reset (Vio *vio, enum enum_vio_type type, my_socket sd, void *ssl, uint flags) |
Reinitialize an existing Vio object. More... | |
Vio * | mysql_socket_vio_new (MYSQL_SOCKET mysql_socket, enum_vio_type type, uint flags) |
Vio * | vio_new (my_socket sd, enum enum_vio_type type, uint flags) |
int | vio_timeout (Vio *vio, uint which, int timeout_sec) |
Set timeout for a network send or receive operation. More... | |
void | vio_delete (Vio *vio) |
void | vio_end () |
void | get_vio_type_name (enum enum_vio_type vio_type, const char **str, int *len) |
Convert a vio type to a printable string. More... | |
Variables | |
PSI_memory_key | key_memory_vio_ssl_fd |
PSI_memory_key | key_memory_vio |
PSI_memory_key | key_memory_vio_read_buffer |
static PSI_memory_info | all_vio_memory [] |
static const vio_string | vio_type_names [] |
Names for each VIO TYPE. More... | |
void get_vio_type_name | ( | enum enum_vio_type | vio_type, |
const char ** | str, | ||
int * | len | ||
) |
Convert a vio type to a printable string.
vio_type | the type | |
[out] | str | the string |
[out] | len | the string length |
|
static |
void init_vio_psi_keys | ( | ) |
Vio * internal_vio_create | ( | uint | flags | ) |
void internal_vio_delete | ( | Vio * | vio | ) |
Vio * mysql_socket_vio_new | ( | MYSQL_SOCKET | mysql_socket, |
enum_vio_type | type, | ||
uint | flags | ||
) |
void vio_delete | ( | Vio * | vio | ) |
void vio_end | ( | void | ) |
|
static |
Vio * vio_new | ( | my_socket | sd, |
enum enum_vio_type | type, | ||
uint | flags | ||
) |
bool vio_reset | ( | Vio * | vio, |
enum enum_vio_type | type, | ||
my_socket | sd, | ||
void * | ssl, | ||
uint | flags | ||
) |
Reinitialize an existing Vio object.
vio | A VIO object. |
type | A socket-based transport type. |
sd | The socket. |
ssl | An optional SSL structure. |
flags | Flags passed to new_vio. |
int vio_timeout | ( | Vio * | vio, |
uint | which, | ||
int | timeout_sec | ||
) |
Set timeout for a network send or receive operation.
vio | A VIO object. |
which | Whether timeout is for send (1) or receive (0). |
timeout_sec | Timeout interval in seconds. |
|
static |
PSI_memory_key key_memory_vio |
PSI_memory_key key_memory_vio_read_buffer |
PSI_memory_key key_memory_vio_ssl_fd |
|
static |
Names for each VIO TYPE.
Indexed by enum_vio_type. If you add more, please update audit_log.cc