summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Private_Connection
diff options
context:
space:
mode:
authorokellogg <okellogg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-29 20:21:11 +0000
committerokellogg <okellogg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-29 20:21:11 +0000
commit15f9b16afed320b4e581b8f61fee7d7fbf1aa9a8 (patch)
treefd798ba5478a08b4b6f842cb8515ed9776861f5f /TAO/tests/RTCORBA/Private_Connection
parent5e12d6686388ccadee1714b94ddee0cce6587bfd (diff)
downloadATCD-15f9b16afed320b4e581b8f61fee7d7fbf1aa9a8.tar.gz
ChangeLogTag:Tue Jan 29 21:09:12 2002 Oliver Kellogg <oliver.kellogg@sysde.eads.net>
Diffstat (limited to 'TAO/tests/RTCORBA/Private_Connection')
-rw-r--r--TAO/tests/RTCORBA/Private_Connection/client.cpp40
-rw-r--r--TAO/tests/RTCORBA/Private_Connection/server.cpp34
2 files changed, 37 insertions, 37 deletions
diff --git a/TAO/tests/RTCORBA/Private_Connection/client.cpp b/TAO/tests/RTCORBA/Private_Connection/client.cpp
index 940062c0f5b..0815c6c4973 100644
--- a/TAO/tests/RTCORBA/Private_Connection/client.cpp
+++ b/TAO/tests/RTCORBA/Private_Connection/client.cpp
@@ -57,7 +57,7 @@ main (int argc, char *argv[])
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
@@ -66,37 +66,37 @@ main (int argc, char *argv[])
// RTORB.
CORBA::Object_var object =
- orb->resolve_initial_references ("RTORB" TAO_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references ("RTORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
RTCORBA::RTORB_var rt_orb = RTCORBA::RTORB::_narrow (object.in ()
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check_for_nil (rt_orb.in (), "RTORB") == -1)
return 1;
// PolicyCurrent.
object = orb->resolve_initial_references ("PolicyCurrent"
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::PolicyCurrent_var policy_current =
- CORBA::PolicyCurrent::_narrow (object.in () TAO_ENV_ARG_PARAMETER);
+ CORBA::PolicyCurrent::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check_for_nil (policy_current.in (), "PolicyCurrent")
== -1)
return 1;
// Test object 1.
- object = orb->string_to_object (ior1 TAO_ENV_ARG_PARAMETER);
+ object = orb->string_to_object (ior1 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- Test_var server1 = Test::_narrow (object.in () TAO_ENV_ARG_PARAMETER);
+ Test_var server1 = Test::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check_for_nil (server1.in (), "server1") == -1)
return 1;
// Test object 2.
- object = orb->string_to_object (ior2 TAO_ENV_ARG_PARAMETER);
+ object = orb->string_to_object (ior2 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- Test_var server2 = Test::_narrow (object.in () TAO_ENV_ARG_PARAMETER);
+ Test_var server2 = Test::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check_for_nil (server2.in (), "server2") == -1)
return 1;
@@ -106,34 +106,34 @@ main (int argc, char *argv[])
// following three.
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 1 --> new connection\n"));
- server1->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server1->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 2 --> use connection from invocation 1\n"));
- server2->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server2->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 3 --> use connection from invocation 1\n"));
- server1->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server1->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 4 --> use connection from invocation 1\n"));
- server2->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server2->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Set RTCORBA::PrivateConnectionPolicy on PolicyCurrent.
CORBA::PolicyList policy_list;
policy_list.length (1);
policy_list[0] =
- rt_orb->create_private_connection_policy (TAO_ENV_SINGLE_ARG_PARAMETER);
+ rt_orb->create_private_connection_policy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
policy_current->set_policy_overrides (policy_list,
CORBA::SET_OVERRIDE
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
// Make four invocations on test objects again. This time,
// since RTCORBA::PrivateConnectionPolicy is set, we expect a
@@ -143,28 +143,28 @@ main (int argc, char *argv[])
// third, and <server2>'s reused on fourth.
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 5 --> new connection\n"));
- server1->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server1->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 6 --> new connection\n"));
- server2->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server2->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 7 --> use connection from invocation 5\n"));
- server1->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server1->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
"\n Invocation 8 --> use connection from invocation 6\n"));
- server2->test_method (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server2->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Testing over. Shut down Server ORB.
ACE_DEBUG ((LM_DEBUG,
"\n Testing over - shutting down\n"));
- server1->shutdown (TAO_ENV_SINGLE_ARG_PARAMETER);
+ server1->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/RTCORBA/Private_Connection/server.cpp b/TAO/tests/RTCORBA/Private_Connection/server.cpp
index 69de99f823e..792bd559cbf 100644
--- a/TAO/tests/RTCORBA/Private_Connection/server.cpp
+++ b/TAO/tests/RTCORBA/Private_Connection/server.cpp
@@ -15,10 +15,10 @@ public:
// ctor
// = The Test methods.
- void test_method (TAO_ENV_SINGLE_ARG_DECL_NOT_USED)
+ void test_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
- void shutdown (TAO_ENV_SINGLE_ARG_DECL_NOT_USED)
+ void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
@@ -32,7 +32,7 @@ Test_i::Test_i (CORBA::ORB_ptr orb)
}
void
-Test_i::test_method (TAO_ENV_SINGLE_ARG_DECL_NOT_USED/* TAO_ENV_SINGLE_ARG_PARAMETER */)
+Test_i::test_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED/* ACE_ENV_SINGLE_ARG_PARAMETER */)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG,
@@ -40,10 +40,10 @@ Test_i::test_method (TAO_ENV_SINGLE_ARG_DECL_NOT_USED/* TAO_ENV_SINGLE_ARG_PARAM
}
void
-Test_i::shutdown (TAO_ENV_SINGLE_ARG_DECL)
+Test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- this->orb_->shutdown (0 TAO_ENV_ARG_PARAMETER);
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
}
//*************************************************************************
@@ -100,22 +100,22 @@ create_object (PortableServer::POA_ptr poa,
CORBA::ORB_ptr orb,
Test_i *server_impl,
const char *filename
- TAO_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
// Register with poa.
PortableServer::ObjectId_var id =
- poa->activate_object (server_impl TAO_ENV_ARG_PARAMETER);
+ poa->activate_object (server_impl ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
CORBA::Object_var server =
poa->id_to_reference (id.in ()
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
// Print out the IOR.
CORBA::String_var ior =
- orb->object_to_string (server.in () TAO_ENV_ARG_PARAMETER);
+ orb->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
ACE_DEBUG ((LM_DEBUG, "<%s>\n\n", ior.in ()));
@@ -143,7 +143,7 @@ main (int argc, char *argv[])
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" TAO_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
@@ -152,17 +152,17 @@ main (int argc, char *argv[])
// RootPOA.
CORBA::Object_var object =
- orb->resolve_initial_references("RootPOA" TAO_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (object.in () TAO_ENV_ARG_PARAMETER);
+ PortableServer::POA::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check_for_nil (root_poa.in (), "RootPOA") == -1)
return 1;
// POAManager.
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_ENV_SINGLE_ARG_PARAMETER);
+ root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Servants.
@@ -175,7 +175,7 @@ main (int argc, char *argv[])
orb.in (),
&server_impl1,
ior_output_file1
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)
return 1;
@@ -184,16 +184,16 @@ main (int argc, char *argv[])
orb.in (),
&server_impl2,
ior_output_file2
- TAO_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)
return 1;
// Run ORB Event loop.
- poa_manager->activate (TAO_ENV_SINGLE_ARG_PARAMETER);
+ poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->run (TAO_ENV_SINGLE_ARG_PARAMETER);
+ orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "Server ORB event loop finished\n"));