Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Receiver_i.cpp
blob5d9da902030ee0f7fb33966cfe0b29157a66499d
1 #include "Receiver_i.h"
3 Receiver_i::Receiver_i (CORBA::ORB_ptr orb,
4 Test::Sender_ptr sender,
5 CORBA::ULong iter)
6 : no_calls_ (0),
7 orb_ (CORBA::ORB::_duplicate (orb)),
8 sender_ (Test::Sender::_duplicate (sender)),
9 iteration_ (iter)
13 Receiver_i::~Receiver_i ()
17 CORBA::Long
18 Receiver_i::receive_call ()
20 ACE_DEBUG ((LM_DEBUG,
21 "(%P|%t) Doing a ping...\n"));
23 this->sender_->ping ();
25 return this->no_calls_++;
28 CORBA::Long
29 Receiver_i::get_call_count ()
31 return this->iteration_;
34 void
35 Receiver_i::shutdown ()
37 ACE_DEBUG ((LM_DEBUG,
38 "(%P|%t) About to invoke shutdown...\n"));
39 this->orb_->shutdown (false);