MySQL 9.1.0
Source Code Documentation
Collaboration diagram for Socket Instrumentation (API):

Macros

#define mysql_socket_register(P1, P2, P3)    inline_mysql_socket_register(P1, P2, P3)
 Socket registration. More...
 
#define MYSQL_SOCKET_WAIT_VARIABLES(LOCKER, STATE)
 Instrumentation helper for socket waits. More...
 
#define MYSQL_START_SOCKET_WAIT(LOCKER, STATE, SOCKET, OP, COUNT)
 Instrumentation helper for socket waits. More...
 
#define MYSQL_END_SOCKET_WAIT(LOCKER, COUNT)    inline_mysql_end_socket_wait(LOCKER, COUNT)
 Instrumentation helper for socket waits. More...
 
#define MYSQL_SOCKET_SET_STATE(SOCKET, STATE)    inline_mysql_socket_set_state(SOCKET, STATE)
 Set the state (IDLE, ACTIVE) of an instrumented socket. More...
 
#define mysql_socket_socket(K, D, T, P)   inline_mysql_socket_socket(K, D, T, P)
 Create a socket. More...
 
#define mysql_socket_bind(FD, AP, L)    inline_mysql_socket_bind(__FILE__, __LINE__, FD, AP, L)
 Bind a socket to a local port number and IP address mysql_socket_bind is a replacement for bind. More...
 
#define mysql_socket_getsockname(FD, AP, LP)    inline_mysql_socket_getsockname(__FILE__, __LINE__, FD, AP, LP)
 Return port number and IP address of the local host mysql_socket_getsockname is a replacement for getsockname. More...
 
#define mysql_socket_connect(FD, AP, L)    inline_mysql_socket_connect(__FILE__, __LINE__, FD, AP, L)
 Establish a connection to a remote host. More...
 
#define mysql_socket_getpeername(FD, AP, LP)    inline_mysql_socket_getpeername(__FILE__, __LINE__, FD, AP, LP)
 Get port number and IP address of remote host that a socket is connected to. More...
 
#define mysql_socket_send(FD, B, N, FL)    inline_mysql_socket_send(__FILE__, __LINE__, FD, B, N, FL)
 Send data from the buffer, B, to a connected socket. More...
 
#define mysql_socket_recv(FD, B, N, FL)    inline_mysql_socket_recv(__FILE__, __LINE__, FD, B, N, FL)
 Receive data from a connected socket. More...
 
#define mysql_socket_sendto(FD, B, N, FL, AP, L)    inline_mysql_socket_sendto(__FILE__, __LINE__, FD, B, N, FL, AP, L)
 Send data to a socket at the specified address. More...
 
#define mysql_socket_recvfrom(FD, B, N, FL, AP, LP)    inline_mysql_socket_recvfrom(__FILE__, __LINE__, FD, B, N, FL, AP, LP)
 Receive data from a socket and return source address information mysql_socket_recvfrom is a replacement for recvfrom. More...
 
#define mysql_socket_getsockopt(FD, LV, ON, OP, OL)    inline_mysql_socket_getsockopt(__FILE__, __LINE__, FD, LV, ON, OP, OL)
 Get a socket option for the specified socket. More...
 
#define mysql_socket_setsockopt(FD, LV, ON, OP, OL)    inline_mysql_socket_setsockopt(__FILE__, __LINE__, FD, LV, ON, OP, OL)
 Set a socket option for the specified socket. More...
 
#define mysql_sock_set_nonblocking(FD)    inline_mysql_sock_set_nonblocking(__FILE__, __LINE__, FD)
 Set socket to non-blocking. More...
 
#define mysql_socket_listen(FD, N)    inline_mysql_socket_listen(__FILE__, __LINE__, FD, N)
 Set socket state to listen for an incoming connection. More...
 
#define mysql_socket_accept(K, FD, AP, LP)    inline_mysql_socket_accept(__FILE__, __LINE__, K, FD, AP, LP)
 Accept a connection from any remote host; TCP only. More...
 
#define mysql_socket_close(FD)   inline_mysql_socket_close(__FILE__, __LINE__, FD)
 Close a socket and sever any connections. More...
 
#define mysql_socket_shutdown(FD, H)    inline_mysql_socket_shutdown(__FILE__, __LINE__, FD, H)
 Disable receives and/or sends on a socket. More...
 

Functions

static void mysql_socket_set_address (MYSQL_SOCKET socket, const struct sockaddr *addr, socklen_t addr_len)
 Set socket descriptor and address. More...
 
static void mysql_socket_set_thread_owner (MYSQL_SOCKET socket)
 Assign the current thread instrumentation to the socket. More...
 
static my_socket mysql_socket_getfd (MYSQL_SOCKET mysql_socket)
 MYSQL_SOCKET helper. More...
 
static void mysql_socket_setfd (MYSQL_SOCKET *mysql_socket, my_socket fd)
 MYSQL_SOCKET helper. More...
 
static struct PSI_socket_lockerinline_mysql_start_socket_wait (PSI_socket_locker_state *state, MYSQL_SOCKET mysql_socket, enum PSI_socket_operation op, size_t byte_count, const char *src_file, int src_line)
 Instrumentation calls for MYSQL_START_SOCKET_WAIT. More...
 
static void inline_mysql_end_socket_wait (struct PSI_socket_locker *locker, size_t byte_count)
 Instrumentation calls for MYSQL_END_SOCKET_WAIT. More...
 
static void inline_mysql_socket_set_state (MYSQL_SOCKET socket, enum PSI_socket_state state)
 Set the state (IDLE, ACTIVE) of an instrumented socket. More...
 
static void inline_mysql_socket_register (const char *category, PSI_socket_info *info, int count)
 
static MYSQL_SOCKET inline_mysql_socket_socket (PSI_socket_key key, int domain, int type, int protocol)
 mysql_socket_socket More...
 
static int inline_mysql_socket_bind (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, const struct sockaddr *addr, socklen_t len)
 mysql_socket_bind More...
 
static int inline_mysql_socket_getsockname (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, struct sockaddr *addr, socklen_t *len)
 mysql_socket_getsockname More...
 
static int inline_mysql_socket_connect (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, const struct sockaddr *addr, socklen_t len)
 mysql_socket_connect More...
 
static int inline_mysql_socket_getpeername (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, struct sockaddr *addr, socklen_t *len)
 mysql_socket_getpeername More...
 
static ssize_t inline_mysql_socket_send (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, const SOCKBUF_T *buf, size_t n, int flags)
 mysql_socket_send More...
 
static ssize_t inline_mysql_socket_recv (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, SOCKBUF_T *buf, size_t n, int flags)
 mysql_socket_recv More...
 
static ssize_t inline_mysql_socket_sendto (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, const SOCKBUF_T *buf, size_t n, int flags, const struct sockaddr *addr, socklen_t addr_len)
 mysql_socket_sendto More...
 
static ssize_t inline_mysql_socket_recvfrom (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, SOCKBUF_T *buf, size_t n, int flags, struct sockaddr *addr, socklen_t *addr_len)
 mysql_socket_recvfrom More...
 
static int inline_mysql_socket_getsockopt (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, int level, int optname, SOCKBUF_T *optval, socklen_t *optlen)
 mysql_socket_getsockopt More...
 
static int inline_mysql_socket_setsockopt (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, int level, int optname, const SOCKBUF_T *optval, socklen_t optlen)
 mysql_socket_setsockopt More...
 
static int set_socket_nonblock (my_socket fd)
 set_socket_nonblock More...
 
static int inline_mysql_sock_set_nonblocking (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket)
 mysql_socket_set_nonblocking More...
 
static int inline_mysql_socket_listen (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, int backlog)
 mysql_socket_listen More...
 
static MYSQL_SOCKET inline_mysql_socket_accept (const char *src_file, uint src_line, PSI_socket_key key, MYSQL_SOCKET socket_listen, struct sockaddr *addr, socklen_t *addr_len)
 mysql_socket_accept More...
 
static int inline_mysql_socket_close (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket)
 mysql_socket_close More...
 
static int inline_mysql_socket_shutdown (const char *src_file, uint src_line, MYSQL_SOCKET mysql_socket, int how)
 mysql_socket_shutdown More...
 

Detailed Description

Macro Definition Documentation

◆ MYSQL_END_SOCKET_WAIT

#define MYSQL_END_SOCKET_WAIT (   LOCKER,
  COUNT 
)     inline_mysql_end_socket_wait(LOCKER, COUNT)

Instrumentation helper for socket waits.

This instrumentation marks the end of a wait event.

Parameters
LOCKERlocker
COUNTactual bytes written/read, or -1
See also
MYSQL_START_SOCKET_WAIT.

◆ mysql_sock_set_nonblocking

#define mysql_sock_set_nonblocking (   FD)     inline_mysql_sock_set_nonblocking(__FILE__, __LINE__, FD)

Set socket to non-blocking.

Parameters
FDinstrumented socket descriptor

◆ mysql_socket_accept

#define mysql_socket_accept (   K,
  FD,
  AP,
  LP 
)     inline_mysql_socket_accept(__FILE__, __LINE__, K, FD, AP, LP)

Accept a connection from any remote host; TCP only.

mysql_socket_accept is a replacement for accept.

Parameters
KPSI_socket_key for this instrumented socket
FDInstrumented socket descriptor, bound and placed in a listen state
APPointer to sockaddr structure with returned IP address and port of connected host
LPPointer to length of valid information in AP

◆ mysql_socket_bind

#define mysql_socket_bind (   FD,
  AP,
  L 
)     inline_mysql_socket_bind(__FILE__, __LINE__, FD, AP, L)

Bind a socket to a local port number and IP address mysql_socket_bind is a replacement for bind.

Parameters
FDInstrumented socket descriptor returned by socket()
APPointer to local port number and IP address in sockaddr structure
LLength of sockaddr structure

◆ mysql_socket_close

#define mysql_socket_close (   FD)    inline_mysql_socket_close(__FILE__, __LINE__, FD)

Close a socket and sever any connections.

mysql_socket_close is a replacement for close.

Parameters
FDInstrumented socket descriptor returned by socket() or accept()

◆ mysql_socket_connect

#define mysql_socket_connect (   FD,
  AP,
  L 
)     inline_mysql_socket_connect(__FILE__, __LINE__, FD, AP, L)

Establish a connection to a remote host.

mysql_socket_connect is a replacement for connect.

Parameters
FDInstrumented socket descriptor returned by socket()
APPointer to target address in sockaddr structure
LLength of sockaddr structure

◆ mysql_socket_getpeername

#define mysql_socket_getpeername (   FD,
  AP,
  LP 
)     inline_mysql_socket_getpeername(__FILE__, __LINE__, FD, AP, LP)

Get port number and IP address of remote host that a socket is connected to.

mysql_socket_getpeername is a replacement for getpeername.

Parameters
FDInstrumented socket descriptor returned by socket() or accept()
APPointer to returned address of remote host in sockaddr structure
LPPointer to length of sockaddr structure

◆ mysql_socket_getsockname

#define mysql_socket_getsockname (   FD,
  AP,
  LP 
)     inline_mysql_socket_getsockname(__FILE__, __LINE__, FD, AP, LP)

Return port number and IP address of the local host mysql_socket_getsockname is a replacement for getsockname.

Parameters
FDInstrumented socket descriptor returned by socket()
APPointer to returned address of local host in sockaddr structure
LPPointer to length of sockaddr structure

◆ mysql_socket_getsockopt

#define mysql_socket_getsockopt (   FD,
  LV,
  ON,
  OP,
  OL 
)     inline_mysql_socket_getsockopt(__FILE__, __LINE__, FD, LV, ON, OP, OL)

Get a socket option for the specified socket.

mysql_socket_getsockopt is a replacement for getsockopt.

Parameters
FDInstrumented socket descriptor returned by socket()
LVProtocol level
ONOption to query
OPBuffer which will contain the value for the requested option
OLPointer to length of OP

◆ mysql_socket_listen

#define mysql_socket_listen (   FD,
 
)     inline_mysql_socket_listen(__FILE__, __LINE__, FD, N)

Set socket state to listen for an incoming connection.

mysql_socket_listen is a replacement for listen.

Parameters
FDInstrumented socket descriptor, bound and connected
NMaximum number of pending connections allowed.

◆ mysql_socket_recv

#define mysql_socket_recv (   FD,
  B,
  N,
  FL 
)     inline_mysql_socket_recv(__FILE__, __LINE__, FD, B, N, FL)

Receive data from a connected socket.

mysql_socket_recv is a replacement for recv.

Parameters
FDInstrumented socket descriptor returned by socket() or accept()
BBuffer to receive to
NMaximum bytes to receive
FLControl flags

◆ mysql_socket_recvfrom

#define mysql_socket_recvfrom (   FD,
  B,
  N,
  FL,
  AP,
  LP 
)     inline_mysql_socket_recvfrom(__FILE__, __LINE__, FD, B, N, FL, AP, LP)

Receive data from a socket and return source address information mysql_socket_recvfrom is a replacement for recvfrom.

Parameters
FDInstrumented socket descriptor returned by socket()
BBuffer to receive to
NMaximum bytes to receive
FLControl flags
APPointer to source address in sockaddr_storage structure
LPSize of sockaddr_storage structure

◆ mysql_socket_register

#define mysql_socket_register (   P1,
  P2,
  P3 
)     inline_mysql_socket_register(P1, P2, P3)

Socket registration.

◆ mysql_socket_send

#define mysql_socket_send (   FD,
  B,
  N,
  FL 
)     inline_mysql_socket_send(__FILE__, __LINE__, FD, B, N, FL)

Send data from the buffer, B, to a connected socket.

mysql_socket_send is a replacement for send.

Parameters
FDInstrumented socket descriptor returned by socket() or accept()
BBuffer to send
NNumber of bytes to send
FLControl flags

◆ mysql_socket_sendto

#define mysql_socket_sendto (   FD,
  B,
  N,
  FL,
  AP,
  L 
)     inline_mysql_socket_sendto(__FILE__, __LINE__, FD, B, N, FL, AP, L)

Send data to a socket at the specified address.

mysql_socket_sendto is a replacement for sendto.

Parameters
FDInstrumented socket descriptor returned by socket()
BBuffer to send
NNumber of bytes to send
FLControl flags
APPointer to destination sockaddr structure
LSize of sockaddr structure

◆ MYSQL_SOCKET_SET_STATE

#define MYSQL_SOCKET_SET_STATE (   SOCKET,
  STATE 
)     inline_mysql_socket_set_state(SOCKET, STATE)

Set the state (IDLE, ACTIVE) of an instrumented socket.

Parameters
SOCKETthe instrumented socket
STATEthe new state
See also
PSI_socket_state

◆ mysql_socket_setsockopt

#define mysql_socket_setsockopt (   FD,
  LV,
  ON,
  OP,
  OL 
)     inline_mysql_socket_setsockopt(__FILE__, __LINE__, FD, LV, ON, OP, OL)

Set a socket option for the specified socket.

mysql_socket_setsockopt is a replacement for setsockopt.

Parameters
FDInstrumented socket descriptor returned by socket()
LVProtocol level
ONOption to modify
OPBuffer containing the value for the specified option
OLPointer to length of OP

◆ mysql_socket_shutdown

#define mysql_socket_shutdown (   FD,
 
)     inline_mysql_socket_shutdown(__FILE__, __LINE__, FD, H)

Disable receives and/or sends on a socket.

mysql_socket_shutdown is a replacement for shutdown.

Parameters
FDInstrumented socket descriptor returned by socket() or accept()
HSpecifies which operations to shutdown

◆ mysql_socket_socket

#define mysql_socket_socket (   K,
  D,
  T,
  P 
)    inline_mysql_socket_socket(K, D, T, P)

Create a socket.

mysql_socket_socket is a replacement for socket.

Parameters
KPSI_socket_key for this instrumented socket
DSocket domain
TProtocol type
PTransport protocol

◆ MYSQL_SOCKET_WAIT_VARIABLES

#define MYSQL_SOCKET_WAIT_VARIABLES (   LOCKER,
  STATE 
)
Value:
struct PSI_socket_locker *LOCKER; \
PSI_socket_locker_state STATE;
struct PSI_socket_locker PSI_socket_locker
Definition: psi_socket_bits.h:77

Instrumentation helper for socket waits.

This instrumentation declares local variables. Do not use a ';' after this macro

Parameters
LOCKERlocker
STATElocker state
See also
MYSQL_START_SOCKET_WAIT.
MYSQL_END_SOCKET_WAIT.

◆ MYSQL_START_SOCKET_WAIT

#define MYSQL_START_SOCKET_WAIT (   LOCKER,
  STATE,
  SOCKET,
  OP,
  COUNT 
)
Value:
LOCKER = inline_mysql_start_socket_wait(STATE, SOCKET, OP, COUNT, __FILE__, \
__LINE__)
static struct PSI_socket_locker * inline_mysql_start_socket_wait(PSI_socket_locker_state *state, MYSQL_SOCKET mysql_socket, enum PSI_socket_operation op, size_t byte_count, const char *src_file, int src_line)
Instrumentation calls for MYSQL_START_SOCKET_WAIT.
Definition: mysql_socket.h:231

Instrumentation helper for socket waits.

This instrumentation marks the start of a wait event.

Parameters
LOCKERlocker
STATElocker state
SOCKETinstrumented socket
OPThe socket operation to be performed
COUNTbytes to be written/read
See also
MYSQL_END_SOCKET_WAIT.

Function Documentation

◆ inline_mysql_end_socket_wait()

static void inline_mysql_end_socket_wait ( struct PSI_socket_locker locker,
size_t  byte_count 
)
inlinestatic

Instrumentation calls for MYSQL_END_SOCKET_WAIT.

See also
MYSQL_END_SOCKET_WAIT.

◆ inline_mysql_sock_set_nonblocking()

static int inline_mysql_sock_set_nonblocking ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket 
)
inlinestatic

mysql_socket_set_nonblocking

◆ inline_mysql_socket_accept()

static MYSQL_SOCKET inline_mysql_socket_accept ( const char *  src_file,
uint  src_line,
PSI_socket_key  key,
MYSQL_SOCKET  socket_listen,
struct sockaddr addr,
socklen_t *  addr_len 
)
inlinestatic

mysql_socket_accept

◆ inline_mysql_socket_bind()

static int inline_mysql_socket_bind ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
const struct sockaddr addr,
socklen_t  len 
)
inlinestatic

mysql_socket_bind

◆ inline_mysql_socket_close()

static int inline_mysql_socket_close ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket 
)
inlinestatic

mysql_socket_close

◆ inline_mysql_socket_connect()

static int inline_mysql_socket_connect ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
const struct sockaddr addr,
socklen_t  len 
)
inlinestatic

mysql_socket_connect

◆ inline_mysql_socket_getpeername()

static int inline_mysql_socket_getpeername ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
struct sockaddr addr,
socklen_t *  len 
)
inlinestatic

mysql_socket_getpeername

◆ inline_mysql_socket_getsockname()

static int inline_mysql_socket_getsockname ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
struct sockaddr addr,
socklen_t *  len 
)
inlinestatic

mysql_socket_getsockname

◆ inline_mysql_socket_getsockopt()

static int inline_mysql_socket_getsockopt ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
int  level,
int  optname,
SOCKBUF_T optval,
socklen_t *  optlen 
)
inlinestatic

mysql_socket_getsockopt

◆ inline_mysql_socket_listen()

static int inline_mysql_socket_listen ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
int  backlog 
)
inlinestatic

mysql_socket_listen

◆ inline_mysql_socket_recv()

static ssize_t inline_mysql_socket_recv ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
SOCKBUF_T buf,
size_t  n,
int  flags 
)
inlinestatic

mysql_socket_recv

◆ inline_mysql_socket_recvfrom()

static ssize_t inline_mysql_socket_recvfrom ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
SOCKBUF_T buf,
size_t  n,
int  flags,
struct sockaddr addr,
socklen_t *  addr_len 
)
inlinestatic

mysql_socket_recvfrom

◆ inline_mysql_socket_register()

static void inline_mysql_socket_register ( const char *  category,
PSI_socket_info info,
int  count 
)
inlinestatic

◆ inline_mysql_socket_send()

static ssize_t inline_mysql_socket_send ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
const SOCKBUF_T buf,
size_t  n,
int  flags 
)
inlinestatic

mysql_socket_send

◆ inline_mysql_socket_sendto()

static ssize_t inline_mysql_socket_sendto ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
const SOCKBUF_T buf,
size_t  n,
int  flags,
const struct sockaddr addr,
socklen_t  addr_len 
)
inlinestatic

mysql_socket_sendto

◆ inline_mysql_socket_set_state()

static void inline_mysql_socket_set_state ( MYSQL_SOCKET  socket,
enum PSI_socket_state  state 
)
inlinestatic

Set the state (IDLE, ACTIVE) of an instrumented socket.

Parameters
socketthe instrumented socket
statethe new state
See also
PSI_socket_state

◆ inline_mysql_socket_setsockopt()

static int inline_mysql_socket_setsockopt ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
int  level,
int  optname,
const SOCKBUF_T optval,
socklen_t  optlen 
)
inlinestatic

mysql_socket_setsockopt

◆ inline_mysql_socket_shutdown()

static int inline_mysql_socket_shutdown ( const char *  src_file,
uint  src_line,
MYSQL_SOCKET  mysql_socket,
int  how 
)
inlinestatic

mysql_socket_shutdown

◆ inline_mysql_socket_socket()

static MYSQL_SOCKET inline_mysql_socket_socket ( PSI_socket_key  key,
int  domain,
int  type,
int  protocol 
)
inlinestatic

mysql_socket_socket

◆ inline_mysql_start_socket_wait()

static struct PSI_socket_locker * inline_mysql_start_socket_wait ( PSI_socket_locker_state state,
MYSQL_SOCKET  mysql_socket,
enum PSI_socket_operation  op,
size_t  byte_count,
const char *  src_file,
int  src_line 
)
inlinestatic

Instrumentation calls for MYSQL_START_SOCKET_WAIT.

See also
MYSQL_START_SOCKET_WAIT.

◆ mysql_socket_getfd()

static my_socket mysql_socket_getfd ( MYSQL_SOCKET  mysql_socket)
inlinestatic

MYSQL_SOCKET helper.

Get socket descriptor.

Parameters
mysql_socketInstrumented socket
See also
mysql_socket_setfd

◆ mysql_socket_set_address()

static void mysql_socket_set_address ( MYSQL_SOCKET  socket,
const struct sockaddr addr,
socklen_t  addr_len 
)
inlinestatic

Set socket descriptor and address.

Parameters
socketinstrumented socket
addrunformatted socket address
addr_lenlength of socket address

◆ mysql_socket_set_thread_owner()

static void mysql_socket_set_thread_owner ( MYSQL_SOCKET  socket)
inlinestatic

Assign the current thread instrumentation to the socket.

Parameters
socketinstrumented socket

◆ mysql_socket_setfd()

static void mysql_socket_setfd ( MYSQL_SOCKET mysql_socket,
my_socket  fd 
)
inlinestatic

MYSQL_SOCKET helper.

Set socket descriptor.

Parameters
mysql_socketInstrumented socket
fdSocket descriptor
See also
mysql_socket_getfd

◆ set_socket_nonblock()

static int set_socket_nonblock ( my_socket  fd)
inlinestatic

set_socket_nonblock