summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SUdpControlChannel.h
blob: 7986b86780c26445a96ce85b212f48a8026e81ae (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
40
41
42
43
44
45
46
47
48
49
50
51
52
// **********************************************************************
//
// Copyright (c) 2002
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_SUDP_CONTROL_CHANNEL_H
#define ICE_SUDP_CONTROL_CHANNEL_H

#include <Ice/InstanceF.h>
#include <IceUtil/Shared.h>
#include <IceUtil/Mutex.h>
#include <Ice/SUdpControlChannelF.h>
#include <Ice/SUdpTransceiverF.h>

namespace IceSecurity
{

namespace SecureUdp
{

using IceInternal::SUdpTransceiverPtr;
using IceInternal::InstancePtr;
using IceUtil::Shared;
using IceUtil::Mutex;

class ControlChannel : public virtual Shared
{

protected:

    ControlChannel(const SUdpTransceiverPtr&, const InstancePtr&);
    virtual ~ControlChannel();

    virtual void unsetTransceiver();

    friend IceInternal::SUdpTransceiver;

    SUdpTransceiverPtr _transceiver;
    InstancePtr _instance;
    Mutex _mutex;
};

}

}

#endif