3.2.4.1 ndb_mgm_get_connectstring()

Description.  This function retrieves the connection string used for a connection.

Note

This function returns the default connection string if no call to ndb_mgm_set_connectstring() has been performed. In addition, the returned connection string may be formatted slightly differently than the original in that it may contain specifiers not present in the original.

The connection string format is the same as that discussed for Section 3.2.4.10, “ndb_mgm_set_connectstring()”.

Signature. 

const char* ndb_mgm_get_connectstring
    (
      NdbMgmHandle handle,
      char*        buffer,
      int          size
    )

Parameters.  This function takes three arguments:

Return value.  The connection string—this is the same value that is pushed to the buffer.