diff options
Diffstat (limited to 'cpp/src/Ice/ProtocolInstance.cpp')
-rw-r--r-- | cpp/src/Ice/ProtocolInstance.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/ProtocolInstance.cpp b/cpp/src/Ice/ProtocolInstance.cpp index 237f605c4f8..c7f17a3d9c3 100644 --- a/cpp/src/Ice/ProtocolInstance.cpp +++ b/cpp/src/Ice/ProtocolInstance.cpp @@ -14,6 +14,8 @@ #include <Ice/DefaultsAndOverrides.h> #include <Ice/TraceLevels.h> +#include <IceSSL/EndpointInfo.h> + using namespace std; using namespace Ice; using namespace IceInternal; @@ -41,6 +43,12 @@ IceInternal::ProtocolInstance::ProtocolInstance(const InstancePtr& instance, Sho } bool +IceInternal::ProtocolInstance::secure() const +{ + return _type == IceSSL::EndpointType || _type == WSSEndpointType; +} + +bool IceInternal::ProtocolInstance::preferIPv6() const { return _instance->preferIPv6(); @@ -76,7 +84,6 @@ IceInternal::ProtocolInstance::defaultTimeout() const return _instance->defaultsAndOverrides()->defaultTimeout; } - NetworkProxyPtr IceInternal::ProtocolInstance::networkProxy() const { |