diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-04-26 02:53:33 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-04-26 02:53:33 +0000 |
commit | 0d715a1edd4484c9b7074c9c3cb283d468a538bc (patch) | |
tree | 45934688c11aa189731ae51f07032050affd12ef /cpp/src/Ice/ProtocolPluginFacade.cpp | |
parent | Win32 fix (diff) | |
download | ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.bz2 ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.tar.xz ice-0d715a1edd4484c9b7074c9c3cb283d468a538bc.zip |
Renaming Ice.Trace.Security to IceSSL.Trace.Security Cleaning up IceSSL
dependencies on Ice core
Diffstat (limited to 'cpp/src/Ice/ProtocolPluginFacade.cpp')
-rw-r--r-- | cpp/src/Ice/ProtocolPluginFacade.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/cpp/src/Ice/ProtocolPluginFacade.cpp b/cpp/src/Ice/ProtocolPluginFacade.cpp new file mode 100644 index 00000000000..74dddf7b955 --- /dev/null +++ b/cpp/src/Ice/ProtocolPluginFacade.cpp @@ -0,0 +1,63 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/ProtocolPluginFacade.h> +#include <Ice/Instance.h> +#include <Ice/EndpointFactoryManager.h> +#include <Ice/TraceLevels.h> +#include <Ice/Initialize.h> + +using namespace std; +using namespace Ice; +using namespace IceInternal; + +void IceInternal::incRef(ProtocolPluginFacade* p) { p->__incRef(); } +void IceInternal::decRef(ProtocolPluginFacade* p) { p->__decRef(); } + +ProtocolPluginFacadePtr +IceInternal::getProtocolPluginFacade(const CommunicatorPtr& communicator) +{ + return new ProtocolPluginFacade(getInstance(communicator)); +} + +IceInternal::ProtocolPluginFacade::ProtocolPluginFacade(const InstancePtr& instance) + : _instance(instance) +{ +} + +CommunicatorPtr +IceInternal::ProtocolPluginFacade::getCommunicator() const +{ + return _instance->communicator(); +} + +string +IceInternal::ProtocolPluginFacade::getDefaultHost() const +{ + return _instance->defaultHost(); +} + +int +IceInternal::ProtocolPluginFacade::getNetworkTraceLevel() const +{ + return _instance->traceLevels()->network; +} + +const char* +IceInternal::ProtocolPluginFacade::getNetworkTraceCategory() const +{ + return _instance->traceLevels()->networkCat; +} + +void +IceInternal::ProtocolPluginFacade::addEndpointFactory(const EndpointFactoryPtr& factory) const +{ + _instance->endpointFactoryManager()->add(factory); +} |