1mysql_get_socket(3) MariaDB Connector/C mysql_get_socket(3)
2
3
4
5 Name
6 mysql_get_socket - Returns the descriptor of the socket used for the
7 current connection
8
9 Synopsis
10 #include <mysql.h>
11
12 my_socket mysql_get_socket(MYSQL * mysql);
13
14 Description
15 Returns the descriptor of the socket used for the current connection.
16
17 Parameter
18 • mysql - a mysql handle, which was previously allocated by
19 mysql_init(3) and connected by mysql_real_connect(3).
20
21 Return value
22 A socket handle or INVALID_SOCKET (-1) if the socket descriptor could
23 not be determined, e.g. if the connection doesn’t use a socket connec‐
24 tion.
25
26 See also
27 • mysql_real_connect(3)
28
29
30
31Version 3.2.2 mysql_get_socket(3)