diff options
Diffstat (limited to 'TAO/examples/Simple/time/server.cpp')
-rw-r--r-- | TAO/examples/Simple/time/server.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/TAO/examples/Simple/time/server.cpp b/TAO/examples/Simple/time/server.cpp deleted file mode 100644 index 8ad9b35a09a..00000000000 --- a/TAO/examples/Simple/time/server.cpp +++ /dev/null @@ -1,54 +0,0 @@ -// $Id$ -#include "../Simple_util.h" -#include "Time_i.h" - -// This is the main driver program for the time and date server. - -int -main (int argc, char *argv[]) -{ - Server<Time_i> server; - - ACE_DEBUG ((LM_DEBUG, - "\n\tTime and Date server\n\n")); - - TAO_TRY - { - if (server.init ("Time", - argc, - argv, - TAO_TRY_ENV) == -1) - return 1; - else - { - server.run (TAO_TRY_ENV); - TAO_CHECK_ENV; - } - } - TAO_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG (sysex); - TAO_TRY_ENV.print_exception ("System Exception"); - return -1; - } - TAO_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG (userex); - TAO_TRY_ENV.print_exception ("User Exception"); - return -1; - } - TAO_ENDTRY; - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class Server<Time_i>; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate Server<Time_i> - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - |