Name
mysql_get_proto_info()
Synopsis
unsigned int mysql_get_proto_info(MYSQL *mysql)
This function returns the protocol version for the current
connection. Here is an example:
...
MYSQL *mysql;
mysql = mysql_init(NULL);
mysql_real_connect(mysql,"localhost","root","password",
NULL,0,NULL,0);
printf("Protocol: %u \n", mysql_get_proto_info(mysql));
mysql_close(mysql);
...