summaryrefslogtreecommitdiff
path: root/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp')
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp b/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
new file mode 100644
index 00000000000..4ece8c08df7
--- /dev/null
+++ b/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
@@ -0,0 +1,36 @@
+#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)
+ : orb_ (CORBA::ORB::_duplicate (orb)),
+ sender_ (Test::Sender::_duplicate (sender)),
+ iteration_ (iter),
+ no_calls_ (0)
+{
+}
+
+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_;
+}