2 #include "Hello_Impl.h"
4 Hello_Impl::Hello_Impl (CORBA::ORB_ptr orb
, MessageLog
* logger
)
5 : orb_ (CORBA::ORB::_duplicate (orb
))
11 Hello_Impl::say_hello (CORBA::Short count
)
13 this->logger_
->register_message_recv (count
);
21 Hello_Impl::shutdown ()
25 this->orb_
->shutdown (0);
27 catch (const CORBA::Exception
& ex
)
29 //FUZZ: disable check_for_lack_ACE_OS
30 ex
._tao_print_exception ("Exception caught in shutdown ():");
31 //FUZZ: enable check_for_lack_ACE_OS
35 MessageLog::MessageLog (int num
)
38 this->rcvd_
= new int[this->expected_
];
41 for (i
= 0; i
< this->expected_
; i
++)
47 MessageLog::~MessageLog ()
49 delete [] this->rcvd_
;
53 MessageLog::register_message_recv (int message_num
)
55 if (0 <= message_num
&& message_num
< this->expected_
)
57 this->rcvd_
[message_num
]++;
62 MessageLog::report_statistics ()
65 for (i
= 0; i
< this->expected_
; i
++)
67 count
+= this->rcvd_
[i
];
69 if (this->rcvd_
[i
] == 0)
72 "\nLOST message <<< %d >>>",