MySQL 9.3 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_get_host_info()
const char *mysql_get_host_info(MYSQL *mysql)Returns a string describing the type of connection in use, including the server host name.