1 #include "Notifier_Handler.h"
2 #include "Supplier_Input_Handler.h"
6 Supplier::handle_signal (int signum
, siginfo_t
*, ucontext_t
*)
22 "Notifier_Handler::run"));
33 Supplier::init (int argc
, ACE_TCHAR
*argv
[])
35 if (this->nh_
.init (argc
, argv
, this) == -1)
36 ACE_ERROR_RETURN ((LM_ERROR
,
38 "Notifier_Handler did not init\n"),
40 else if (this->ih_
.initialize (&nh_
) == -1)
41 ACE_ERROR_RETURN ((LM_ERROR
,
43 "Supplier Input handler did not init\n"),
45 else if (nh_
.reactor ()->register_handler (SIGINT
, this) == -1)
46 ACE_ERROR_RETURN ((LM_ERROR
,
51 "Supplier initialized..\n"));
56 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
58 // Initialize server daemon.
63 if (supplier
.init (argc
, argv
) == -1)
64 ACE_ERROR_RETURN ((LM_ERROR
,
66 "supplier init failed"),
69 // Loop forever handling events.
72 catch (const ::CORBA::Exception
&e
)
74 e
._tao_print_exception ("Caught unexpected CORBA exception : ");