summaryrefslogtreecommitdiff
path: root/TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp')
-rw-r--r--TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp38
1 files changed, 13 insertions, 25 deletions
diff --git a/TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp b/TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp
index 7e94ff502e5..6544b23169b 100644
--- a/TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp
+++ b/TAO/tests/TransportCurrent/IIOP/IIOP_Tester.cpp
@@ -22,16 +22,13 @@ using namespace TAO;
/// or a client-side interceptor
int
-test_transport_current (CORBA::ORB_ptr orb
- ACE_ENV_ARG_DECL)
+test_transport_current (CORBA::ORB_ptr orb)
ACE_THROW_SPEC ((CORBA::SystemException,
CORBA::UserException))
{
// Get the Current object.
CORBA::Object_var tcobject =
- orb->resolve_initial_references (ACE_TEXT_ALWAYS_CHAR ("TAO::Transport::IIOP::Current")
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->resolve_initial_references (ACE_TEXT_ALWAYS_CHAR ("TAO::Transport::IIOP::Current"));
if (TAO_debug_level >= 1)
@@ -39,9 +36,7 @@ test_transport_current (CORBA::ORB_ptr orb
ACE_TEXT ("Tester (%P|%t) Resolved initial reference for IIOP::Current\n")));
Transport::IIOP::Current_var tc =
- Transport::IIOP::Current::_narrow (tcobject.in ()
- ACE_ENV_SINGLE_ARG_DECL);
- ACE_TRY_CHECK;
+ Transport::IIOP::Current::_narrow (tcobject.in ());
if (TAO_debug_level >= 1)
ACE_DEBUG ((LM_DEBUG,
@@ -53,36 +48,29 @@ test_transport_current (CORBA::ORB_ptr orb
ACE_TEXT ("Tester (%P|%t) ERROR: Could not resolve ")
ACE_TEXT ("TAO::Transport::IIOP::Current object.\n")));
- ACE_TRY_THROW (CORBA::INTERNAL ());
+ throw CORBA::INTERNAL ();
}
- ::CORBA::String_var rhost (tc->remote_host (ACE_ENV_SINGLE_ARG_PARAMETER));
- ACE_TRY_CHECK;
+ ::CORBA::String_var rhost (tc->remote_host ());
- ::CORBA::String_var lhost (tc->local_host (ACE_ENV_SINGLE_ARG_PARAMETER));
- ACE_TRY_CHECK;
+ ::CORBA::String_var lhost (tc->local_host ());
- ::CORBA::Long id = tc->id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ::CORBA::Long id = tc->id ();
- ::TAO::CounterT bs = tc->bytes_sent (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ::TAO::CounterT bs = tc->bytes_sent ();
- ::TAO::CounterT br = tc->bytes_received (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ::TAO::CounterT br = tc->bytes_received ();
- ::TAO::CounterT rs = tc->messages_sent (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ::TAO::CounterT rs = tc->messages_sent ();
- ::TAO::CounterT rr = tc->messages_received (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ::TAO::CounterT rr = tc->messages_received ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Tester (%P|%t) Transport [%q] [%s:%d -> %s:%d] ")
ACE_TEXT ("Sent/Received [bytes=%q/%q, messages=%q/%q]\n"),
(ACE_UINT64)id,
- rhost.in (), tc->remote_port (ACE_ENV_SINGLE_ARG_PARAMETER),
- lhost.in (), tc->local_port (ACE_ENV_SINGLE_ARG_PARAMETER),
+ rhost.in (), tc->remote_port (),
+ lhost.in (), tc->local_port (),
(ACE_UINT64)bs,
(ACE_UINT64)br,
(ACE_UINT64)rs,