blob: ecf711ed1197bb60f89e6ab487f9dbdc9a2e2422 (
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
|
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
#include <Ice/SUdpControlChannel.h>
#include <Ice/Instance.h>
using namespace std;
using namespace Ice;
void IceInternal::incRef(::IceSecurity::SecureUdp::ControlChannel* p) { p->__incRef(); }
void IceInternal::decRef(::IceSecurity::SecureUdp::ControlChannel* p) { p->__decRef(); }
IceSecurity::SecureUdp::ControlChannel::ControlChannel(const SUdpTransceiverPtr& transceiver,
const InstancePtr& instance) :
_transceiver(transceiver),
_instance(instance)
{
assert(transceiver);
}
IceSecurity::SecureUdp::ControlChannel::~ControlChannel()
{
unsetTransceiver();
}
void
IceSecurity::SecureUdp::ControlChannel::unsetTransceiver()
{
IceUtil::Mutex::Lock sync(_mutex);
_transceiver = 0;
}
|