#include "IFR_Service.h"
#include "tao/Environment.h"
#include "orbsvcs/Shutdown_Utilities.h"
Go to the source code of this file.
Classes | |
class | IFR_Service_Shutdown_Functor |
Functions | |
int | ACE_TMAIN (int argc, ACE_TCHAR *argv[]) |
int ACE_TMAIN | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) |
Definition at line 37 of file IFR_Server.cpp.
{ IFR_Service server; IFR_Service_Shutdown_Functor killer (server); Service_Shutdown kill_contractor (killer); try { int status = server.init (argc, argv); if (status != 0) { return 1; } else { server.run (); status = server.fini (); if (status == -1) { return 1; } } } catch (const CORBA::SystemException& sysex) { sysex._tao_print_exception ("System Exception"); return -1; } catch (const CORBA::Exception& ex) { ex._tao_print_exception ("Unknown Exception"); return -1; } return 0; }