summaryrefslogtreecommitdiff
path: root/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
diff options
context:
space:
mode:
authorseibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-24 22:12:20 +0000
committerseibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-24 22:12:20 +0000
commit47b676670dc9373bc77af80388e0b51e36134738 (patch)
treeaacce0809279e1d142e7b196a84ff10dfbdae4d0 /CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
parent3dd4e2fe6c64de3a9db04757eade78d764b578f1 (diff)
downloadATCD-GH5_0port.tar.gz
Added the ACE and TAO for this branchGH5_0port
Diffstat (limited to 'CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp')
-rw-r--r--CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp b/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
deleted file mode 100644
index 2df894b41c1..00000000000
--- a/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-// $Id$
-
-//==============================================================
-/**
- * @file client.cpp
- *
- * This is a simple client test program that interact with the RoundTrip
- * component implementation. The single threaded client issues
- * two-way operations, the total latency (response time) is measured
- * NOTE: this client implementation has been adapted from the
- * $TAO_ROOT/performance-results/Latency/Single_Threaded/
- *
- * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
- */
-//==============================================================
-#include "RoundTripClientC.h"
-
-const char *ior = "file://test.ior";
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
-
- // Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Resolve HomeFinder interface
- CORBA::Object_var obj
- = orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- Benchmark::RoundTripClient_var test =
- Benchmark::RoundTripClient::_narrow(obj.in());
- //Get the RoundTrip reference
- Benchmark::Controller_var trigger = test->provide_controller ();
-
- //Send a trigger to start the test
- trigger->start();
-
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception Handled:");
- return 1;
- }
-
- ACE_ENDTRY;
-
- return 0;
-}