DbEnv::repmgr_get_local_site()

#include <db_cxx.h>

DbEnv::rep_get_clockskew(const char **hostname, u_int *port);

The DbEnv::repmgr_get_local_site() method returns host and port information for the local site that the replication manager is configured to use. This information is configured using the DbEnv::repmgr_set_local_site() method.

The DbEnv::repmgr_get_local_site() method may be called at any time during the life of the application.

The DbEnv::repmgr_get_local_site() method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters

hostname

The hostname parameter references memory which contains a pointer to the internal storage of the host name.

port

The port parameter references memory into which the port used by the local site is copied.

Class

DbEnv

See Also

Replication and Related Methods, DbEnv::repmgr_set_local_site()