diff options
Diffstat (limited to 'cpp/src/Ice/SUdpClientControlChannel.h')
-rw-r--r-- | cpp/src/Ice/SUdpClientControlChannel.h | 139 |
1 files changed, 83 insertions, 56 deletions
diff --git a/cpp/src/Ice/SUdpClientControlChannel.h b/cpp/src/Ice/SUdpClientControlChannel.h index 84b512e304c..c58fa722ff6 100644 --- a/cpp/src/Ice/SUdpClientControlChannel.h +++ b/cpp/src/Ice/SUdpClientControlChannel.h @@ -1,56 +1,83 @@ -// ********************************************************************** -// -// 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 +// **********************************************************************
+//
+// 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>
+#include <Ice/Buffer.h>
+#include <Ice/CryptKeyF.h>
+#include <Ice/MessageAuthenticatorF.h>
+
+namespace IceInternal
+{
+
+// class SUdpTransceiverPtr;
+
+}
+
+namespace IceSecurity
+{
+
+namespace SecureUdp
+{
+
+using IceInternal::SUdpTransceiver;
+using IceInternal::Buffer;
+using Ice::Long;
+using Ice::ByteSeq;
+using Ice::Current;
+
+
+class ClientControlChannel : public ControlChannel, public ClientChannel
+{
+
+public:
+
+ // Messages received from the Server
+ 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();
+
+ void serverKeyChange(const ByteSeq&);
+ void clientHello();
+
+
+ friend IceInternal::SUdpTransceiver;
+
+ // Called from the SUdpTransceiver
+ void encryptPacket(Buffer&, Buffer&);
+ void clientKeyRequest();
+
+
+ Ice::ObjectAdapterPtr _adapter;
+ ServerChannelPrx _serverChannel;
+
+ Long _msgID;
+ Long _clientID;
+ CryptKeyPtr _encryptionKey;
+
+ MessageAuthenticatorPtr _messageAuthenticator;
+};
+
+}
+
+}
+
+#endif
+
|