blob: 9942c6020d6ec7048e67f5b9058cbc82ed2d596c (
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
40
41
|
//
// $Id$
//
#include "Oneway_Buffering.h"
ACE_RCSID(Oneway_Buffering, Oneway_Buffering, "$Id$")
Oneway_Buffering::Oneway_Buffering (CORBA::ORB_ptr orb,
Test::Oneway_Buffering_Admin_ptr admin)
: orb_ (CORBA::ORB::_duplicate (orb))
, admin_ (Test::Oneway_Buffering_Admin::_duplicate (admin))
{
}
void
Oneway_Buffering::receive_data (const Test::Payload &the_payload
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->admin_->request_received (the_payload.length () ACE_ENV_ARG_PARAMETER);
}
void
Oneway_Buffering::flush (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
void
Oneway_Buffering::sync (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->admin_->flush (ACE_ENV_SINGLE_ARG_PARAMETER);
}
void
Oneway_Buffering::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
}
|