#include <db.h>
int
DB_ENV->rep_get_local_site(DB_ENV *env, const char **hostname,
    u_int *port);  
      
        The DB_ENV->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
        DB_ENV->repmgr_set_local_site()
        method.
    
         The DB_ENV->repmgr_get_local_site() method may be called at any time
         during the life of the application.
    
         The DB_ENV->repmgr_get_local_site() 
            
                  method returns a non-zero error value on failure and 0 on success.
            
            
        
    
The hostname parameter references memory which contains a pointer to the internal storage of the host name.