1 #include "Notifier_Handler.h"
2 #include "Supplier_Input_Handler.h"
5 Supplier::Supplier (void)
10 Supplier::~Supplier (void)
16 Supplier::handle_signal (int signum
, siginfo_t
*, ucontext_t
*)
32 "Notifier_Handler::run"));
36 Supplier::close (void)
43 Supplier::init (int argc
, ACE_TCHAR
*argv
[])
45 if (this->nh_
.init (argc
, argv
, this) == -1)
46 ACE_ERROR_RETURN ((LM_ERROR
,
48 "Notifier_Handler did not init\n"),
50 else if (this->ih_
.initialize (&nh_
) == -1)
51 ACE_ERROR_RETURN ((LM_ERROR
,
53 "Supplier Input handler did not init\n"),
55 else if (nh_
.reactor ()->register_handler (SIGINT
, this) == -1)
56 ACE_ERROR_RETURN ((LM_ERROR
,
61 "Supplier initialized..\n"));
66 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
68 // Initialize server daemon.
74 if (supplier
.init (argc
, argv
) == -1)
75 ACE_ERROR_RETURN ((LM_ERROR
,
77 "supplier init failed"),
80 // Loop forever handling events.
83 catch (const ::CORBA::Exception
&e
)
85 e
._tao_print_exception ("Caught unexpected CORBA exception : ");