summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp')
-rw-r--r--TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp33
1 files changed, 2 insertions, 31 deletions
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp b/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
index e67568600ad..29c53ecb7b8 100644
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
+++ b/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
@@ -1,27 +1,21 @@
// $Id$
#include "ace/Get_Opt.h"
-#include "tao/IORTable/IORTable.h"
#include "test_i.h"
#include "Server_Worker.h"
const char *ior_output_file = 0;
-const char *ior_table_name = 0;
int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:o:n:");
+ ACE_Get_Opt get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
switch (c)
{
- case 'i':
- ior_table_name = get_opts.opt_arg ();
- break;
-
case 'o':
ior_output_file = get_opts.opt_arg ();
break;
@@ -34,7 +28,6 @@ parse_args (int argc, char *argv[])
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
- "[-i <iortable name>]"
"-o <iorfile>"
"\n",
argv [0]),
@@ -87,29 +80,7 @@ main (int argc, char *argv[])
orb->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));A
-
-
- if (ior_table_name != 0)
- {
- CORBA::Object_var table_object =
- orb->resolve_initial_references ("IORTable" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- IORTable::Table_var adapter =
- IORTable::Table::_narrow (table_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil (adapter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Nil IORTable\n"));
- return -1;
- }
-
- adapter->bind ( ior_table_name, ior.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
+ ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)