diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-01-11 20:17:10 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-01-11 20:17:10 +0000 |
commit | 506feb75899cde565ba6be78418de5a12393d514 (patch) | |
tree | d5ad04e1dc0dc83269d9631a00921aa73eb3cbca /cpp/src/Ice/SUdpControlChannel.cpp | |
parent | move all types from module._internal.nameType to _internal.module.nameType (diff) | |
download | ice-506feb75899cde565ba6be78418de5a12393d514.tar.bz2 ice-506feb75899cde565ba6be78418de5a12393d514.tar.xz ice-506feb75899cde565ba6be78418de5a12393d514.zip |
Initial coding for Secure UDP.
Diffstat (limited to 'cpp/src/Ice/SUdpControlChannel.cpp')
-rw-r--r-- | cpp/src/Ice/SUdpControlChannel.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cpp/src/Ice/SUdpControlChannel.cpp b/cpp/src/Ice/SUdpControlChannel.cpp new file mode 100644 index 00000000000..127e04908a5 --- /dev/null +++ b/cpp/src/Ice/SUdpControlChannel.cpp @@ -0,0 +1,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 IceSecurity::SecureUdp::incRef(ControlChannel* p) { p->__incRef(); } +void IceSecurity::SecureUdp::decRef(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; +} + |