zeroc-ice 3.7.9.1 → 3.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/ext/ice/cpp/include/Ice/Config.h +5 -7
  3. data/ext/ice/cpp/include/Ice/ConsoleUtil.h +1 -1
  4. data/ext/ice/cpp/include/Ice/Ice.h +2 -2
  5. data/ext/ice/cpp/include/Ice/SHA1.h +0 -2
  6. data/ext/ice/cpp/include/IceSSL/IceSSL.h +3 -7
  7. data/ext/ice/cpp/include/IceUtil/Config.h +12 -44
  8. data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +1 -1
  9. data/ext/ice/cpp/include/IceUtil/FileUtil.h +0 -3
  10. data/ext/ice/cpp/include/IceUtil/IceUtil.h +1 -1
  11. data/ext/ice/cpp/include/IceUtil/Mutex.h +0 -4
  12. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +5 -21
  13. data/ext/ice/cpp/include/IceUtil/Thread.h +4 -18
  14. data/ext/ice/cpp/include/IceUtil/Timer.h +1 -0
  15. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +2 -2
  16. data/ext/ice/cpp/include/generated/Ice/Communicator.h +2 -2
  17. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +2 -2
  18. data/ext/ice/cpp/include/generated/Ice/Connection.h +2 -2
  19. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +2 -2
  20. data/ext/ice/cpp/include/generated/Ice/Current.h +4 -4
  21. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +2 -2
  22. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +2 -2
  23. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +2 -2
  24. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +2 -2
  25. data/ext/ice/cpp/include/generated/Ice/Identity.h +2 -2
  26. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +2 -2
  27. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +2 -2
  28. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +2 -2
  29. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +2 -2
  30. data/ext/ice/cpp/include/generated/Ice/LocalException.h +2 -2
  31. data/ext/ice/cpp/include/generated/Ice/Locator.h +2 -2
  32. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +2 -2
  33. data/ext/ice/cpp/include/generated/Ice/Logger.h +2 -2
  34. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +2 -2
  35. data/ext/ice/cpp/include/generated/Ice/Metrics.h +2 -2
  36. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +2 -2
  37. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +2 -2
  38. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +2 -2
  39. data/ext/ice/cpp/include/generated/Ice/Plugin.h +2 -2
  40. data/ext/ice/cpp/include/generated/Ice/PluginF.h +2 -2
  41. data/ext/ice/cpp/include/generated/Ice/Process.h +2 -2
  42. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +2 -2
  43. data/ext/ice/cpp/include/generated/Ice/Properties.h +8 -8
  44. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +2 -2
  45. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +2 -2
  46. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +2 -2
  47. data/ext/ice/cpp/include/generated/Ice/Router.h +2 -2
  48. data/ext/ice/cpp/include/generated/Ice/RouterF.h +2 -2
  49. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +2 -2
  50. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +2 -2
  51. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +2 -2
  52. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +2 -2
  53. data/ext/ice/cpp/include/generated/Ice/Version.h +2 -2
  54. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +2 -2
  55. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +2 -2
  56. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +2 -2
  57. data/ext/ice/cpp/src/Ice/Acceptor.h +1 -1
  58. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +2 -2
  59. data/ext/ice/cpp/src/Ice/Communicator.cpp +2 -2
  60. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +2 -2
  61. data/ext/ice/cpp/src/Ice/Connection.cpp +2 -2
  62. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +2 -2
  63. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +1 -1
  64. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +2 -2
  65. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +5 -5
  66. data/ext/ice/cpp/src/Ice/ConnectionI.h +6 -8
  67. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -8
  68. data/ext/ice/cpp/src/Ice/Current.cpp +2 -2
  69. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -2
  70. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +2 -9
  71. data/ext/ice/cpp/src/Ice/Endpoint.cpp +2 -2
  72. data/ext/ice/cpp/src/Ice/EndpointF.cpp +2 -2
  73. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +2 -2
  74. data/ext/ice/cpp/src/Ice/EventHandler.cpp +1 -1
  75. data/ext/ice/cpp/src/Ice/EventHandler.h +2 -2
  76. data/ext/ice/cpp/src/Ice/Exception.cpp +0 -27
  77. data/ext/ice/cpp/src/Ice/FacetMap.cpp +2 -2
  78. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -46
  79. data/ext/ice/cpp/src/Ice/IPEndpointI.h +1 -11
  80. data/ext/ice/cpp/src/Ice/Identity.cpp +2 -2
  81. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +2 -2
  82. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +2 -2
  83. data/ext/ice/cpp/src/Ice/Instance.cpp +2 -6
  84. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +2 -2
  85. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +2 -2
  86. data/ext/ice/cpp/src/Ice/LocalException.cpp +2 -2
  87. data/ext/ice/cpp/src/Ice/Locator.cpp +2 -2
  88. data/ext/ice/cpp/src/Ice/LocatorF.cpp +2 -2
  89. data/ext/ice/cpp/src/Ice/Logger.cpp +2 -2
  90. data/ext/ice/cpp/src/Ice/LoggerF.cpp +2 -2
  91. data/ext/ice/cpp/src/Ice/LoggerI.cpp +1 -3
  92. data/ext/ice/cpp/src/Ice/Metrics.cpp +2 -2
  93. data/ext/ice/cpp/src/Ice/Network.cpp +15 -841
  94. data/ext/ice/cpp/src/Ice/Network.h +4 -86
  95. data/ext/ice/cpp/src/Ice/NetworkF.h +0 -4
  96. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -13
  97. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +2 -2
  98. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +2 -2
  99. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +2 -2
  100. data/ext/ice/cpp/src/Ice/Plugin.cpp +2 -2
  101. data/ext/ice/cpp/src/Ice/PluginF.cpp +2 -2
  102. data/ext/ice/cpp/src/Ice/Process.cpp +2 -2
  103. data/ext/ice/cpp/src/Ice/ProcessF.cpp +2 -2
  104. data/ext/ice/cpp/src/Ice/Properties.cpp +2 -2
  105. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +2 -2
  106. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +2 -2
  107. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +4 -12
  108. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +2 -2
  109. data/ext/ice/cpp/src/Ice/Router.cpp +2 -2
  110. data/ext/ice/cpp/src/Ice/RouterF.cpp +2 -2
  111. data/ext/ice/cpp/src/Ice/SHA1.cpp +27 -43
  112. data/ext/ice/cpp/src/Ice/Selector.cpp +1 -13
  113. data/ext/ice/cpp/src/Ice/Selector.h +1 -17
  114. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +2 -2
  115. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +2 -2
  116. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +2 -2
  117. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +4 -167
  118. data/ext/ice/cpp/src/Ice/StreamSocket.h +3 -10
  119. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -121
  120. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +2 -10
  121. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +1 -1
  122. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +1 -1
  123. data/ext/ice/cpp/src/Ice/Thread.cpp +1 -243
  124. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +15 -51
  125. data/ext/ice/cpp/src/Ice/ThreadPool.h +6 -6
  126. data/ext/ice/cpp/src/Ice/Transceiver.h +1 -1
  127. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +0 -5
  128. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +13 -360
  129. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +2 -23
  130. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +2 -2
  131. data/ext/ice/cpp/src/Ice/Version.cpp +2 -2
  132. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +2 -2
  133. data/ext/ice/cpp/src/Ice/WSAcceptor.h +2 -2
  134. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +2 -45
  135. data/ext/ice/cpp/src/Ice/WSTransceiver.h +2 -2
  136. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +2 -2
  137. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +2 -2
  138. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +2 -2
  139. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +2 -2
  140. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +2 -2
  141. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +2 -2
  142. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +2 -2
  143. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +2 -2
  144. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +2 -2
  145. data/ext/ice/cpp/src/IceSSL/Util.cpp +1 -1
  146. data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +1 -1
  147. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +4 -17
  148. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +0 -4
  149. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +0 -45
  150. data/ext/ice/cpp/src/IceUtil/UUID.cpp +2 -6
  151. data/ext/ice/cpp/src/IceUtil/UtilException.cpp +1 -1
  152. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +22 -0
  153. data/ext/ice/cpp/src/Slice/JavaUtil.h +9 -0
  154. data/ext/ice/mcpp/system.c +0 -4
  155. data/ice.gemspec +1 -1
  156. data/lib/Glacier2/Metrics.rb +1 -1
  157. data/lib/Glacier2/PermissionsVerifier.rb +1 -1
  158. data/lib/Glacier2/PermissionsVerifierF.rb +1 -1
  159. data/lib/Glacier2/Router.rb +1 -1
  160. data/lib/Glacier2/RouterF.rb +1 -1
  161. data/lib/Glacier2/SSLInfo.rb +1 -1
  162. data/lib/Glacier2/Session.rb +1 -1
  163. data/lib/Ice/BuiltinSequences.rb +1 -1
  164. data/lib/Ice/Communicator.rb +1 -1
  165. data/lib/Ice/CommunicatorF.rb +1 -1
  166. data/lib/Ice/Connection.rb +1 -1
  167. data/lib/Ice/ConnectionF.rb +1 -1
  168. data/lib/Ice/Current.rb +1 -1
  169. data/lib/Ice/Endpoint.rb +1 -1
  170. data/lib/Ice/EndpointF.rb +1 -1
  171. data/lib/Ice/EndpointTypes.rb +1 -1
  172. data/lib/Ice/FacetMap.rb +1 -1
  173. data/lib/Ice/Identity.rb +1 -1
  174. data/lib/Ice/ImplicitContext.rb +1 -1
  175. data/lib/Ice/ImplicitContextF.rb +1 -1
  176. data/lib/Ice/Instrumentation.rb +1 -1
  177. data/lib/Ice/InstrumentationF.rb +1 -1
  178. data/lib/Ice/LocalException.rb +1 -1
  179. data/lib/Ice/Locator.rb +1 -1
  180. data/lib/Ice/LocatorF.rb +1 -1
  181. data/lib/Ice/Logger.rb +1 -1
  182. data/lib/Ice/LoggerF.rb +1 -1
  183. data/lib/Ice/Metrics.rb +1 -1
  184. data/lib/Ice/ObjectAdapter.rb +1 -1
  185. data/lib/Ice/ObjectAdapterF.rb +1 -1
  186. data/lib/Ice/ObjectFactory.rb +1 -1
  187. data/lib/Ice/Plugin.rb +1 -1
  188. data/lib/Ice/PluginF.rb +1 -1
  189. data/lib/Ice/Process.rb +1 -1
  190. data/lib/Ice/ProcessF.rb +1 -1
  191. data/lib/Ice/Properties.rb +1 -1
  192. data/lib/Ice/PropertiesAdmin.rb +1 -1
  193. data/lib/Ice/PropertiesF.rb +1 -1
  194. data/lib/Ice/RemoteLogger.rb +1 -1
  195. data/lib/Ice/Router.rb +1 -1
  196. data/lib/Ice/RouterF.rb +1 -1
  197. data/lib/Ice/ServantLocator.rb +1 -1
  198. data/lib/Ice/ServantLocatorF.rb +1 -1
  199. data/lib/Ice/SliceChecksumDict.rb +1 -1
  200. data/lib/Ice/ValueFactory.rb +1 -1
  201. data/lib/Ice/Version.rb +1 -1
  202. data/lib/IceBox/IceBox.rb +1 -1
  203. data/lib/IceGrid/Admin.rb +1 -1
  204. data/lib/IceGrid/Descriptor.rb +1 -1
  205. data/lib/IceGrid/Exception.rb +1 -1
  206. data/lib/IceGrid/FileParser.rb +1 -1
  207. data/lib/IceGrid/PluginFacade.rb +1 -1
  208. data/lib/IceGrid/Registry.rb +1 -1
  209. data/lib/IceGrid/Session.rb +1 -1
  210. data/lib/IceGrid/UserAccountMapper.rb +1 -1
  211. data/lib/IcePatch2/FileInfo.rb +1 -1
  212. data/lib/IcePatch2/FileServer.rb +1 -1
  213. data/lib/IceStorm/IceStorm.rb +1 -1
  214. data/lib/IceStorm/Metrics.rb +1 -1
  215. data/slice/Ice/Current.ice +1 -1
  216. data/slice/Ice/Properties.ice +3 -3
  217. metadata +3 -3
@@ -19,9 +19,7 @@
19
19
  #include <Ice/ProtocolInstanceF.h>
20
20
  #include <Ice/EndpointTypes.h>
21
21
 
22
- #if defined(ICE_OS_UWP)
23
- # include <ppltasks.h>
24
- #elif defined(_WIN32)
22
+ #if defined(_WIN32)
25
23
  # include <winsock2.h>
26
24
  # include <ws2tcpip.h>
27
25
  # if !defined(__MINGW32__)
@@ -45,8 +43,7 @@ typedef int ssize_t;
45
43
  #elif defined(__APPLE__) && !defined(ICE_NO_CFSTREAM)
46
44
  # define ICE_USE_CFSTREAM 1
47
45
  #elif defined(_WIN32)
48
- # if defined(ICE_OS_UWP)
49
- # elif !defined(ICE_NO_IOCP)
46
+ # if !defined(ICE_NO_IOCP)
50
47
  # define ICE_USE_IOCP 1
51
48
  # else
52
49
  # define ICE_USE_SELECT 1
@@ -63,10 +60,6 @@ typedef int socklen_t;
63
60
  # define SOCKET int
64
61
  # define INVALID_SOCKET -1
65
62
  # define SOCKET_ERROR -1
66
- #elif defined(ICE_OS_UWP)
67
- typedef Platform::Object^ SOCKET;
68
- # define INVALID_SOCKET nullptr
69
- # define SOCKET_ERROR -1
70
63
  #endif
71
64
 
72
65
  #ifndef SHUT_RD
@@ -107,16 +100,6 @@ typedef int socklen_t;
107
100
  namespace IceInternal
108
101
  {
109
102
 
110
- //
111
- // Use Address struct or union depending on the platform
112
- //
113
- #ifdef ICE_OS_UWP
114
- struct ICE_API Address
115
- {
116
- Windows::Networking::HostName^ host;
117
- Platform::String^ port;
118
- };
119
- #else
120
103
  union Address
121
104
  {
122
105
  Address()
@@ -130,7 +113,6 @@ union Address
130
113
  sockaddr_in6 saIn6;
131
114
  sockaddr_storage saStorage;
132
115
  };
133
- #endif
134
116
 
135
117
  enum SocketOperation
136
118
  {
@@ -147,7 +129,7 @@ enum SocketOperation
147
129
  };
148
130
 
149
131
  //
150
- // AsyncInfo struct for Windows IOCP or UWP holds the result of
132
+ // AsyncInfo struct for Windows IOCP holds the result of
151
133
  // asynchronous operations after it completed.
152
134
  //
153
135
  #if defined(ICE_USE_IOCP)
@@ -161,16 +143,6 @@ struct ICE_API AsyncInfo : WSAOVERLAPPED
161
143
  DWORD count;
162
144
  DWORD error;
163
145
  };
164
- #elif defined(ICE_OS_UWP)
165
- struct ICE_API AsyncInfo
166
- {
167
- Windows::Foundation::AsyncOperationCompletedHandler<unsigned int>^ completedHandler;
168
- Windows::Foundation::IAsyncInfo^ operation;
169
- int count;
170
- int error;
171
- };
172
-
173
- delegate void SocketOperationCompletedHandler(int);
174
146
  #endif
175
147
 
176
148
  class ICE_API ReadyCallback : public virtual ::IceUtil::Shared
@@ -190,7 +162,7 @@ public:
190
162
  virtual ~NativeInfo();
191
163
 
192
164
  NativeInfo(SOCKET socketFd = INVALID_SOCKET) : _fd(socketFd)
193
- #if !defined(ICE_USE_IOCP) && !defined(ICE_OS_UWP)
165
+ #if !defined(ICE_USE_IOCP)
194
166
  , _newFd(INVALID_SOCKET)
195
167
  #endif
196
168
  {
@@ -216,12 +188,6 @@ public:
216
188
  virtual AsyncInfo* getAsyncInfo(SocketOperation) = 0;
217
189
  void initialize(HANDLE, ULONG_PTR);
218
190
  void completed(SocketOperation);
219
- #elif defined(ICE_OS_UWP)
220
- virtual AsyncInfo* getAsyncInfo(SocketOperation) = 0;
221
- void queueAction(SocketOperation, Windows::Foundation::IAsyncAction^, bool = false);
222
- void queueOperation(SocketOperation, Windows::Foundation::IAsyncOperation<unsigned int>^);
223
- void setCompletedHandler(SocketOperationCompletedHandler^);
224
- void completed(SocketOperation);
225
191
  #else
226
192
  bool newFd();
227
193
  void setNewFd(SOCKET);
@@ -235,22 +201,9 @@ protected:
235
201
  #if defined(ICE_USE_IOCP)
236
202
  HANDLE _handle;
237
203
  ULONG_PTR _key;
238
- #elif defined(ICE_OS_UWP)
239
- bool checkIfErrorOrCompleted(SocketOperation, Windows::Foundation::IAsyncInfo^, Windows::Foundation::AsyncStatus, bool = false);
240
- SocketOperationCompletedHandler^ _completedHandler;
241
204
  #else
242
205
  SOCKET _newFd;
243
206
  #endif
244
-
245
- private:
246
-
247
- #if defined(ICE_OS_UWP)
248
- void queueActionCompleted(SocketOperation, AsyncInfo* asyncInfo, Windows::Foundation::IAsyncAction^,
249
- Windows::Foundation::AsyncStatus);
250
- void queueOperationCompleted(SocketOperation, AsyncInfo* asyncInfo,
251
- Windows::Foundation::IAsyncOperation<unsigned int>^,
252
- Windows::Foundation::AsyncStatus);
253
- #endif
254
207
  };
255
208
  typedef IceUtil::Handle<NativeInfo> NativeInfoPtr;
256
209
 
@@ -302,7 +255,6 @@ ICE_API void setReuseAddress(SOCKET, bool);
302
255
  ICE_API Address doBind(SOCKET, const Address&, const std::string& intf = "");
303
256
  ICE_API void doListen(SOCKET, int);
304
257
 
305
- #ifndef ICE_OS_UWP
306
258
  ICE_API bool interrupted();
307
259
  ICE_API bool acceptInterrupted();
308
260
  ICE_API bool noBuffers();
@@ -324,40 +276,6 @@ ICE_API void createPipe(SOCKET fds[2]);
324
276
  ICE_API int getSocketErrno();
325
277
 
326
278
  ICE_API Address getNumericAddress(const std::string&);
327
- #else
328
- ICE_API void checkConnectErrorCode(const char*, int, HRESULT);
329
- ICE_API void checkErrorCode(const char*, int, HRESULT);
330
-
331
- //
332
- // UWP impose some restriction on operations that block when run from
333
- // STA thread and throws concurrency::invalid_operation. We cannot
334
- // directly call task::get or task::wait, this helper method is used to
335
- // workaround this limitation.
336
- //
337
- template<typename T>
338
- T runSync(Windows::Foundation::IAsyncOperation<T>^ operation)
339
- {
340
- std::promise<T> p;
341
- concurrency::create_task(operation).then(
342
- [&p](concurrency::task<T> t)
343
- {
344
- try
345
- {
346
- p.set_value(t.get());
347
- }
348
- catch(...)
349
- {
350
- p.set_exception(std::current_exception());
351
- }
352
- },
353
- concurrency::task_continuation_context::use_arbitrary());
354
-
355
- return p.get_future().get();
356
- }
357
-
358
- ICE_API void runSync(Windows::Foundation::IAsyncAction^ action);
359
-
360
- #endif
361
279
 
362
280
  #if defined(ICE_USE_IOCP)
363
281
  ICE_API void doConnectAsync(SOCKET, const Address&, const Address&, AsyncInfo&);
@@ -12,11 +12,7 @@
12
12
  namespace IceInternal
13
13
  {
14
14
 
15
- #ifdef ICE_OS_UWP
16
- struct ICE_API Address;
17
- #else
18
15
  union Address;
19
- #endif
20
16
 
21
17
  }
22
18
 
@@ -17,8 +17,6 @@ NetworkProxy::~NetworkProxy()
17
17
  // Out of line to avoid weak vtable
18
18
  }
19
19
 
20
- #ifndef ICE_OS_UWP
21
-
22
20
  namespace
23
21
  {
24
22
 
@@ -287,8 +285,6 @@ HTTPNetworkProxy::getProtocolSupport() const
287
285
  return _protocol;
288
286
  }
289
287
 
290
- #endif
291
-
292
288
  NetworkProxyPtr
293
289
  IceInternal::createNetworkProxy(const Ice::PropertiesPtr& properties, ProtocolSupport protocolSupport)
294
290
  {
@@ -297,27 +293,18 @@ IceInternal::createNetworkProxy(const Ice::PropertiesPtr& properties, ProtocolSu
297
293
  proxyHost = properties->getProperty("Ice.SOCKSProxyHost");
298
294
  if(!proxyHost.empty())
299
295
  {
300
- #ifdef ICE_OS_UWP
301
- UNREFERENCED_PARAMETER(protocolSupport);
302
- throw Ice::InitializationException(__FILE__, __LINE__, "SOCKS proxy not supported with UWP");
303
- #else
304
296
  if(protocolSupport == EnableIPv6)
305
297
  {
306
298
  throw Ice::InitializationException(__FILE__, __LINE__, "IPv6 only is not supported with SOCKS4 proxies");
307
299
  }
308
300
  int proxyPort = properties->getPropertyAsIntWithDefault("Ice.SOCKSProxyPort", 1080);
309
301
  return new SOCKSNetworkProxy(proxyHost, proxyPort);
310
- #endif
311
302
  }
312
303
 
313
304
  proxyHost = properties->getProperty("Ice.HTTPProxyHost");
314
305
  if(!proxyHost.empty())
315
306
  {
316
- #ifdef ICE_OS_UWP
317
- throw Ice::InitializationException(__FILE__, __LINE__, "HTTP proxy not supported with UWP");
318
- #else
319
307
  return new HTTPNetworkProxy(proxyHost, properties->getPropertyAsIntWithDefault("Ice.HTTPProxyPort", 1080));
320
- #endif
321
308
  }
322
309
 
323
310
  return 0;
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -41,7 +41,7 @@
41
41
  # if ICE_INT_VERSION % 100 >= 50
42
42
  # error Beta header file detected
43
43
  # endif
44
- # if ICE_INT_VERSION % 100 < 9
44
+ # if ICE_INT_VERSION % 100 < 10
45
45
  # error Ice patch level mismatch!
46
46
  # endif
47
47
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 9
38
+ # if ICE_INT_VERSION % 100 < 10
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 9
40
+ # if ICE_INT_VERSION % 100 < 10
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 9
40
+ # if ICE_INT_VERSION % 100 < 10
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -35,7 +35,7 @@
35
35
  # if ICE_INT_VERSION % 100 >= 50
36
36
  # error Beta header file detected
37
37
  # endif
38
- # if ICE_INT_VERSION % 100 < 9
38
+ # if ICE_INT_VERSION % 100 < 10
39
39
  # error Ice patch level mismatch!
40
40
  # endif
41
41
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -40,7 +40,7 @@
40
40
  # if ICE_INT_VERSION % 100 >= 50
41
41
  # error Beta header file detected
42
42
  # endif
43
- # if ICE_INT_VERSION % 100 < 9
43
+ # if ICE_INT_VERSION % 100 < 10
44
44
  # error Ice patch level mismatch!
45
45
  # endif
46
46
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 9
40
+ # if ICE_INT_VERSION % 100 < 10
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -40,7 +40,7 @@
40
40
  # if ICE_INT_VERSION % 100 >= 50
41
41
  # error Beta header file detected
42
42
  # endif
43
- # if ICE_INT_VERSION % 100 < 9
43
+ # if ICE_INT_VERSION % 100 < 10
44
44
  # error Ice patch level mismatch!
45
45
  # endif
46
46
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -40,7 +40,7 @@
40
40
  # if ICE_INT_VERSION % 100 >= 50
41
41
  # error Beta header file detected
42
42
  # endif
43
- # if ICE_INT_VERSION % 100 < 9
43
+ # if ICE_INT_VERSION % 100 < 10
44
44
  # error Ice patch level mismatch!
45
45
  # endif
46
46
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 9
40
+ # if ICE_INT_VERSION % 100 < 10
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -292,10 +292,7 @@ Ice::PropertiesI::load(const std::string& file)
292
292
  {
293
293
  StringConverterPtr stringConverter = getProcessStringConverter();
294
294
 
295
- //
296
- // UWP applications cannot access Windows registry.
297
- //
298
- #if defined (_WIN32) && !defined(ICE_OS_UWP)
295
+ #if defined (_WIN32)
299
296
  if(file.find("HKCU\\") == 0 || file.find("HKLM\\") == 0)
300
297
  {
301
298
  HKEY key = file.find("HKCU\\") == 0 ? HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE;
@@ -700,13 +697,9 @@ void
700
697
  Ice::PropertiesI::loadConfig()
701
698
  {
702
699
  string value = getProperty("Ice.Config");
703
- #ifndef ICE_OS_UWP
704
- //
705
- // UWP cannot access environment variables
706
- //
707
700
  if(value.empty() || value == "1")
708
701
  {
709
- # ifdef _WIN32
702
+ #ifdef _WIN32
710
703
  vector<wchar_t> v(256);
711
704
  DWORD ret = GetEnvironmentVariableW(L"ICE_CONFIG", &v[0], static_cast<DWORD>(v.size()));
712
705
  if(ret >= v.size())
@@ -722,15 +715,14 @@ Ice::PropertiesI::loadConfig()
722
715
  {
723
716
  value = "";
724
717
  }
725
- # else
718
+ #else
726
719
  const char* s = getenv("ICE_CONFIG");
727
720
  if(s && *s != '\0')
728
721
  {
729
722
  value = s;
730
723
  }
731
- # endif
732
- }
733
724
  #endif
725
+ }
734
726
 
735
727
  if(!value.empty())
736
728
  {
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -41,7 +41,7 @@
41
41
  # if ICE_INT_VERSION % 100 >= 50
42
42
  # error Beta header file detected
43
43
  # endif
44
- # if ICE_INT_VERSION % 100 < 9
44
+ # if ICE_INT_VERSION % 100 < 10
45
45
  # error Ice patch level mismatch!
46
46
  # endif
47
47
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -40,7 +40,7 @@
40
40
  # if ICE_INT_VERSION % 100 >= 50
41
41
  # error Beta header file detected
42
42
  # endif
43
- # if ICE_INT_VERSION % 100 < 9
43
+ # if ICE_INT_VERSION % 100 < 10
44
44
  # error Ice patch level mismatch!
45
45
  # endif
46
46
  #endif
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) ZeroC, Inc. All rights reserved.
3
3
  //
4
4
  //
5
- // Ice version 3.7.9
5
+ // Ice version 3.7.10
6
6
  //
7
7
  // <auto-generated>
8
8
  //
@@ -37,7 +37,7 @@
37
37
  # if ICE_INT_VERSION % 100 >= 50
38
38
  # error Beta header file detected
39
39
  # endif
40
- # if ICE_INT_VERSION % 100 < 9
40
+ # if ICE_INT_VERSION % 100 < 10
41
41
  # error Ice patch level mismatch!
42
42
  # endif
43
43
  #endif
@@ -4,24 +4,20 @@
4
4
 
5
5
  #include <Ice/SHA1.h>
6
6
 
7
- #ifndef ICE_OS_UWP
8
- # if defined(_WIN32)
9
- # include <Wincrypt.h>
10
- # include <IceUtil/Exception.h>
11
- # elif defined(__APPLE__)
12
- # include <CommonCrypto/CommonDigest.h>
13
- # else
14
- # include <openssl/sha.h>
15
- # // Ignore OpenSSL 3.0 deprecation warning
16
- # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
17
- # endif
7
+ #if defined(_WIN32)
8
+ # include <Wincrypt.h>
9
+ # include <IceUtil/Exception.h>
10
+ #elif defined(__APPLE__)
11
+ # include <CommonCrypto/CommonDigest.h>
12
+ #else
13
+ # include <openssl/sha.h>
14
+ # // Ignore OpenSSL 3.0 deprecation warning
15
+ # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
18
16
  #endif
19
17
 
20
18
  using namespace std;
21
19
  using namespace IceUtil;
22
20
 
23
- #ifndef ICE_OS_UWP
24
-
25
21
  namespace IceInternal
26
22
  {
27
23
 
@@ -30,7 +26,7 @@ class SHA1::Hasher
30
26
  public:
31
27
 
32
28
  Hasher();
33
- # ifdef _WIN32
29
+ #ifdef _WIN32
34
30
  ~Hasher();
35
31
  #endif
36
32
 
@@ -43,19 +39,19 @@ private:
43
39
  Hasher(const Hasher&);
44
40
  Hasher operator=(const Hasher&);
45
41
 
46
- # if defined (_WIN32)
42
+ #if defined (_WIN32)
47
43
  HCRYPTPROV _ctx;
48
44
  HCRYPTHASH _hash;
49
- # elif defined(__APPLE__)
45
+ #elif defined(__APPLE__)
50
46
  CC_SHA1_CTX _ctx;
51
- # else
47
+ #else
52
48
  SHA_CTX _ctx;
53
- # endif
49
+ #endif
54
50
  };
55
51
 
56
52
  }
57
53
 
58
- # if defined(_WIN32)
54
+ #if defined(_WIN32)
59
55
 
60
56
  namespace
61
57
  {
@@ -89,50 +85,50 @@ IceInternal::SHA1::Hasher::~Hasher()
89
85
  CryptReleaseContext(_ctx, 0);
90
86
  }
91
87
  }
92
- # elif defined(__APPLE__)
88
+ #elif defined(__APPLE__)
93
89
  IceInternal::SHA1::Hasher::Hasher()
94
90
  {
95
91
  CC_SHA1_Init(&_ctx);
96
92
  }
97
- # else
93
+ #else
98
94
  IceInternal::SHA1::Hasher::Hasher()
99
95
  {
100
96
  SHA1_Init(&_ctx);
101
97
  }
102
- # endif
98
+ #endif
103
99
 
104
100
  void
105
101
  IceInternal::SHA1::Hasher::update(const unsigned char* data, size_t length)
106
102
  {
107
- # if defined(_WIN32)
103
+ #if defined(_WIN32)
108
104
  if(!CryptHashData(_hash, data, static_cast<DWORD>(length), 0))
109
105
  {
110
106
  throw IceUtil::SyscallException(__FILE__, __LINE__, GetLastError());
111
107
  }
112
- # elif defined(__APPLE__)
108
+ #elif defined(__APPLE__)
113
109
  CC_SHA1_Update(&_ctx, reinterpret_cast<const void*>(data), static_cast<CC_LONG>(length));
114
- # else
110
+ #else
115
111
  SHA1_Update(&_ctx, reinterpret_cast<const void*>(data), length);
116
- # endif
112
+ #endif
117
113
  }
118
114
 
119
115
  void
120
116
  IceInternal::SHA1::Hasher::finalize(vector<unsigned char>& md)
121
117
  {
122
- # if defined(_WIN32)
118
+ #if defined(_WIN32)
123
119
  md.resize(SHA_DIGEST_LENGTH);
124
120
  DWORD length = SHA_DIGEST_LENGTH;
125
121
  if(!CryptGetHashParam(_hash, HP_HASHVAL, &md[0], &length, 0))
126
122
  {
127
123
  throw IceUtil::SyscallException(__FILE__, __LINE__, GetLastError());
128
124
  }
129
- # elif defined(__APPLE__)
125
+ #elif defined(__APPLE__)
130
126
  md.resize(CC_SHA1_DIGEST_LENGTH);
131
127
  CC_SHA1_Final(&md[0], &_ctx);
132
- # else
128
+ #else
133
129
  md.resize(SHA_DIGEST_LENGTH);
134
130
  SHA1_Final(&md[0], &_ctx);
135
- # endif
131
+ #endif
136
132
  }
137
133
 
138
134
  IceInternal::SHA1::SHA1() :
@@ -155,23 +151,11 @@ IceInternal::SHA1::finalize(std::vector<unsigned char>& md)
155
151
  {
156
152
  _hasher->finalize(md);
157
153
  }
158
- #endif
159
154
 
160
155
  void
161
156
  IceInternal::sha1(const unsigned char* data, size_t length, vector<unsigned char>& md)
162
157
  {
163
- #if defined(ICE_OS_UWP)
164
- auto dataA =
165
- ref new Platform::Array<unsigned char>(const_cast<unsigned char*>(data), static_cast<unsigned int>(length));
166
- auto hasher = Windows::Security::Cryptography::Core::HashAlgorithmProvider::OpenAlgorithm("SHA1");
167
- auto hashed = hasher->HashData(Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray(dataA));
168
- auto reader = ::Windows::Storage::Streams::DataReader::FromBuffer(hashed);
169
- md.resize(reader->UnconsumedBufferLength);
170
- if(!md.empty())
171
- {
172
- reader->ReadBytes(::Platform::ArrayReference<unsigned char>(&md[0], static_cast<unsigned int>(md.size())));
173
- }
174
- #elif defined(_WIN32)
158
+ #if defined(_WIN32)
175
159
  SHA1 hasher;
176
160
  hasher.update(data, length);
177
161
  hasher.finalize(md);