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.cpp39
1 files changed, 39 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..16d4231cf8d
--- /dev/null
+++ b/TAO/tests/Oneways_Invoking_Twoways/Receiver_i.cpp
@@ -0,0 +1,39 @@
+#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 (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "Doing a ping... \n"));
+
+ this->sender_->ping (ACE_TRY_ENV);
+ ACE_CHECK;
+
+ return this->no_calls_++;
+}
+
+CORBA::Long
+Receiver_i::get_call_count (CORBA::Environment & /*ACE_TRY_ENV*/)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return this->iteration_;
+}