diff options
Diffstat (limited to 'cpp/src/Ice/SUdpControlChannel.cpp')
-rw-r--r-- | cpp/src/Ice/SUdpControlChannel.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/cpp/src/Ice/SUdpControlChannel.cpp b/cpp/src/Ice/SUdpControlChannel.cpp index 7b5e30b8dea..6d78b435404 100644 --- a/cpp/src/Ice/SUdpControlChannel.cpp +++ b/cpp/src/Ice/SUdpControlChannel.cpp @@ -1,47 +1,47 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#include <Ice/Logger.h>
-#include <Ice/TraceLevels.h>
-#include <Ice/SUdpControlChannel.h>
-#include <Ice/Cryptor.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,
-IceSecurity::SecureUdp::ControlChannel::ControlChannel(SUdpTransceiver* transceiver,
- const InstancePtr& instance) :
- _transceiver(transceiver),
- _instance(instance),
- _traceLevels(instance->traceLevels()),
- _logger(instance->logger())
-{
- assert(transceiver);
-
- _cryptor = new Cryptor();
-}
-
-IceSecurity::SecureUdp::ControlChannel::~ControlChannel()
-{
- unsetTransceiver();
-}
-
-void
-IceSecurity::SecureUdp::ControlChannel::unsetTransceiver()
-{
- IceUtil::Mutex::Lock sync(_mutex);
- _transceiver = 0;
-}
-
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Logger.h> +#include <Ice/TraceLevels.h> +#include <Ice/SUdpControlChannel.h> +#include <Ice/Cryptor.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, +IceSecurity::SecureUdp::ControlChannel::ControlChannel(SUdpTransceiver* transceiver, + const InstancePtr& instance) : + _transceiver(transceiver), + _instance(instance), + _traceLevels(instance->traceLevels()), + _logger(instance->logger()) +{ + assert(transceiver); + + _cryptor = new Cryptor(); +} + +IceSecurity::SecureUdp::ControlChannel::~ControlChannel() +{ + unsetTransceiver(); +} + +void +IceSecurity::SecureUdp::ControlChannel::unsetTransceiver() +{ + IceUtil::Mutex::Lock sync(_mutex); + _transceiver = 0; +} + |