Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / Simple / echo / server.cpp
bloba49faf9c04ea230e63874cbf18bac743c058c4b9
1 #include "../Simple_util.h"
2 #include "Echo_i.h"
4 // This is the main driver program for the time and date server.
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 Server<Echo_i> server;
11 ACE_DEBUG ((LM_DEBUG,
12 ACE_TEXT ("\n\tEcho server\n\n")));
14 try
16 if (server.init ("Echo",
17 argc,
18 argv) == -1)
19 return 1;
20 else
22 server.run ();
25 catch (const CORBA::UserException& userex)
27 userex._tao_print_exception ("User Exception");
28 return -1;
30 catch (const CORBA::SystemException& sysex)
32 sysex._tao_print_exception ("System Exception");
33 return -1;
35 catch (const ::CORBA::Exception &e)
37 e._tao_print_exception ("CORBA exception");
38 return 1;
41 return 0;