summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SUdpControlChannel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/SUdpControlChannel.cpp')
-rw-r--r--cpp/src/Ice/SUdpControlChannel.cpp39
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;
+}
+