Type Alias mariadb_sys::MYSQL_SOCKET

source ·
pub type MYSQL_SOCKET = st_mysql_socket;
Expand description

An instrumented socket. @c MYSQL_SOCKET is a replacement for @c my_socket.

Aliased Type§

struct MYSQL_SOCKET {
    pub fd: i32,
    pub is_unix_domain_socket: i8,
    pub is_extra_port: i8,
    pub address_family: u16,
    pub m_psi: *mut PSI_socket,
}

Fields§

§fd: i32

The real socket descriptor.

§is_unix_domain_socket: i8

Is this a Unix-domain socket?

§is_extra_port: i8

Is this a socket opened for the extra port?

§address_family: u16

Address family of the socket. (See sa_family from struct sockaddr).

§m_psi: *mut PSI_socket

The instrumentation hook. Note that this hook is not conditionally defined, for binary compatibility of the @c MYSQL_SOCKET interface.