blob: 9f4e8c8f0ff84fcb1a95e501b686a5cef21379f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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,
"(%P|%t) Doing a ping... \n"));
this->sender_->ping (ACE_TRY_ENV);
ACE_CHECK_RETURN (-1);
return this->no_calls_++;
}
CORBA::Long
Receiver_i::get_call_count (CORBA::Environment & /*ACE_TRY_ENV*/)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->iteration_;
}
|