diff options
Diffstat (limited to 'TAO/tao/default_client.cpp')
-rw-r--r-- | TAO/tao/default_client.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp index 4f18da08b86..59549a457b9 100644 --- a/TAO/tao/default_client.cpp +++ b/TAO/tao/default_client.cpp @@ -64,6 +64,8 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) else if (ACE_OS::strcasecmp (name, "null") == 0) this->profile_lock_type_ = TAO_NULL_LOCK; + else + this->report_option_value_error ("-ORBProfileLock", name); } } @@ -105,6 +107,8 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) else if (ACE_OS::strcasecmp (name, "RW") == 0) this->wait_strategy_ = TAO_WAIT_ON_READ; + else + this->report_option_value_error ("-ORBClientConnectionHandler", name); } } else if (ACE_OS::strcmp (argv[curarg], @@ -121,9 +125,28 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv) else if (ACE_OS::strcasecmp (name, "EXCLUSIVE") == 0) this->transport_mux_strategy_ = TAO_EXCLUSIVE_TMS; + else + this->report_option_value_error ("-ORBTransportMuxStrategy", name); } } + else if (ACE_OS::strncmp (argv[curarg], "-ORB", 4) == 0) + { + // Can we assume there is an argument after the option? + // curarg++; + ACE_ERROR ((LM_ERROR, + "Client_Strategy_Factory - " + "unknown option <%s>\n", + argv[curarg])); + } + else + { + ACE_DEBUG ((LM_DEBUG, + "Client_Strategy_Factory - " + "ignoring option <%s>\n", + argv[curarg])); + } + } return 0; @@ -213,6 +236,17 @@ TAO_Default_Client_Strategy_Factory::create_ft_service_retention_id_lock (void) return the_lock; } +void +TAO_Default_Client_Strategy_Factory::report_option_value_error ( + const char* option_name, + const char* option_value) +{ + ACE_DEBUG((LM_DEBUG, + ACE_TEXT ("Client_Strategy_Factory - unknown argument") + ACE_TEXT (" <%s> for <%s>\n"), + option_value, option_name)); +} + // **************************************************************** ACE_STATIC_SVC_DEFINE (TAO_Default_Client_Strategy_Factory, |