summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp')
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
index 7c4c3009646..88408d3108e 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
@@ -38,6 +38,7 @@ Options::Options ()
, startup_timeout_(DEFAULT_START_TIMEOUT)
, readonly_ (false)
, service_command_(SC_NONE)
+, unregister_if_address_reused_ (false)
{
}
@@ -144,6 +145,11 @@ Options::parse_args (int &argc, ACE_TCHAR *argv[])
this->repo_mode_ = REPO_HEAP_FILE;
}
else if (ACE_OS::strcasecmp (shifter.get_current (),
+ ACE_TEXT ("-UnregisterIfAddressReused")) == 0)
+ {
+ this->unregister_if_address_reused_ = true;
+ }
+ else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("-r")) == 0)
{
this->repo_mode_ = REPO_REGISTRY;
@@ -503,3 +509,8 @@ Options::readonly (void) const
return this->readonly_;
}
+bool
+Options::unregister_if_address_reused (void) const
+{
+ return this->unregister_if_address_reused_;
+}