// ********************************************************************** // // Copyright (c) 2001 // MutableRealms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #include #include 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; }