diff options
Diffstat (limited to 'cpp/src/Ice/SUdpClient.cpp')
-rw-r--r-- | cpp/src/Ice/SUdpClient.cpp | 178 |
1 files changed, 89 insertions, 89 deletions
diff --git a/cpp/src/Ice/SUdpClient.cpp b/cpp/src/Ice/SUdpClient.cpp index dc84eb2d2e8..9fc52e1105e 100644 --- a/cpp/src/Ice/SUdpClient.cpp +++ b/cpp/src/Ice/SUdpClient.cpp @@ -1,89 +1,89 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#include <Ice/SUdpClient.h>
-#include <Ice/CryptKey.h>
-#include <Ice/MessageAuthenticator.h>
-#include <Ice/SecureUdp.h>
-
-using Ice::Long;
-using IceSecurity::SecureUdp::CryptKeyPtr;
-using IceSecurity::SecureUdp::MessageAuthenticatorPtr;
-
-void ::IceInternal::incRef(::IceSecurity::SecureUdp::SUdpClient* p) { p->__incRef(); }
-void ::IceInternal::decRef(::IceSecurity::SecureUdp::SUdpClient* p) { p->__decRef(); }
-
-IceSecurity::SecureUdp::SUdpClient::SUdpClient(Long clientID,
- const ClientChannelPrx& clientChannel,
- const MessageAuthenticatorPtr& messageAuthenticator) :
- _clientID(clientID),
- _clientChannel(clientChannel),
- _messageAuthenticator(messageAuthenticator)
-{
- assert(_clientChannel);
- assert(_messageAuthenticator);
-}
-
-IceSecurity::SecureUdp::SUdpClient::~SUdpClient()
-{
-}
-
-void
-IceSecurity::SecureUdp::SUdpClient::serverHello(const CryptKeyPtr& key)
-{
- assert(_clientChannel);
- _clientChannel->serverHello(_clientID, key->toByteSeq());
-}
-
-void
-IceSecurity::SecureUdp::SUdpClient::serverKeyChange(const CryptKeyPtr& key)
-{
- assert(_clientChannel);
- _clientChannel->serverKeyChange(key->toByteSeq());
-}
-
-void
-IceSecurity::SecureUdp::SUdpClient::serverGoodbye()
-{
- assert(_clientChannel);
- _clientChannel->serverGoodbye();
-}
-
-Long
-IceSecurity::SecureUdp::SUdpClient::getClientID() const
-{
- return _clientID;
-}
-
-const CryptKeyPtr&
-IceSecurity::SecureUdp::SUdpClient::getCryptKey() const
-{
- return _cryptKey;
-}
-
-const CryptKeyPtr&
-IceSecurity::SecureUdp::SUdpClient::getCryptKey(Long msgID) const
-{
- // TODO: Must be able to return a CryptKey based on a msgID
- return _cryptKey;
-}
-
-const MessageAuthenticatorPtr&
-IceSecurity::SecureUdp::SUdpClient::getMessageAuthenticator() const
-{
- return _messageAuthenticator;
-}
-
-void
-IceSecurity::SecureUdp::SUdpClient::setNewCryptKey(Long msgID, const CryptKeyPtr& cryptKey)
-{
- _cryptKey = cryptKey;
-}
-
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/SUdpClient.h> +#include <Ice/CryptKey.h> +#include <Ice/MessageAuthenticator.h> +#include <Ice/SecureUdp.h> + +using Ice::Long; +using IceSecurity::SecureUdp::CryptKeyPtr; +using IceSecurity::SecureUdp::MessageAuthenticatorPtr; + +void ::IceInternal::incRef(::IceSecurity::SecureUdp::SUdpClient* p) { p->__incRef(); } +void ::IceInternal::decRef(::IceSecurity::SecureUdp::SUdpClient* p) { p->__decRef(); } + +IceSecurity::SecureUdp::SUdpClient::SUdpClient(Long clientID, + const ClientChannelPrx& clientChannel, + const MessageAuthenticatorPtr& messageAuthenticator) : + _clientID(clientID), + _clientChannel(clientChannel), + _messageAuthenticator(messageAuthenticator) +{ + assert(_clientChannel); + assert(_messageAuthenticator); +} + +IceSecurity::SecureUdp::SUdpClient::~SUdpClient() +{ +} + +void +IceSecurity::SecureUdp::SUdpClient::serverHello(const CryptKeyPtr& key) +{ + assert(_clientChannel); + _clientChannel->serverHello(_clientID, key->toByteSeq()); +} + +void +IceSecurity::SecureUdp::SUdpClient::serverKeyChange(const CryptKeyPtr& key) +{ + assert(_clientChannel); + _clientChannel->serverKeyChange(key->toByteSeq()); +} + +void +IceSecurity::SecureUdp::SUdpClient::serverGoodbye() +{ + assert(_clientChannel); + _clientChannel->serverGoodbye(); +} + +Long +IceSecurity::SecureUdp::SUdpClient::getClientID() const +{ + return _clientID; +} + +const CryptKeyPtr& +IceSecurity::SecureUdp::SUdpClient::getCryptKey() const +{ + return _cryptKey; +} + +const CryptKeyPtr& +IceSecurity::SecureUdp::SUdpClient::getCryptKey(Long msgID) const +{ + // TODO: Must be able to return a CryptKey based on a msgID + return _cryptKey; +} + +const MessageAuthenticatorPtr& +IceSecurity::SecureUdp::SUdpClient::getMessageAuthenticator() const +{ + return _messageAuthenticator; +} + +void +IceSecurity::SecureUdp::SUdpClient::setNewCryptKey(Long msgID, const CryptKeyPtr& cryptKey) +{ + _cryptKey = cryptKey; +} + |