Description. This function can be used to determine whether a management server is running on a given connection from a management client.
int ndb_mgm_check_connection ( NdbMgmHandle handle )
Section 3.1, “MGM API Concepts”).
Return value. In NDB 7.5 and later, this function returns 0 on success, -1 when the handle is null, and -2 when not connected.
In NDB 7.4 and earlier, this function returned -1 in the event of an error; otherwise it returned 0, even when the management server handle was NULL, or when the connection check failed (Bug #53242, Bug #11760802).