summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SUdpClientControlChannel.h
blob: 84b512e304cac5e327fdfa93905c4093e0254c3f (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
53
54
55
56
// **********************************************************************
//
// Copyright (c) 2002
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_SUDP_CLIENT_CONTROL_CHANNEL_H
#define ICE_SUDP_CLIENT_CONTROL_CHANNEL_H

#include <Ice/SUdpControlChannel.h>
#include <Ice/SecureUdp.h>

namespace IceSecurity
{

namespace SecureUdp
{

using IceInternal::SUdpTransceiver;
using Ice::Long;
using Ice::ByteSeq;
using Ice::Current;

class ClientControlChannel : public ControlChannel, public ClientChannel
{

public:

    virtual void serverHello(Long, const ByteSeq&, const Current&);

    virtual void serverKeyChange(const ByteSeq&, const Current&);

    virtual void serverGoodbye(const Current&);

protected:

    ClientControlChannel(const SUdpTransceiverPtr&, const InstancePtr&, const std::string&, int);

    virtual ~ClientControlChannel();

    friend IceInternal::SUdpTransceiver;

    std::string _host;
    int _port;
    Ice::ObjectAdapterPtr _adapter;
};

}

}

#endif