FreeBSD manual
download PDF document: mysql_get_proto_info.3.pdf
mysql_get_proto_info(3) MariaDB Connector/C mysql_get_proto_info(3)
Name
mysql_get_proto_info - Returns protocol version number
Synopsis
#include <mysql.h>
unsigned int mysql_get_proto_info(MYSQL * mysql);
Description
Returns the protocol version number for the specified connection
Parameter
o mysql - a connection identifier, which was previously allocated by
mysql_init(3) and connected by mysql_real_connect(3).
Notes
MariaDB Connector/C doesn't support protocol version 9 and prior.
Return value
The protocol version number in use
See also
o mysql_get_host_info(3)
Version 3.3.1 mysql_get_proto_info(3)