summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/POA/Demux/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/POA/Demux/client.cpp')
-rw-r--r--TAO/performance-tests/POA/Demux/client.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/TAO/performance-tests/POA/Demux/client.cpp b/TAO/performance-tests/POA/Demux/client.cpp
new file mode 100644
index 00000000000..9a013dadf0b
--- /dev/null
+++ b/TAO/performance-tests/POA/Demux/client.cpp
@@ -0,0 +1,59 @@
+// $Id$
+// ============================================================================
+//
+// = LIBRARY
+// TAO/performance-tests/Demux
+//
+// = FILENAME
+// client.cpp
+//
+// client side main program
+//
+// = AUTHOR
+//
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+
+#include "demux_test_client.h"
+#include "tao/debug.h"
+
+ACE_RCSID(CodeGen, client, "$Id$")
+
+int
+main (int argc, char *argv [])
+{
+
+ // Set TAO_debug_level to 0 to ensure silent running unless
+ // debugging is explicitly invoked
+ TAO_debug_level = 0;
+
+ Demux_Test_Client demux_test_client;
+
+ ACE_TRY_NEW_ENV;
+ {
+ int r = demux_test_client.init (argc, argv
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ if (r == -1)
+ return -1;
+
+ demux_test_client.run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH (CORBA::SystemException, sysex)
+ {
+ ACE_PRINT_EXCEPTION (sysex, "System Exception");
+ return -1;
+ }
+ ACE_CATCH (CORBA::UserException, userex)
+ {
+ ACE_PRINT_EXCEPTION (userex, "User Exception");
+ return -1;
+ }
+ ACE_ENDTRY;
+
+ return 0;
+
+}