MySQL NDB Cluster API Developer Guide

2.3.17.19 Ndb_cluster_connection::set_service_uri()

Description.  Beginning with NDB 7.5.7 and NDB 7.8.2, this method can be used to create a URI for publication in service_URI column of the the application's row in the ndbinfo.processes table.

Provided that this method is called prior to invoking connect(), the service URI is published immediately upon connection; otherwise, it is published after a delay of up to HeartbeatIntervalDbApi milliseconds.

Signature. 

int set_service_uri
    (
      const char* scheme, 
      const char* host, 
      int port,
      const char* path
    )

Parameters.  This method takes the parameters listed here:

Return value.  0 on success, 1 in the event of a syntax error.