summaryrefslogtreecommitdiff
path: root/TAO/tests/InterOp-Naming/INS_test_client.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-20 21:39:55 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-20 21:39:55 +0000
commit7b5395ee36f9201555f6c4f26ab60b7a91970865 (patch)
treee582f37c58103b4e873cb04d2d237d088ca61003 /TAO/tests/InterOp-Naming/INS_test_client.cpp
parent22d7240afc914d7b9df3e1a0b34bde88cc4b16a1 (diff)
downloadATCD-7b5395ee36f9201555f6c4f26ab60b7a91970865.tar.gz
ChangeLogTag:Sun Jun 20 16:33:44 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tests/InterOp-Naming/INS_test_client.cpp')
-rw-r--r--TAO/tests/InterOp-Naming/INS_test_client.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/TAO/tests/InterOp-Naming/INS_test_client.cpp b/TAO/tests/InterOp-Naming/INS_test_client.cpp
index 154bf690f08..a6435ce40a6 100644
--- a/TAO/tests/InterOp-Naming/INS_test_client.cpp
+++ b/TAO/tests/InterOp-Naming/INS_test_client.cpp
@@ -19,7 +19,7 @@ main (int argc, char *argv[])
0,
ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
if (argc < 2)
{
ACE_DEBUG ((LM_DEBUG,
@@ -37,18 +37,19 @@ main (int argc, char *argv[])
if (ACE_OS::strcmp (argv[1], "NameService") == 0)
{
-
+
CosNaming::NamingContext_var naming_context =
CosNaming::NamingContext::_narrow (objref.in (),
ACE_TRY_ENV);
ACE_TRY_CHECK;
-
+
ACE_DEBUG ((LM_DEBUG,
"Resolved IOR for %s : %s\n",
argv[1],
orb_->object_to_string (naming_context.in ())));
- // Sanity check to see if the reference to Naming Context is alright.
+ // Sanity check to see if the reference to Naming
+ // Context is alright.
CosNaming::Name my_name;
my_name.length (1);
my_name[0].id = CORBA::string_dup ("ObjName");
@@ -64,7 +65,7 @@ main (int argc, char *argv[])
}
else
{
-
+
INS_var server = INS::_narrow (objref.in (),
ACE_TRY_ENV);
ACE_TRY_CHECK;
@@ -73,13 +74,13 @@ main (int argc, char *argv[])
"Resolved IOR for %s : %s\n",
argv[1],
orb_->object_to_string (server.in ())));
-
+
ACE_DEBUG ((LM_DEBUG,
"\nResult of Remote Call : %s\n",
server->test_ins (ACE_TRY_ENV)));
-
+
}
-
+
}
}
ACE_CATCHANY
@@ -89,10 +90,6 @@ main (int argc, char *argv[])
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
-
+
return 0;
}
-
-
-
-