diff options
author | Jose <jose@zeroc.com> | 2012-07-13 00:18:06 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-07-13 00:18:06 +0200 |
commit | 70802b63320582f0afa8229659ea9fe4a21d02ec (patch) | |
tree | eb455947cc774cc558f96b8d7c78373d2a6f1c2b /cpp/src/Ice/EndpointI.cpp | |
parent | ICE-4839 - Glacier2 sessionHelper IceSSL plug-in (diff) | |
download | ice-70802b63320582f0afa8229659ea9fe4a21d02ec.tar.bz2 ice-70802b63320582f0afa8229659ea9fe4a21d02ec.tar.xz ice-70802b63320582f0afa8229659ea9fe4a21d02ec.zip |
WinRT support
Diffstat (limited to 'cpp/src/Ice/EndpointI.cpp')
-rw-r--r-- | cpp/src/Ice/EndpointI.cpp | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/cpp/src/Ice/EndpointI.cpp b/cpp/src/Ice/EndpointI.cpp index 5ac241dd909..afb8bdd2743 100644 --- a/cpp/src/Ice/EndpointI.cpp +++ b/cpp/src/Ice/EndpointI.cpp @@ -10,7 +10,6 @@ #include <Ice/EndpointI.h> #include <Ice/Instance.h> #include <Ice/LocalException.h> -#include <Ice/Network.h> #include <Ice/PropertiesI.h> #include <Ice/LoggerUtil.h> #include <IceUtil/MutexPtrLock.h> @@ -58,7 +57,7 @@ IceInternal::EndpointI::ice_getHash() const } vector<ConnectorPtr> -IceInternal::EndpointI::connectors(const vector<struct sockaddr_storage>& addrs) const +IceInternal::EndpointI::connectors(const vector<Address>& addrs) const { // // This method must be extended by endpoints which use the EndpointHostResolver to create @@ -72,6 +71,8 @@ IceInternal::EndpointI::EndpointI() : _hashInitialized(false) { } +#ifndef ICE_OS_WINRT + IceInternal::EndpointHostResolver::EndpointHostResolver(const InstancePtr& instance) : IceUtil::Thread("Ice endpoint host resolver thread"), _instance(instance), @@ -105,7 +106,7 @@ IceInternal::EndpointHostResolver::EndpointHostResolver(const InstancePtr& insta void IceInternal::EndpointHostResolver::resolve(const string& host, int port, const EndpointIPtr& endpoint, const EndpointI_connectorsPtr& callback) -{ +{ // // Try to get the addresses without DNS lookup. If this doesn't work, we queue a resolve // entry and the thread will take care of getting the endpoint addresses. @@ -188,3 +189,32 @@ IceInternal::EndpointHostResolver::run() } _queue.clear(); } + +#else + +IceInternal::EndpointHostResolver::EndpointHostResolver(const InstancePtr& instance) +{ +} + +void +IceInternal::EndpointHostResolver::resolve(const string&, int, + const EndpointIPtr& endpoint, + const EndpointI_connectorsPtr& callback) +{ + // + // No DNS lookup support with WinRT. + // + callback->connectors(endpoint->connectors()); +} + +void +IceInternal::EndpointHostResolver::destroy() +{ +} + +void +IceInternal::EndpointHostResolver::run() +{ +} + +#endif |