4 * @author Carlos O'Ryan <coryan@atdesk.com>
7 #include "ace/OS_NS_unistd.h"
9 Echo::Echo(CORBA::ORB_ptr orb
,
11 : orb_(CORBA::ORB::_duplicate(orb
))
12 , abort_counter_(abort_counter
)
17 Echo::echo_payload(Test::Payload
const &)
19 this->abort_counter_
--;
21 if (this->abort_counter_
== 0)
23 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Echo::echo_payload, sleeping\n"));
24 // Sleep for 15 seconds, forcing a flow control of some kind.
27 // Run the ORB for a while, to generate a short-lived release of
29 ACE_Time_Value
tv(0, 10000);
32 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Echo::echo_payload, aborting\n"));