Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / performance-tests / POA / Demux / server.cpp
blobbac7c2a6fc9cb33b25dcfe692198747b511aa38d
1 //=============================================================================
2 /**
3 * @file server.cpp
5 * Server-side driver program
7 * @author Aniruddha Gokhale
8 */
9 //=============================================================================
11 #include "demux_test_server.h"
12 #include "tao/debug.h"
14 int ACE_TMAIN (int argc, ACE_TCHAR *argv [])
16 // Set TAO_debug_level to 0 to ensure silent running unless
17 // debugging is explicitly invoked
19 TAO_debug_level = 0;
21 Demux_Test_Server demux_test_server;
23 try
25 int r =
26 demux_test_server.init (argc, argv);
28 if (r == -1)
29 return -1;
31 demux_test_server.run ();
33 catch (const CORBA::SystemException& sysex)
35 sysex._tao_print_exception ("System Exception");
36 return -1;
38 catch (const CORBA::UserException& userex)
40 userex._tao_print_exception ("User Exception");
41 return -1;
43 return 0;