7.4.3 mysql_get_connect_nonblocking_stage()

enum connect_stage
mysql_get_connect_nonblocking_stage(MYSQL *mysql)

Description

mysql_get_connect_nonblocking_stage() provides a function to determine which stage of the mysql_real_connect_nonblocking state machine is in currently. This function permits an application to monitor and take appropriate actions based on the progress of an asynchronous connection. For general information about writing asynchronous C API applications, see Chapter 7, C API Asynchronous Interface.

mysql_get_connect_nonblocking_stage() was added in MySQL 8.1.0.

Return Values

Returns an enum connect_stage value. See the description in Section 7.2, “C API Asynchronous Interface Data Structures”.