diff options
Diffstat (limited to 'TAO/tests/OBV/Simple/server.cpp')
-rw-r--r-- | TAO/tests/OBV/Simple/server.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/tests/OBV/Simple/server.cpp b/TAO/tests/OBV/Simple/server.cpp new file mode 100644 index 00000000000..31b84c2b421 --- /dev/null +++ b/TAO/tests/OBV/Simple/server.cpp @@ -0,0 +1,40 @@ +// $Id$ +#include "Simple_util.h" +#include "Server_i.h" + +// This is the main driver program for the time and date server. + +int +main (int argc, char *argv[]) +{ + Server<Checkpoint_i> server; + + ACE_DEBUG ((LM_DEBUG, + "\n\tCheckpoint Event_Types server\n\n")); + + + try + { + if (server.init ("Event_Types_Checkpoint", + argc, + argv) == -1) + return 1; + else + { + server.run (); + } + } + catch (const CORBA::SystemException& sysex) + { + sysex._tao_print_exception ("System Exception"); + return -1; + } + catch (const CORBA::UserException& userex) + { + userex._tao_print_exception ("User Exception"); + return -1; + } + + return 0; +} + |