summaryrefslogtreecommitdiff
path: root/ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp')
-rw-r--r--ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp b/ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
new file mode 100644
index 00000000000..570a06fe83b
--- /dev/null
+++ b/ACE/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
@@ -0,0 +1,44 @@
+#include "Receiver_i.h"
+
+ACE_RCSID(Oneways_Invoking_Twoways, Receiver_i, "$Id$")
+
+Receiver_i::Receiver_i (CORBA::ORB_ptr orb,
+ Test::Sender_ptr sender,
+ CORBA::ULong iter)
+ : no_calls_ (0),
+ orb_ (CORBA::ORB::_duplicate (orb)),
+ sender_ (Test::Sender::_duplicate (sender)),
+ iteration_ (iter)
+{
+}
+
+Receiver_i::~Receiver_i (void)
+{
+}
+
+
+
+CORBA::Long
+Receiver_i::receive_call (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Doing a ping...\n"));
+
+ this->sender_->ping ();
+
+ return this->no_calls_++;
+}
+
+CORBA::Long
+Receiver_i::get_call_count ( /**/)
+{
+ return this->iteration_;
+}
+
+void
+Receiver_i::shutdown (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) About to invoke shutdown...\n"));
+ this->orb_->shutdown (0);
+}