#include <db.h> int DB_ENV->repmgr_local_site(DB_ENV *env, DB_SITE **sitep);
The DB_ENV->repmgr_local_site()
method returns a
DB_SITE handle that defines the local site's
host/port network address. You use the DB_SITE
handle to configure and manage replication sites.
This method allocates memory for the handle, returning a pointer to the structure in the memory to which sitep refers. To release the allocated memory and discard the handle, call the DB_SITE->close() method.
The DB_ENV->repmgr_local_site()
method may be called at any time
after the environment handle has been created.
The DB_ENV->repmgr_local_site()
method returns a non-zero error value on failure and 0 on success.
The DB_ENV->repmgr_local_site()
method may fail and return one of the following non-zero errors: