summaryrefslogtreecommitdiff
path: root/TAO/examples/Buffered_Oneways/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Buffered_Oneways/client.cpp')
-rw-r--r--TAO/examples/Buffered_Oneways/client.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/TAO/examples/Buffered_Oneways/client.cpp b/TAO/examples/Buffered_Oneways/client.cpp
index e61f720ac72..dbe248cc7f1 100644
--- a/TAO/examples/Buffered_Oneways/client.cpp
+++ b/TAO/examples/Buffered_Oneways/client.cpp
@@ -115,7 +115,7 @@ parse_args (int argc, char **argv)
int
main (int argc, char **argv)
{
- ACE_DECLARE_NEW_CORBA_ENV;
+ TAO_ENV_DECLARE_NEW_ENV;
ACE_TRY
{
@@ -123,8 +123,8 @@ main (int argc, char **argv)
CORBA::ORB_var orb =
CORBA::ORB_init (argc,
argv,
- 0,
- ACE_TRY_ENV);
+ 0
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
@@ -134,24 +134,24 @@ main (int argc, char **argv)
// Get an object reference from the argument string.
CORBA::Object_var base =
- orb->string_to_object (IOR,
- ACE_TRY_ENV);
+ orb->string_to_object (IOR
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Try to narrow the object reference to a <test> reference.
- test_var test_object = test::_narrow (base.in (),
- ACE_TRY_ENV);
+ test_var test_object = test::_narrow (base.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Obtain PolicyCurrent.
- base = orb->resolve_initial_references ("PolicyCurrent",
- ACE_TRY_ENV);
+ base = orb->resolve_initial_references ("PolicyCurrent"
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Narrow down to correct type.
CORBA::PolicyCurrent_var policy_current =
- CORBA::PolicyCurrent::_narrow (base.in (),
- ACE_TRY_ENV);
+ CORBA::PolicyCurrent::_narrow (base.in ()
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Setup the none sync scope policy, i.e., the ORB will buffer
@@ -169,18 +169,18 @@ main (int argc, char **argv)
// Setup the none sync scope policy.
sync_none_policy_list[0] =
orb->create_policy (Messaging::SYNC_SCOPE_POLICY_TYPE,
- sync_none_any,
- ACE_TRY_ENV);
+ sync_none_any
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Setup the none sync scope.
policy_current->set_policy_overrides (sync_none_policy_list,
- CORBA::ADD_OVERRIDE,
- ACE_TRY_ENV);
+ CORBA::ADD_OVERRIDE
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// We are now done with this policy.
- sync_none_policy_list[0]->destroy (ACE_TRY_ENV);
+ sync_none_policy_list[0]->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Start off with no constraints.
@@ -225,14 +225,14 @@ main (int argc, char **argv)
// Setup the buffering constraint policy.
buffering_constraint_policy_list[0] =
orb->create_policy (TAO::BUFFERING_CONSTRAINT_POLICY_TYPE,
- buffering_constraint_any,
- ACE_TRY_ENV);
+ buffering_constraint_any
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Setup the constraints.
policy_current->set_policy_overrides (buffering_constraint_policy_list,
- CORBA::ADD_OVERRIDE,
- ACE_TRY_ENV);
+ CORBA::ADD_OVERRIDE
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
//
@@ -258,8 +258,8 @@ main (int argc, char **argv)
// Setup the buffering flush policy.
buffering_flush_policy_list[0] =
orb->create_policy (TAO::BUFFERING_CONSTRAINT_POLICY_TYPE,
- buffering_flush_any,
- ACE_TRY_ENV);
+ buffering_flush_any
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
//
@@ -274,8 +274,8 @@ main (int argc, char **argv)
{
// Setup explicit flushing.
policy_current->set_policy_overrides (buffering_flush_policy_list,
- CORBA::ADD_OVERRIDE,
- ACE_TRY_ENV);
+ CORBA::ADD_OVERRIDE
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
@@ -283,14 +283,14 @@ main (int argc, char **argv)
i));
// Invoke the oneway method.
- test_object->method (i,
- ACE_TRY_ENV);
+ test_object->method (i
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Reset buffering policy.
policy_current->set_policy_overrides (buffering_constraint_policy_list,
- CORBA::ADD_OVERRIDE,
- ACE_TRY_ENV);
+ CORBA::ADD_OVERRIDE
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
else
@@ -300,8 +300,8 @@ main (int argc, char **argv)
i));
// Invoke the oneway method.
- test_object->method (i,
- ACE_TRY_ENV);
+ test_object->method (i
+ TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -309,23 +309,23 @@ main (int argc, char **argv)
ACE_Time_Value sleep_interval (0,
interval * 1000);
- orb->run (sleep_interval, ACE_TRY_ENV);
+ orb->run (sleep_interval TAO_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
// Shutdown server.
if (shutdown_server)
{
- test_object->shutdown (ACE_TRY_ENV);
+ test_object->shutdown (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
// We are done with the policy.
- buffering_constraint_policy_list[0]->destroy (ACE_TRY_ENV);
+ buffering_constraint_policy_list[0]->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// We are done with the policy.
- buffering_flush_policy_list[0]->destroy (ACE_TRY_ENV);
+ buffering_flush_policy_list[0]->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
// Destroy the ORB. On some platforms, e.g., Win32, the socket
@@ -334,7 +334,7 @@ main (int argc, char **argv)
// static destructors to flush the queues, it will be too late.
// Therefore, we use explicit destruction here and flush the
// queues before main() ends.
- orb->destroy (ACE_TRY_ENV);
+ orb->destroy (TAO_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY