Name
mysql_get_proto_info( )
Synopsis
unsigned int mysql_get_proto_info(MYSQL *mysql)
This returns the protocol version for the current connection.
... 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); ...
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.