MySQL  8.0.27
Source Code Documentation
socket_connection.h File Reference
#include "my_config.h"
#include <sys/types.h>
#include <list>
#include <map>
#include <string>
#include <vector>
#include "my_psi_config.h"
#include "mysql/components/services/psi_statement_bits.h"
#include "mysql/psi/mysql_socket.h"
#include <poll.h>

Go to the source code of this file.

Classes

struct  Listen_socket
 
struct  Bind_address_info
 Plain structure to collect together a host name/ip address and a corresponding network namespace if set and pass these information to different functions as a single unit. More...
 
class  Mysqld_socket_listener
 This class represents the Mysqld_socket_listener which prepare the listener sockets to recieve connection events from the client. More...
 
struct  Mysqld_socket_listener::poll_info_t
 

Typedefs

typedef std::vector< Listen_socketsocket_vector_t
 

Enumerations

enum class  Socket_type { UNIX_SOCKET , TCP_SOCKET }
 
enum class  Socket_interface_type { DEFAULT_INTERFACE , ADMIN_INTERFACE }
 

Functions

ulong get_connection_errors_query_block ()
 
ulong get_connection_errors_accept ()
 
ulong get_connection_errors_tcpwrap ()
 

Variables

const char * MY_BIND_ALL_ADDRESSES
 MY_BIND_ALL_ADDRESSES defines a special value for the bind-address option, which means that the server should listen to all available network addresses, both IPv6 (if available) and IPv4. More...
 
const char * ipv4_all_addresses
 
const char * ipv6_all_addresses
 
PSI_statement_info stmt_info_new_packet
 

Typedef Documentation

◆ socket_vector_t

typedef std::vector<Listen_socket> socket_vector_t

Enumeration Type Documentation

◆ Socket_interface_type

enum Socket_interface_type
strong
Enumerator
DEFAULT_INTERFACE 
ADMIN_INTERFACE 

◆ Socket_type

enum Socket_type
strong
Enumerator
UNIX_SOCKET 
TCP_SOCKET 

Function Documentation

◆ get_connection_errors_accept()

ulong get_connection_errors_accept ( )

◆ get_connection_errors_query_block()

ulong get_connection_errors_query_block ( )

◆ get_connection_errors_tcpwrap()

ulong get_connection_errors_tcpwrap ( )

Variable Documentation

◆ ipv4_all_addresses

const char* ipv4_all_addresses
extern

◆ ipv6_all_addresses

const char* ipv6_all_addresses
extern

◆ MY_BIND_ALL_ADDRESSES

const char* MY_BIND_ALL_ADDRESSES
extern

MY_BIND_ALL_ADDRESSES defines a special value for the bind-address option, which means that the server should listen to all available network addresses, both IPv6 (if available) and IPv4.

Basically, this value instructs the server to make an attempt to bind the server socket to '::' address, and rollback to '0.0.0.0' if the attempt fails.

◆ stmt_info_new_packet

PSI_statement_info stmt_info_new_packet
extern