summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/POA/Demux/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/POA/Demux/server.cpp')
-rw-r--r--TAO/performance-tests/POA/Demux/server.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/TAO/performance-tests/POA/Demux/server.cpp b/TAO/performance-tests/POA/Demux/server.cpp
new file mode 100644
index 00000000000..629bb31cf5f
--- /dev/null
+++ b/TAO/performance-tests/POA/Demux/server.cpp
@@ -0,0 +1,58 @@
+// $Id$
+// ============================================================================
+//
+// = LIBRARY
+// TAO/performance-tests/Demux
+//
+// = FILENAME
+// server.cpp
+//
+// Server-side driver program
+//
+// = AUTHOR
+//
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+
+#include "demux_test_server.h"
+#include "tao/debug.h"
+
+ACE_RCSID(CodeGen, server, "$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_Server demux_test_server;
+
+ ACE_TRY_NEW_ENV
+ {
+ int r =
+ demux_test_server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (r == -1)
+ return -1;
+
+ demux_test_server.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;
+}