#include <db_cxx.h> int repmgr_set_local_site(const char * host, u_int16_t port, u_int32_t flags);
         The DbEnv::repmgr_set_local_site() method specifies the host
         identification string and port number for the local system.
    
         The DbEnv::repmgr_set_local_site() method may not be called after
         the DbEnv::repmgr_start() 
         method is called.
    
         The DbEnv::repmgr_set_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.
            
        
    
            The DbEnv::repmgr_set_local_site()
            
            
            
                method may fail and throw a DbException 
                exception, encapsulating one of the following non-zero errors, or return one
                of the following non-zero errors:
            
        
        
If this method is called from a Base API application; if the method was called after replication is started with a call to the DbEnv::repmgr_start() method; or if an invalid flag value or parameter was specified.