Continued changes from peer review
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Receiver_i.cpp
blob78148ce9169e47a40c98750cd315bc7aef17c08c
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 (void)
17 CORBA::Long
18 Receiver_i::receive_call (void)
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 (void)
37 ACE_DEBUG ((LM_DEBUG,
38 "(%P|%t) About to invoke shutdown...\n"));
39 this->orb_->shutdown (0);