zeroc-ice 3.7.10 → 3.7.12

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 (961) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +801 -0
  3. data/dist/IceRuby/Connection.cpp +536 -0
  4. data/dist/IceRuby/Endpoint.cpp +344 -0
  5. data/dist/IceRuby/ImplicitContext.cpp +148 -0
  6. data/dist/IceRuby/Logger.cpp +151 -0
  7. data/dist/IceRuby/Operation.cpp +665 -0
  8. data/dist/IceRuby/Properties.cpp +369 -0
  9. data/dist/IceRuby/Types.cpp +3336 -0
  10. data/dist/IceRuby/Types.h +604 -0
  11. data/dist/IceRuby/ValueFactoryManager.cpp +445 -0
  12. data/dist/ice/cpp/include/Ice/ExceptionHelpers.h +74 -0
  13. data/dist/ice/cpp/include/Ice/Initialize.h +957 -0
  14. data/dist/ice/cpp/include/Ice/InputStream.h +1517 -0
  15. data/dist/ice/cpp/include/Ice/MetricsObserverI.h +669 -0
  16. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +868 -0
  17. data/dist/ice/cpp/include/Ice/Proxy.h +5171 -0
  18. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +90 -0
  19. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +1889 -0
  20. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +1197 -0
  21. data/dist/ice/cpp/include/IceUtil/Cond.h +317 -0
  22. data/dist/ice/cpp/include/IceUtil/Config.h +392 -0
  23. data/dist/ice/cpp/include/IceUtil/CtrlCHandler.h +96 -0
  24. data/dist/ice/cpp/include/IceUtil/InputUtil.h +42 -0
  25. data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +37 -0
  26. data/dist/ice/cpp/include/IceUtil/Timer.h +153 -0
  27. data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +475 -0
  28. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +1430 -0
  29. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +147 -0
  30. data/dist/ice/cpp/include/generated/Glacier2/Router.h +3260 -0
  31. data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +125 -0
  32. data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +223 -0
  33. data/dist/ice/cpp/include/generated/Glacier2/Session.h +5894 -0
  34. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +170 -0
  35. data/dist/ice/cpp/include/generated/Ice/Communicator.h +1162 -0
  36. data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +101 -0
  37. data/dist/ice/cpp/include/generated/Ice/Connection.h +1703 -0
  38. data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +119 -0
  39. data/dist/ice/cpp/include/generated/Ice/Current.h +322 -0
  40. data/dist/ice/cpp/include/generated/Ice/Endpoint.h +979 -0
  41. data/dist/ice/cpp/include/generated/Ice/EndpointF.h +166 -0
  42. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +118 -0
  43. data/dist/ice/cpp/include/generated/Ice/FacetMap.h +80 -0
  44. data/dist/ice/cpp/include/generated/Ice/Identity.h +264 -0
  45. data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +284 -0
  46. data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +101 -0
  47. data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +1203 -0
  48. data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +128 -0
  49. data/dist/ice/cpp/include/generated/Ice/LocalException.h +7437 -0
  50. data/dist/ice/cpp/include/generated/Ice/Locator.h +3898 -0
  51. data/dist/ice/cpp/include/generated/Ice/LocatorF.h +147 -0
  52. data/dist/ice/cpp/include/generated/Ice/Logger.h +237 -0
  53. data/dist/ice/cpp/include/generated/Ice/LoggerF.h +101 -0
  54. data/dist/ice/cpp/include/generated/Ice/Metrics.h +4769 -0
  55. data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +1181 -0
  56. data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +101 -0
  57. data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +203 -0
  58. data/dist/ice/cpp/include/generated/Ice/Plugin.h +318 -0
  59. data/dist/ice/cpp/include/generated/Ice/PluginF.h +110 -0
  60. data/dist/ice/cpp/include/generated/Ice/Process.h +977 -0
  61. data/dist/ice/cpp/include/generated/Ice/ProcessF.h +125 -0
  62. data/dist/ice/cpp/include/generated/Ice/Properties.h +452 -0
  63. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +1366 -0
  64. data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +134 -0
  65. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +2707 -0
  66. data/dist/ice/cpp/include/generated/Ice/Router.h +1850 -0
  67. data/dist/ice/cpp/include/generated/Ice/RouterF.h +125 -0
  68. data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +305 -0
  69. data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +101 -0
  70. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +84 -0
  71. data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +330 -0
  72. data/dist/ice/cpp/include/generated/Ice/Version.h +357 -0
  73. data/dist/ice/cpp/include/generated/IceBox/IceBox.h +3269 -0
  74. data/dist/ice/cpp/include/generated/IceGrid/Admin.h +33773 -0
  75. data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +5254 -0
  76. data/dist/ice/cpp/include/generated/IceGrid/Exception.h +2834 -0
  77. data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +824 -0
  78. data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +635 -0
  79. data/dist/ice/cpp/include/generated/IceGrid/Registry.h +5089 -0
  80. data/dist/ice/cpp/include/generated/IceGrid/Session.h +2240 -0
  81. data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +800 -0
  82. data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +325 -0
  83. data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +2891 -0
  84. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +228 -0
  85. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +101 -0
  86. data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +186 -0
  87. data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +6627 -0
  88. data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +665 -0
  89. data/dist/ice/cpp/src/Ice/Application.cpp +661 -0
  90. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +269 -0
  91. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +66 -0
  92. data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +596 -0
  93. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +3715 -0
  94. data/dist/ice/cpp/src/Ice/CountDownLatch.cpp +171 -0
  95. data/dist/ice/cpp/src/Ice/DLLMain.cpp +50 -0
  96. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +189 -0
  97. data/dist/ice/cpp/src/Ice/EndpointI.cpp +98 -0
  98. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +716 -0
  99. data/dist/ice/cpp/src/Ice/InputStream.cpp +2758 -0
  100. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +694 -0
  101. data/dist/ice/cpp/src/Ice/Network.cpp +2262 -0
  102. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +322 -0
  103. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +1531 -0
  104. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +1322 -0
  105. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +503 -0
  106. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +1428 -0
  107. data/dist/ice/cpp/src/Ice/PropertyNames.h +78 -0
  108. data/dist/ice/cpp/src/Ice/Proxy.cpp +1604 -0
  109. data/dist/ice/cpp/src/Ice/Reference.cpp +2052 -0
  110. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +890 -0
  111. data/dist/ice/cpp/src/Ice/Selector.cpp +1543 -0
  112. data/dist/ice/cpp/src/Ice/Service.cpp +1883 -0
  113. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +1292 -0
  114. data/dist/ice/cpp/src/Ice/Timer.cpp +269 -0
  115. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +824 -0
  116. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +1770 -0
  117. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +49 -0
  118. data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +79 -0
  119. data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +61 -0
  120. data/dist/ice/cpp/src/Ice/generated/Connection.cpp +155 -0
  121. data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +61 -0
  122. data/dist/ice/cpp/src/Ice/generated/Current.cpp +62 -0
  123. data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +147 -0
  124. data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +61 -0
  125. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +51 -0
  126. data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +49 -0
  127. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +57 -0
  128. data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +75 -0
  129. data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +61 -0
  130. data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +188 -0
  131. data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +66 -0
  132. data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +3262 -0
  133. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +2042 -0
  134. data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +63 -0
  135. data/dist/ice/cpp/src/Ice/generated/Logger.cpp +73 -0
  136. data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +61 -0
  137. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +2352 -0
  138. data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +79 -0
  139. data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +61 -0
  140. data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +75 -0
  141. data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +87 -0
  142. data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +61 -0
  143. data/dist/ice/cpp/src/Ice/generated/Process.cpp +471 -0
  144. data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +63 -0
  145. data/dist/ice/cpp/src/Ice/generated/Properties.cpp +78 -0
  146. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +603 -0
  147. data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +63 -0
  148. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +1171 -0
  149. data/dist/ice/cpp/src/Ice/generated/Router.cpp +977 -0
  150. data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +63 -0
  151. data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +75 -0
  152. data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +61 -0
  153. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +49 -0
  154. data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +83 -0
  155. data/dist/ice/cpp/src/Ice/generated/Version.cpp +57 -0
  156. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.cpp +154 -0
  157. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.h +49 -0
  158. data/dist/ice/cpp/src/Ice/ios/StreamConnector.cpp +146 -0
  159. data/dist/ice/cpp/src/Ice/ios/StreamConnector.h +52 -0
  160. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.cpp +477 -0
  161. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.h +156 -0
  162. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.cpp +570 -0
  163. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.h +93 -0
  164. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +1889 -0
  165. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +915 -0
  166. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +1197 -0
  167. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +730 -0
  168. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +1155 -0
  169. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +1093 -0
  170. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +290 -0
  171. data/dist/ice/cpp/src/IceSSL/PluginI.cpp +246 -0
  172. data/dist/ice/cpp/src/IceSSL/RFC2253.cpp +490 -0
  173. data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +1293 -0
  174. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +1175 -0
  175. data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +328 -0
  176. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +1413 -0
  177. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +66 -0
  178. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +721 -0
  179. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +868 -0
  180. data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +247 -0
  181. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +75 -0
  182. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +61 -0
  183. data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +75 -0
  184. data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +476 -0
  185. data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +471 -0
  186. data/dist/ice/cpp/src/IceUtil/StringConverter.cpp +690 -0
  187. data/dist/ice/cpp/src/IceUtil/Time.cpp +307 -0
  188. data/dist/ice/cpp/src/Slice/JavaUtil.cpp +5183 -0
  189. data/dist/ice/cpp/src/slice2rb/Main.cpp +35 -0
  190. data/dist/ice/mcpp/directive.c +1407 -0
  191. data/dist/ice/mcpp/internal.H +530 -0
  192. data/dist/ice/mcpp/mcpp_main.c +792 -0
  193. data/dist/ice/mcpp/support.c +1985 -0
  194. data/dist/ice/mcpp/system.c +2741 -0
  195. data/dist/ice/slice/Ice/Connection.ice +516 -0
  196. data/dist/ice/slice/Ice/Locator.ice +239 -0
  197. data/dist/ice/slice/Ice/Metrics.ice +436 -0
  198. data/dist/ice/slice/Ice/ObjectAdapter.ice +710 -0
  199. data/dist/ice/slice/Ice/Router.ice +103 -0
  200. data/dist/ice/slice/IceGrid/PluginFacade.ice +329 -0
  201. data/dist/ice/slice/IceStorm/IceStorm.ice +414 -0
  202. data/dist/lib/Glacier2/Metrics.rb +56 -0
  203. data/dist/lib/Glacier2/PermissionsVerifier.rb +93 -0
  204. data/dist/lib/Glacier2/PermissionsVerifierF.rb +30 -0
  205. data/dist/lib/Glacier2/Router.rb +95 -0
  206. data/dist/lib/Glacier2/RouterF.rb +25 -0
  207. data/dist/lib/Glacier2/SSLInfo.rb +72 -0
  208. data/dist/lib/Glacier2/Session.rb +247 -0
  209. data/dist/lib/Ice/BuiltinSequences.rb +60 -0
  210. data/dist/lib/Ice/Communicator.rb +87 -0
  211. data/dist/lib/Ice/CommunicatorF.rb +24 -0
  212. data/dist/lib/Ice/Connection.rb +413 -0
  213. data/dist/lib/Ice/ConnectionF.rb +32 -0
  214. data/dist/lib/Ice/Current.rb +141 -0
  215. data/dist/lib/Ice/Endpoint.rb +187 -0
  216. data/dist/lib/Ice/EndpointF.rb +48 -0
  217. data/dist/lib/Ice/EndpointTypes.rb +69 -0
  218. data/dist/lib/Ice/FacetMap.rb +24 -0
  219. data/dist/lib/Ice/Identity.rb +63 -0
  220. data/dist/lib/Ice/ImplicitContext.rb +26 -0
  221. data/dist/lib/Ice/ImplicitContextF.rb +24 -0
  222. data/dist/lib/Ice/Instrumentation.rb +169 -0
  223. data/dist/lib/Ice/InstrumentationF.rb +31 -0
  224. data/dist/lib/Ice/LocalException.rb +1031 -0
  225. data/dist/lib/Ice/Locator.rb +196 -0
  226. data/dist/lib/Ice/LocatorF.rb +30 -0
  227. data/dist/lib/Ice/Logger.rb +24 -0
  228. data/dist/lib/Ice/LoggerF.rb +24 -0
  229. data/dist/lib/Ice/Metrics.rb +337 -0
  230. data/dist/lib/Ice/ObjectAdapter.rb +29 -0
  231. data/dist/lib/Ice/ObjectAdapterF.rb +24 -0
  232. data/dist/lib/Ice/ObjectFactory.rb +24 -0
  233. data/dist/lib/Ice/Plugin.rb +30 -0
  234. data/dist/lib/Ice/PluginF.rb +28 -0
  235. data/dist/lib/Ice/Process.rb +53 -0
  236. data/dist/lib/Ice/ProcessF.rb +25 -0
  237. data/dist/lib/Ice/Properties.rb +25 -0
  238. data/dist/lib/Ice/PropertiesAdmin.rb +63 -0
  239. data/dist/lib/Ice/PropertiesF.rb +29 -0
  240. data/dist/lib/Ice/RemoteLogger.rb +207 -0
  241. data/dist/lib/Ice/Router.rb +87 -0
  242. data/dist/lib/Ice/RouterF.rb +25 -0
  243. data/dist/lib/Ice/ServantLocator.rb +26 -0
  244. data/dist/lib/Ice/ServantLocatorF.rb +24 -0
  245. data/dist/lib/Ice/SliceChecksumDict.rb +24 -0
  246. data/dist/lib/Ice/ValueFactory.rb +28 -0
  247. data/dist/lib/Ice/Version.rb +90 -0
  248. data/dist/lib/IceBox/IceBox.rb +164 -0
  249. data/dist/lib/IceGrid/Admin.rb +1196 -0
  250. data/dist/lib/IceGrid/Descriptor.rb +1034 -0
  251. data/dist/lib/IceGrid/Exception.rb +376 -0
  252. data/dist/lib/IceGrid/FileParser.rb +65 -0
  253. data/dist/lib/IceGrid/PluginFacade.rb +35 -0
  254. data/dist/lib/IceGrid/Registry.rb +209 -0
  255. data/dist/lib/IceGrid/Session.rb +71 -0
  256. data/dist/lib/IceGrid/UserAccountMapper.rb +61 -0
  257. data/dist/lib/IcePatch2/FileInfo.rb +115 -0
  258. data/dist/lib/IcePatch2/FileServer.rb +123 -0
  259. data/dist/lib/IceStorm/IceStorm.rb +332 -0
  260. data/dist/lib/IceStorm/Metrics.rb +73 -0
  261. data/extconf.rb +91 -0
  262. data/ice.gemspec +21 -16
  263. metadata +715 -711
  264. data/ICE_LICENSE +0 -48
  265. data/LICENSE +0 -340
  266. data/MCPP_LICENSE +0 -29
  267. data/ext/Communicator.cpp +0 -792
  268. data/ext/Connection.cpp +0 -532
  269. data/ext/Endpoint.cpp +0 -340
  270. data/ext/ImplicitContext.cpp +0 -144
  271. data/ext/Logger.cpp +0 -147
  272. data/ext/Operation.cpp +0 -661
  273. data/ext/Properties.cpp +0 -365
  274. data/ext/Types.cpp +0 -3325
  275. data/ext/Types.h +0 -595
  276. data/ext/ValueFactoryManager.cpp +0 -441
  277. data/ext/extconf.rb +0 -97
  278. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  279. data/ext/ice/cpp/include/Ice/Initialize.h +0 -957
  280. data/ext/ice/cpp/include/Ice/InputStream.h +0 -1514
  281. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  282. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +0 -856
  283. data/ext/ice/cpp/include/Ice/Proxy.h +0 -5154
  284. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +0 -88
  285. data/ext/ice/cpp/include/IceSSL/UWP.h +0 -62
  286. data/ext/ice/cpp/include/IceUtil/Cond.h +0 -317
  287. data/ext/ice/cpp/include/IceUtil/Config.h +0 -392
  288. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -92
  289. data/ext/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  290. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
  291. data/ext/ice/cpp/include/IceUtil/Timer.h +0 -144
  292. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +0 -170
  293. data/ext/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  294. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  295. data/ext/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  296. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  297. data/ext/ice/cpp/include/generated/Ice/Current.h +0 -322
  298. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  299. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  300. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +0 -118
  301. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  302. data/ext/ice/cpp/include/generated/Ice/Identity.h +0 -264
  303. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  304. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  305. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  306. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  307. data/ext/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  308. data/ext/ice/cpp/include/generated/Ice/Locator.h +0 -3898
  309. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  310. data/ext/ice/cpp/include/generated/Ice/Logger.h +0 -237
  311. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  312. data/ext/ice/cpp/include/generated/Ice/Metrics.h +0 -4769
  313. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  314. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  315. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  316. data/ext/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  317. data/ext/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  318. data/ext/ice/cpp/include/generated/Ice/Process.h +0 -977
  319. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  320. data/ext/ice/cpp/include/generated/Ice/Properties.h +0 -452
  321. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +0 -1366
  322. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  323. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +0 -2707
  324. data/ext/ice/cpp/include/generated/Ice/Router.h +0 -1850
  325. data/ext/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  326. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  327. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  328. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +0 -84
  329. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  330. data/ext/ice/cpp/include/generated/Ice/Version.h +0 -357
  331. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  332. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  333. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  334. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +0 -250
  335. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +0 -59
  336. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +0 -49
  337. data/ext/ice/cpp/src/Ice/Communicator.cpp +0 -79
  338. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +0 -61
  339. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  340. data/ext/ice/cpp/src/Ice/Connection.cpp +0 -155
  341. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +0 -61
  342. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +0 -3670
  343. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
  344. data/ext/ice/cpp/src/Ice/Current.cpp +0 -62
  345. data/ext/ice/cpp/src/Ice/Endpoint.cpp +0 -147
  346. data/ext/ice/cpp/src/Ice/EndpointF.cpp +0 -61
  347. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +0 -189
  348. data/ext/ice/cpp/src/Ice/EndpointI.cpp +0 -98
  349. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +0 -51
  350. data/ext/ice/cpp/src/Ice/FacetMap.cpp +0 -49
  351. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -710
  352. data/ext/ice/cpp/src/Ice/Identity.cpp +0 -57
  353. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +0 -75
  354. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +0 -61
  355. data/ext/ice/cpp/src/Ice/InputStream.cpp +0 -2741
  356. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +0 -188
  357. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +0 -66
  358. data/ext/ice/cpp/src/Ice/LocalException.cpp +0 -3262
  359. data/ext/ice/cpp/src/Ice/Locator.cpp +0 -2042
  360. data/ext/ice/cpp/src/Ice/LocatorF.cpp +0 -63
  361. data/ext/ice/cpp/src/Ice/Logger.cpp +0 -73
  362. data/ext/ice/cpp/src/Ice/LoggerF.cpp +0 -61
  363. data/ext/ice/cpp/src/Ice/Metrics.cpp +0 -2352
  364. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +0 -694
  365. data/ext/ice/cpp/src/Ice/Network.cpp +0 -2249
  366. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -311
  367. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +0 -79
  368. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +0 -61
  369. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +0 -1530
  370. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +0 -75
  371. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +0 -1322
  372. data/ext/ice/cpp/src/Ice/Plugin.cpp +0 -87
  373. data/ext/ice/cpp/src/Ice/PluginF.cpp +0 -61
  374. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +0 -503
  375. data/ext/ice/cpp/src/Ice/Process.cpp +0 -471
  376. data/ext/ice/cpp/src/Ice/ProcessF.cpp +0 -63
  377. data/ext/ice/cpp/src/Ice/Properties.cpp +0 -78
  378. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +0 -603
  379. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +0 -63
  380. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +0 -1429
  381. data/ext/ice/cpp/src/Ice/PropertyNames.h +0 -78
  382. data/ext/ice/cpp/src/Ice/Proxy.cpp +0 -1601
  383. data/ext/ice/cpp/src/Ice/Reference.cpp +0 -2046
  384. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +0 -888
  385. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +0 -1171
  386. data/ext/ice/cpp/src/Ice/Router.cpp +0 -977
  387. data/ext/ice/cpp/src/Ice/RouterF.cpp +0 -63
  388. data/ext/ice/cpp/src/Ice/Selector.cpp +0 -1525
  389. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +0 -75
  390. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +0 -61
  391. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +0 -49
  392. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +0 -1292
  393. data/ext/ice/cpp/src/Ice/Timer.cpp +0 -263
  394. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +0 -806
  395. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +0 -83
  396. data/ext/ice/cpp/src/Ice/Version.cpp +0 -57
  397. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +0 -1704
  398. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +0 -915
  399. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +0 -1889
  400. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +0 -730
  401. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  402. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +0 -75
  403. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +0 -61
  404. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +0 -75
  405. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  406. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  407. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  408. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  409. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +0 -490
  410. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  411. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  412. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  413. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  414. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  415. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  416. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  417. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  418. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +0 -266
  419. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +0 -338
  420. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +0 -41
  421. data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +0 -26
  422. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +0 -89
  423. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +0 -383
  424. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +0 -71
  425. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  426. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
  427. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  428. data/ext/ice/cpp/src/IceUtil/Time.cpp +0 -307
  429. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +0 -5176
  430. data/ext/ice/mcpp/CMakeLists.txt +0 -80
  431. data/ext/ice/mcpp/LICENSE +0 -29
  432. data/ext/ice/mcpp/Makefile +0 -63
  433. data/ext/ice/mcpp/README.md +0 -32
  434. data/ext/ice/mcpp/directive.c +0 -1404
  435. data/ext/ice/mcpp/internal.H +0 -530
  436. data/ext/ice/mcpp/main.c +0 -792
  437. data/ext/ice/mcpp/mcpp.gyp +0 -88
  438. data/ext/ice/mcpp/support.c +0 -1985
  439. data/ext/ice/mcpp/system.c +0 -2737
  440. data/lib/Glacier2/Metrics.rb +0 -56
  441. data/lib/Glacier2/PermissionsVerifier.rb +0 -93
  442. data/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  443. data/lib/Glacier2/Router.rb +0 -95
  444. data/lib/Glacier2/RouterF.rb +0 -25
  445. data/lib/Glacier2/SSLInfo.rb +0 -72
  446. data/lib/Glacier2/Session.rb +0 -247
  447. data/lib/Ice/BuiltinSequences.rb +0 -60
  448. data/lib/Ice/Communicator.rb +0 -87
  449. data/lib/Ice/CommunicatorF.rb +0 -24
  450. data/lib/Ice/Connection.rb +0 -413
  451. data/lib/Ice/ConnectionF.rb +0 -32
  452. data/lib/Ice/Current.rb +0 -141
  453. data/lib/Ice/Endpoint.rb +0 -187
  454. data/lib/Ice/EndpointF.rb +0 -48
  455. data/lib/Ice/EndpointTypes.rb +0 -69
  456. data/lib/Ice/FacetMap.rb +0 -24
  457. data/lib/Ice/Identity.rb +0 -63
  458. data/lib/Ice/ImplicitContext.rb +0 -26
  459. data/lib/Ice/ImplicitContextF.rb +0 -24
  460. data/lib/Ice/Instrumentation.rb +0 -169
  461. data/lib/Ice/InstrumentationF.rb +0 -31
  462. data/lib/Ice/LocalException.rb +0 -1031
  463. data/lib/Ice/Locator.rb +0 -196
  464. data/lib/Ice/LocatorF.rb +0 -30
  465. data/lib/Ice/Logger.rb +0 -24
  466. data/lib/Ice/LoggerF.rb +0 -24
  467. data/lib/Ice/Metrics.rb +0 -337
  468. data/lib/Ice/ObjectAdapter.rb +0 -29
  469. data/lib/Ice/ObjectAdapterF.rb +0 -24
  470. data/lib/Ice/ObjectFactory.rb +0 -24
  471. data/lib/Ice/Plugin.rb +0 -30
  472. data/lib/Ice/PluginF.rb +0 -28
  473. data/lib/Ice/Process.rb +0 -53
  474. data/lib/Ice/ProcessF.rb +0 -25
  475. data/lib/Ice/Properties.rb +0 -25
  476. data/lib/Ice/PropertiesAdmin.rb +0 -63
  477. data/lib/Ice/PropertiesF.rb +0 -29
  478. data/lib/Ice/RemoteLogger.rb +0 -207
  479. data/lib/Ice/Router.rb +0 -87
  480. data/lib/Ice/RouterF.rb +0 -25
  481. data/lib/Ice/ServantLocator.rb +0 -26
  482. data/lib/Ice/ServantLocatorF.rb +0 -24
  483. data/lib/Ice/SliceChecksumDict.rb +0 -24
  484. data/lib/Ice/ValueFactory.rb +0 -28
  485. data/lib/Ice/Version.rb +0 -90
  486. data/lib/IceBox/IceBox.rb +0 -164
  487. data/lib/IceGrid/Admin.rb +0 -1196
  488. data/lib/IceGrid/Descriptor.rb +0 -1034
  489. data/lib/IceGrid/Exception.rb +0 -376
  490. data/lib/IceGrid/FileParser.rb +0 -65
  491. data/lib/IceGrid/PluginFacade.rb +0 -35
  492. data/lib/IceGrid/Registry.rb +0 -209
  493. data/lib/IceGrid/Session.rb +0 -71
  494. data/lib/IceGrid/UserAccountMapper.rb +0 -61
  495. data/lib/IcePatch2/FileInfo.rb +0 -115
  496. data/lib/IcePatch2/FileServer.rb +0 -123
  497. data/lib/IceStorm/IceStorm.rb +0 -332
  498. data/lib/IceStorm/Metrics.rb +0 -73
  499. data/slice/Ice/Connection.ice +0 -516
  500. data/slice/Ice/Locator.ice +0 -239
  501. data/slice/Ice/Metrics.ice +0 -436
  502. data/slice/Ice/ObjectAdapter.ice +0 -710
  503. data/slice/Ice/Router.ice +0 -103
  504. data/slice/IceBT/ConnectionInfo.ice +0 -59
  505. data/slice/IceBT/EndpointInfo.ice +0 -57
  506. data/slice/IceBT/Types.ice +0 -45
  507. data/slice/IceDiscovery/IceDiscovery.ice +0 -98
  508. data/slice/IceGrid/PluginFacade.ice +0 -329
  509. data/slice/IceIAP/ConnectionInfo.ice +0 -74
  510. data/slice/IceIAP/EndpointInfo.ice +0 -68
  511. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +0 -83
  512. data/slice/IceSSL/ConnectionInfo.ice +0 -54
  513. data/slice/IceSSL/ConnectionInfoF.ice +0 -31
  514. data/slice/IceSSL/EndpointInfo.ice +0 -45
  515. data/slice/IceStorm/IceStorm.ice +0 -414
  516. /data/{ext → dist/IceRuby}/Communicator.h +0 -0
  517. /data/{ext → dist/IceRuby}/Config.h +0 -0
  518. /data/{ext → dist/IceRuby}/Connection.h +0 -0
  519. /data/{ext → dist/IceRuby}/Endpoint.h +0 -0
  520. /data/{ext → dist/IceRuby}/ImplicitContext.h +0 -0
  521. /data/{ext → dist/IceRuby}/Init.cpp +0 -0
  522. /data/{ext → dist/IceRuby}/Logger.h +0 -0
  523. /data/{ext → dist/IceRuby}/Operation.h +0 -0
  524. /data/{ext → dist/IceRuby}/Properties.h +0 -0
  525. /data/{ext → dist/IceRuby}/Proxy.cpp +0 -0
  526. /data/{ext → dist/IceRuby}/Proxy.h +0 -0
  527. /data/{ext → dist/IceRuby}/Slice.cpp +0 -0
  528. /data/{ext → dist/IceRuby}/Slice.h +0 -0
  529. /data/{ext → dist/IceRuby}/Util.cpp +0 -0
  530. /data/{ext → dist/IceRuby}/Util.h +0 -0
  531. /data/{ext → dist/IceRuby}/ValueFactoryManager.h +0 -0
  532. /data/{ext → dist}/ice/cpp/include/Ice/Application.h +0 -0
  533. /data/{ext → dist}/ice/cpp/include/Ice/AsyncResult.h +0 -0
  534. /data/{ext → dist}/ice/cpp/include/Ice/AsyncResultF.h +0 -0
  535. /data/{ext → dist}/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -0
  536. /data/{ext → dist}/ice/cpp/include/Ice/BatchRequestQueueF.h +0 -0
  537. /data/{ext → dist}/ice/cpp/include/Ice/Buffer.h +0 -0
  538. /data/{ext → dist}/ice/cpp/include/Ice/CommunicatorAsync.h +0 -0
  539. /data/{ext → dist}/ice/cpp/include/Ice/Comparable.h +0 -0
  540. /data/{ext → dist}/ice/cpp/include/Ice/Config.h +0 -0
  541. /data/{ext → dist}/ice/cpp/include/Ice/ConnectionAsync.h +0 -0
  542. /data/{ext → dist}/ice/cpp/include/Ice/ConnectionIF.h +0 -0
  543. /data/{ext → dist}/ice/cpp/include/Ice/ConsoleUtil.h +0 -0
  544. /data/{ext → dist}/ice/cpp/include/Ice/DefaultValueFactory.h +0 -0
  545. /data/{ext → dist}/ice/cpp/include/Ice/DispatchInterceptor.h +0 -0
  546. /data/{ext → dist}/ice/cpp/include/Ice/Dispatcher.h +0 -0
  547. /data/{ext → dist}/ice/cpp/include/Ice/DynamicLibrary.h +0 -0
  548. /data/{ext → dist}/ice/cpp/include/Ice/DynamicLibraryF.h +0 -0
  549. /data/{ext → dist}/ice/cpp/include/Ice/Exception.h +0 -0
  550. /data/{ext → dist}/ice/cpp/include/Ice/FactoryTable.h +0 -0
  551. /data/{ext → dist}/ice/cpp/include/Ice/FactoryTableInit.h +0 -0
  552. /data/{ext → dist}/ice/cpp/include/Ice/Format.h +0 -0
  553. /data/{ext → dist}/ice/cpp/include/Ice/Functional.h +0 -0
  554. /data/{ext → dist}/ice/cpp/include/Ice/GCObject.h +0 -0
  555. /data/{ext → dist}/ice/cpp/include/Ice/Handle.h +0 -0
  556. /data/{ext → dist}/ice/cpp/include/Ice/Ice.h +0 -0
  557. /data/{ext → dist}/ice/cpp/include/Ice/IconvStringConverter.h +0 -0
  558. /data/{ext → dist}/ice/cpp/include/Ice/Incoming.h +0 -0
  559. /data/{ext → dist}/ice/cpp/include/Ice/IncomingAsync.h +0 -0
  560. /data/{ext → dist}/ice/cpp/include/Ice/IncomingAsyncF.h +0 -0
  561. /data/{ext → dist}/ice/cpp/include/Ice/InstanceF.h +0 -0
  562. /data/{ext → dist}/ice/cpp/include/Ice/InterfaceByValue.h +0 -0
  563. /data/{ext → dist}/ice/cpp/include/Ice/LocalObject.h +0 -0
  564. /data/{ext → dist}/ice/cpp/include/Ice/LocalObjectF.h +0 -0
  565. /data/{ext → dist}/ice/cpp/include/Ice/LoggerUtil.h +0 -0
  566. /data/{ext → dist}/ice/cpp/include/Ice/MetricsAdminI.h +0 -0
  567. /data/{ext → dist}/ice/cpp/include/Ice/MetricsFunctional.h +0 -0
  568. /data/{ext → dist}/ice/cpp/include/Ice/NativePropertiesAdmin.h +0 -0
  569. /data/{ext → dist}/ice/cpp/include/Ice/Object.h +0 -0
  570. /data/{ext → dist}/ice/cpp/include/Ice/ObjectF.h +0 -0
  571. /data/{ext → dist}/ice/cpp/include/Ice/ObserverHelper.h +0 -0
  572. /data/{ext → dist}/ice/cpp/include/Ice/Optional.h +0 -0
  573. /data/{ext → dist}/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -0
  574. /data/{ext → dist}/ice/cpp/include/Ice/OutputStream.h +0 -0
  575. /data/{ext → dist}/ice/cpp/include/Ice/Protocol.h +0 -0
  576. /data/{ext → dist}/ice/cpp/include/Ice/ProxyF.h +0 -0
  577. /data/{ext → dist}/ice/cpp/include/Ice/ProxyFactoryF.h +0 -0
  578. /data/{ext → dist}/ice/cpp/include/Ice/ProxyHandle.h +0 -0
  579. /data/{ext → dist}/ice/cpp/include/Ice/ReferenceF.h +0 -0
  580. /data/{ext → dist}/ice/cpp/include/Ice/RegisterPlugins.h +0 -0
  581. /data/{ext → dist}/ice/cpp/include/Ice/RequestHandlerF.h +0 -0
  582. /data/{ext → dist}/ice/cpp/include/Ice/ResponseHandlerF.h +0 -0
  583. /data/{ext → dist}/ice/cpp/include/Ice/SHA1.h +0 -0
  584. /data/{ext → dist}/ice/cpp/include/Ice/ServantManagerF.h +0 -0
  585. /data/{ext → dist}/ice/cpp/include/Ice/Service.h +0 -0
  586. /data/{ext → dist}/ice/cpp/include/Ice/SliceChecksums.h +0 -0
  587. /data/{ext → dist}/ice/cpp/include/Ice/SlicedData.h +0 -0
  588. /data/{ext → dist}/ice/cpp/include/Ice/SlicedDataF.h +0 -0
  589. /data/{ext → dist}/ice/cpp/include/Ice/StreamHelpers.h +0 -0
  590. /data/{ext → dist}/ice/cpp/include/Ice/StringConverter.h +0 -0
  591. /data/{ext → dist}/ice/cpp/include/Ice/ThreadPoolF.h +0 -0
  592. /data/{ext → dist}/ice/cpp/include/Ice/UUID.h +0 -0
  593. /data/{ext → dist}/ice/cpp/include/Ice/UniquePtr.h +0 -0
  594. /data/{ext → dist}/ice/cpp/include/Ice/UniqueRef.h +0 -0
  595. /data/{ext → dist}/ice/cpp/include/Ice/Value.h +0 -0
  596. /data/{ext → dist}/ice/cpp/include/Ice/ValueF.h +0 -0
  597. /data/{ext → dist}/ice/cpp/include/IceSSL/Config.h +0 -0
  598. /data/{ext → dist}/ice/cpp/include/IceSSL/IceSSL.h +0 -0
  599. /data/{ext → dist}/ice/cpp/include/IceSSL/OpenSSL.h +0 -0
  600. /data/{ext → dist}/ice/cpp/include/IceSSL/Plugin.h +0 -0
  601. /data/{ext → dist}/ice/cpp/include/IceSSL/SChannel.h +0 -0
  602. /data/{ext → dist}/ice/cpp/include/IceSSL/SecureTransport.h +0 -0
  603. /data/{ext → dist}/ice/cpp/include/IceUtil/Atomic.h +0 -0
  604. /data/{ext → dist}/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -0
  605. /data/{ext → dist}/ice/cpp/include/IceUtil/CountDownLatch.h +0 -0
  606. /data/{ext → dist}/ice/cpp/include/IceUtil/DisableWarnings.h +0 -0
  607. /data/{ext → dist}/ice/cpp/include/IceUtil/Exception.h +0 -0
  608. /data/{ext → dist}/ice/cpp/include/IceUtil/FileUtil.h +0 -0
  609. /data/{ext → dist}/ice/cpp/include/IceUtil/Functional.h +0 -0
  610. /data/{ext → dist}/ice/cpp/include/IceUtil/Handle.h +0 -0
  611. /data/{ext → dist}/ice/cpp/include/IceUtil/IceUtil.h +0 -0
  612. /data/{ext → dist}/ice/cpp/include/IceUtil/Iterator.h +0 -0
  613. /data/{ext → dist}/ice/cpp/include/IceUtil/Lock.h +0 -0
  614. /data/{ext → dist}/ice/cpp/include/IceUtil/Monitor.h +0 -0
  615. /data/{ext → dist}/ice/cpp/include/IceUtil/Mutex.h +0 -0
  616. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexProtocol.h +0 -0
  617. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -0
  618. /data/{ext → dist}/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -0
  619. /data/{ext → dist}/ice/cpp/include/IceUtil/Optional.h +0 -0
  620. /data/{ext → dist}/ice/cpp/include/IceUtil/Options.h +0 -0
  621. /data/{ext → dist}/ice/cpp/include/IceUtil/OutputUtil.h +0 -0
  622. /data/{ext → dist}/ice/cpp/include/IceUtil/PopDisableWarnings.h +0 -0
  623. /data/{ext → dist}/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -0
  624. /data/{ext → dist}/ice/cpp/include/IceUtil/Random.h +0 -0
  625. /data/{ext → dist}/ice/cpp/include/IceUtil/RecMutex.h +0 -0
  626. /data/{ext → dist}/ice/cpp/include/IceUtil/ScannerConfig.h +0 -0
  627. /data/{ext → dist}/ice/cpp/include/IceUtil/ScopedArray.h +0 -0
  628. /data/{ext → dist}/ice/cpp/include/IceUtil/Shared.h +0 -0
  629. /data/{ext → dist}/ice/cpp/include/IceUtil/StopWatch.h +0 -0
  630. /data/{ext → dist}/ice/cpp/include/IceUtil/StringConverter.h +0 -0
  631. /data/{ext → dist}/ice/cpp/include/IceUtil/StringUtil.h +0 -0
  632. /data/{ext → dist}/ice/cpp/include/IceUtil/Thread.h +0 -0
  633. /data/{ext → dist}/ice/cpp/include/IceUtil/ThreadException.h +0 -0
  634. /data/{ext → dist}/ice/cpp/include/IceUtil/Time.h +0 -0
  635. /data/{ext → dist}/ice/cpp/include/IceUtil/UUID.h +0 -0
  636. /data/{ext → dist}/ice/cpp/include/IceUtil/UndefSysMacros.h +0 -0
  637. /data/{ext → dist}/ice/cpp/src/Ice/ACM.cpp +0 -0
  638. /data/{ext → dist}/ice/cpp/src/Ice/ACM.h +0 -0
  639. /data/{ext → dist}/ice/cpp/src/Ice/ACMF.h +0 -0
  640. /data/{ext → dist}/ice/cpp/src/Ice/Acceptor.cpp +0 -0
  641. /data/{ext → dist}/ice/cpp/src/Ice/Acceptor.h +0 -0
  642. /data/{ext → dist}/ice/cpp/src/Ice/AcceptorF.h +0 -0
  643. /data/{ext → dist}/ice/cpp/src/Ice/ArgVector.cpp +0 -0
  644. /data/{ext → dist}/ice/cpp/src/Ice/ArgVector.h +0 -0
  645. /data/{ext → dist}/ice/cpp/src/Ice/AsyncResult.cpp +0 -0
  646. /data/{ext → dist}/ice/cpp/src/Ice/Base64.cpp +0 -0
  647. /data/{ext → dist}/ice/cpp/src/Ice/Base64.h +0 -0
  648. /data/{ext → dist}/ice/cpp/src/Ice/Buffer.cpp +0 -0
  649. /data/{ext → dist}/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +0 -0
  650. /data/{ext → dist}/ice/cpp/src/Ice/CollocatedRequestHandler.h +0 -0
  651. /data/{ext → dist}/ice/cpp/src/Ice/CommunicatorI.h +0 -0
  652. /data/{ext → dist}/ice/cpp/src/Ice/Cond.cpp +0 -0
  653. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandler.cpp +0 -0
  654. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandler.h +0 -0
  655. /data/{ext → dist}/ice/cpp/src/Ice/ConnectRequestHandlerF.h +0 -0
  656. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactory.cpp +0 -0
  657. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactory.h +0 -0
  658. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionFactoryF.h +0 -0
  659. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionI.h +0 -0
  660. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -0
  661. /data/{ext → dist}/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -0
  662. /data/{ext → dist}/ice/cpp/src/Ice/Connector.cpp +0 -0
  663. /data/{ext → dist}/ice/cpp/src/Ice/Connector.h +0 -0
  664. /data/{ext → dist}/ice/cpp/src/Ice/ConnectorF.h +0 -0
  665. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -0
  666. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverrides.h +0 -0
  667. /data/{ext → dist}/ice/cpp/src/Ice/DefaultsAndOverridesF.h +0 -0
  668. /data/{ext → dist}/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -0
  669. /data/{ext → dist}/ice/cpp/src/Ice/DynamicLibrary.cpp +0 -0
  670. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactory.h +0 -0
  671. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryF.h +0 -0
  672. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManager.cpp +0 -0
  673. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManager.h +0 -0
  674. /data/{ext → dist}/ice/cpp/src/Ice/EndpointFactoryManagerF.h +0 -0
  675. /data/{ext → dist}/ice/cpp/src/Ice/EndpointI.h +0 -0
  676. /data/{ext → dist}/ice/cpp/src/Ice/EndpointIF.h +0 -0
  677. /data/{ext → dist}/ice/cpp/src/Ice/EventHandler.cpp +0 -0
  678. /data/{ext → dist}/ice/cpp/src/Ice/EventHandler.h +0 -0
  679. /data/{ext → dist}/ice/cpp/src/Ice/EventHandlerF.h +0 -0
  680. /data/{ext → dist}/ice/cpp/src/Ice/Exception.cpp +0 -0
  681. /data/{ext → dist}/ice/cpp/src/Ice/FactoryTable.cpp +0 -0
  682. /data/{ext → dist}/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -0
  683. /data/{ext → dist}/ice/cpp/src/Ice/GCObject.cpp +0 -0
  684. /data/{ext → dist}/ice/cpp/src/Ice/HashUtil.h +0 -0
  685. /data/{ext → dist}/ice/cpp/src/Ice/HttpParser.cpp +0 -0
  686. /data/{ext → dist}/ice/cpp/src/Ice/HttpParser.h +0 -0
  687. /data/{ext → dist}/ice/cpp/src/Ice/IPEndpointI.h +0 -0
  688. /data/{ext → dist}/ice/cpp/src/Ice/IPEndpointIF.h +0 -0
  689. /data/{ext → dist}/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -0
  690. /data/{ext → dist}/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -0
  691. /data/{ext → dist}/ice/cpp/src/Ice/ImplicitContextI.h +0 -0
  692. /data/{ext → dist}/ice/cpp/src/Ice/Incoming.cpp +0 -0
  693. /data/{ext → dist}/ice/cpp/src/Ice/IncomingAsync.cpp +0 -0
  694. /data/{ext → dist}/ice/cpp/src/Ice/IncomingRequest.h +0 -0
  695. /data/{ext → dist}/ice/cpp/src/Ice/Initialize.cpp +0 -0
  696. /data/{ext → dist}/ice/cpp/src/Ice/Instance.cpp +0 -0
  697. /data/{ext → dist}/ice/cpp/src/Ice/Instance.h +0 -0
  698. /data/{ext → dist}/ice/cpp/src/Ice/InstrumentationI.cpp +0 -0
  699. /data/{ext → dist}/ice/cpp/src/Ice/InstrumentationI.h +0 -0
  700. /data/{ext → dist}/ice/cpp/src/Ice/LocalObject.cpp +0 -0
  701. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfo.cpp +0 -0
  702. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfo.h +0 -0
  703. /data/{ext → dist}/ice/cpp/src/Ice/LocatorInfoF.h +0 -0
  704. /data/{ext → dist}/ice/cpp/src/Ice/LoggerAdminI.cpp +0 -0
  705. /data/{ext → dist}/ice/cpp/src/Ice/LoggerAdminI.h +0 -0
  706. /data/{ext → dist}/ice/cpp/src/Ice/LoggerI.cpp +0 -0
  707. /data/{ext → dist}/ice/cpp/src/Ice/LoggerI.h +0 -0
  708. /data/{ext → dist}/ice/cpp/src/Ice/LoggerUtil.cpp +0 -0
  709. /data/{ext → dist}/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -0
  710. /data/{ext → dist}/ice/cpp/src/Ice/Network.h +0 -0
  711. /data/{ext → dist}/ice/cpp/src/Ice/NetworkF.h +0 -0
  712. /data/{ext → dist}/ice/cpp/src/Ice/NetworkProxy.h +0 -0
  713. /data/{ext → dist}/ice/cpp/src/Ice/NetworkProxyF.h +0 -0
  714. /data/{ext → dist}/ice/cpp/src/Ice/OSLogLoggerI.cpp +0 -0
  715. /data/{ext → dist}/ice/cpp/src/Ice/OSLogLoggerI.h +0 -0
  716. /data/{ext → dist}/ice/cpp/src/Ice/Object.cpp +0 -0
  717. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +0 -0
  718. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactory.h +0 -0
  719. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +0 -0
  720. /data/{ext → dist}/ice/cpp/src/Ice/ObjectAdapterI.h +0 -0
  721. /data/{ext → dist}/ice/cpp/src/Ice/ObserverHelper.cpp +0 -0
  722. /data/{ext → dist}/ice/cpp/src/Ice/OpaqueEndpointI.cpp +0 -0
  723. /data/{ext → dist}/ice/cpp/src/Ice/OpaqueEndpointI.h +0 -0
  724. /data/{ext → dist}/ice/cpp/src/Ice/OutputStream.cpp +0 -0
  725. /data/{ext → dist}/ice/cpp/src/Ice/PluginManagerI.h +0 -0
  726. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -0
  727. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesAdminI.h +0 -0
  728. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesI.cpp +0 -0
  729. /data/{ext → dist}/ice/cpp/src/Ice/PropertiesI.h +0 -0
  730. /data/{ext → dist}/ice/cpp/src/Ice/Protocol.cpp +0 -0
  731. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstance.cpp +0 -0
  732. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstance.h +0 -0
  733. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolInstanceF.h +0 -0
  734. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +0 -0
  735. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacade.h +0 -0
  736. /data/{ext → dist}/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -0
  737. /data/{ext → dist}/ice/cpp/src/Ice/ProxyFactory.cpp +0 -0
  738. /data/{ext → dist}/ice/cpp/src/Ice/ProxyFactory.h +0 -0
  739. /data/{ext → dist}/ice/cpp/src/Ice/Reference.h +0 -0
  740. /data/{ext → dist}/ice/cpp/src/Ice/ReferenceFactory.h +0 -0
  741. /data/{ext → dist}/ice/cpp/src/Ice/ReferenceFactoryF.h +0 -0
  742. /data/{ext → dist}/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -0
  743. /data/{ext → dist}/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -0
  744. /data/{ext → dist}/ice/cpp/src/Ice/ReplyStatus.h +0 -0
  745. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandler.cpp +0 -0
  746. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandler.h +0 -0
  747. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -0
  748. /data/{ext → dist}/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -0
  749. /data/{ext → dist}/ice/cpp/src/Ice/ResponseHandler.cpp +0 -0
  750. /data/{ext → dist}/ice/cpp/src/Ice/ResponseHandler.h +0 -0
  751. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueue.cpp +0 -0
  752. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueue.h +0 -0
  753. /data/{ext → dist}/ice/cpp/src/Ice/RetryQueueF.h +0 -0
  754. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfo.cpp +0 -0
  755. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfo.h +0 -0
  756. /data/{ext → dist}/ice/cpp/src/Ice/RouterInfoF.h +0 -0
  757. /data/{ext → dist}/ice/cpp/src/Ice/SHA1.cpp +0 -0
  758. /data/{ext → dist}/ice/cpp/src/Ice/Selector.h +0 -0
  759. /data/{ext → dist}/ice/cpp/src/Ice/ServantManager.cpp +0 -0
  760. /data/{ext → dist}/ice/cpp/src/Ice/ServantManager.h +0 -0
  761. /data/{ext → dist}/ice/cpp/src/Ice/SharedContext.h +0 -0
  762. /data/{ext → dist}/ice/cpp/src/Ice/SliceChecksums.cpp +0 -0
  763. /data/{ext → dist}/ice/cpp/src/Ice/SlicedData.cpp +0 -0
  764. /data/{ext → dist}/ice/cpp/src/Ice/StreamSocket.cpp +0 -0
  765. /data/{ext → dist}/ice/cpp/src/Ice/StreamSocket.h +0 -0
  766. /data/{ext → dist}/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -0
  767. /data/{ext → dist}/ice/cpp/src/Ice/StringUtil.h +0 -0
  768. /data/{ext → dist}/ice/cpp/src/Ice/SysLoggerI.cpp +0 -0
  769. /data/{ext → dist}/ice/cpp/src/Ice/SysLoggerI.h +0 -0
  770. /data/{ext → dist}/ice/cpp/src/Ice/SystemdJournalI.cpp +0 -0
  771. /data/{ext → dist}/ice/cpp/src/Ice/SystemdJournalI.h +0 -0
  772. /data/{ext → dist}/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -0
  773. /data/{ext → dist}/ice/cpp/src/Ice/TcpAcceptor.h +0 -0
  774. /data/{ext → dist}/ice/cpp/src/Ice/TcpConnector.cpp +0 -0
  775. /data/{ext → dist}/ice/cpp/src/Ice/TcpConnector.h +0 -0
  776. /data/{ext → dist}/ice/cpp/src/Ice/TcpEndpointI.cpp +0 -0
  777. /data/{ext → dist}/ice/cpp/src/Ice/TcpEndpointI.h +0 -0
  778. /data/{ext → dist}/ice/cpp/src/Ice/TcpTransceiver.cpp +0 -0
  779. /data/{ext → dist}/ice/cpp/src/Ice/TcpTransceiver.h +0 -0
  780. /data/{ext → dist}/ice/cpp/src/Ice/Thread.cpp +0 -0
  781. /data/{ext → dist}/ice/cpp/src/Ice/ThreadPool.h +0 -0
  782. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevels.cpp +0 -0
  783. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevels.h +0 -0
  784. /data/{ext → dist}/ice/cpp/src/Ice/TraceLevelsF.h +0 -0
  785. /data/{ext → dist}/ice/cpp/src/Ice/TraceUtil.cpp +0 -0
  786. /data/{ext → dist}/ice/cpp/src/Ice/TraceUtil.h +0 -0
  787. /data/{ext → dist}/ice/cpp/src/Ice/Transceiver.cpp +0 -0
  788. /data/{ext → dist}/ice/cpp/src/Ice/Transceiver.h +0 -0
  789. /data/{ext → dist}/ice/cpp/src/Ice/TransceiverF.h +0 -0
  790. /data/{ext → dist}/ice/cpp/src/Ice/UdpConnector.cpp +0 -0
  791. /data/{ext → dist}/ice/cpp/src/Ice/UdpConnector.h +0 -0
  792. /data/{ext → dist}/ice/cpp/src/Ice/UdpEndpointI.cpp +0 -0
  793. /data/{ext → dist}/ice/cpp/src/Ice/UdpEndpointI.h +0 -0
  794. /data/{ext → dist}/ice/cpp/src/Ice/UdpTransceiver.h +0 -0
  795. /data/{ext → dist}/ice/cpp/src/Ice/Value.cpp +0 -0
  796. /data/{ext → dist}/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -0
  797. /data/{ext → dist}/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -0
  798. /data/{ext → dist}/ice/cpp/src/Ice/VirtualShared.h +0 -0
  799. /data/{ext → dist}/ice/cpp/src/Ice/WSAcceptor.cpp +0 -0
  800. /data/{ext → dist}/ice/cpp/src/Ice/WSAcceptor.h +0 -0
  801. /data/{ext → dist}/ice/cpp/src/Ice/WSConnector.cpp +0 -0
  802. /data/{ext → dist}/ice/cpp/src/Ice/WSConnector.h +0 -0
  803. /data/{ext → dist}/ice/cpp/src/Ice/WSEndpoint.cpp +0 -0
  804. /data/{ext → dist}/ice/cpp/src/Ice/WSEndpoint.h +0 -0
  805. /data/{ext → dist}/ice/cpp/src/Ice/WSTransceiver.h +0 -0
  806. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LocatorI.cpp +0 -0
  807. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LocatorI.h +0 -0
  808. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LookupI.cpp +0 -0
  809. /data/{ext → dist}/ice/cpp/src/IceDiscovery/LookupI.h +0 -0
  810. /data/{ext → dist}/ice/cpp/src/IceDiscovery/PluginI.cpp +0 -0
  811. /data/{ext → dist}/ice/cpp/src/IceDiscovery/PluginI.h +0 -0
  812. /data/{ext → dist}/ice/cpp/src/IceLocatorDiscovery/Plugin.h +0 -0
  813. /data/{ext → dist}/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +0 -0
  814. /data/{ext → dist}/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -0
  815. /data/{ext → dist}/ice/cpp/src/IceSSL/AcceptorI.h +0 -0
  816. /data/{ext → dist}/ice/cpp/src/IceSSL/CertificateI.cpp +0 -0
  817. /data/{ext → dist}/ice/cpp/src/IceSSL/CertificateI.h +0 -0
  818. /data/{ext → dist}/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -0
  819. /data/{ext → dist}/ice/cpp/src/IceSSL/ConnectorI.h +0 -0
  820. /data/{ext → dist}/ice/cpp/src/IceSSL/EndpointI.cpp +0 -0
  821. /data/{ext → dist}/ice/cpp/src/IceSSL/EndpointI.h +0 -0
  822. /data/{ext → dist}/ice/cpp/src/IceSSL/Instance.cpp +0 -0
  823. /data/{ext → dist}/ice/cpp/src/IceSSL/Instance.h +0 -0
  824. /data/{ext → dist}/ice/cpp/src/IceSSL/InstanceF.h +0 -0
  825. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -0
  826. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -0
  827. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -0
  828. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -0
  829. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -0
  830. /data/{ext → dist}/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -0
  831. /data/{ext → dist}/ice/cpp/src/IceSSL/PluginI.h +0 -0
  832. /data/{ext → dist}/ice/cpp/src/IceSSL/RFC2253.h +0 -0
  833. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -0
  834. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelEngine.h +0 -0
  835. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -0
  836. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -0
  837. /data/{ext → dist}/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -0
  838. /data/{ext → dist}/ice/cpp/src/IceSSL/SSLEngine.h +0 -0
  839. /data/{ext → dist}/ice/cpp/src/IceSSL/SSLEngineF.h +0 -0
  840. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -0
  841. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -0
  842. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -0
  843. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -0
  844. /data/{ext → dist}/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -0
  845. /data/{ext → dist}/ice/cpp/src/IceSSL/TrustManager.h +0 -0
  846. /data/{ext → dist}/ice/cpp/src/IceSSL/TrustManagerF.h +0 -0
  847. /data/{ext → dist}/ice/cpp/src/IceSSL/Util.cpp +0 -0
  848. /data/{ext → dist}/ice/cpp/src/IceSSL/Util.h +0 -0
  849. /data/{ext → dist}/ice/cpp/src/IceUtil/ConsoleUtil.cpp +0 -0
  850. /data/{ext → dist}/ice/cpp/src/IceUtil/ConvertUTF.h +0 -0
  851. /data/{ext → dist}/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -0
  852. /data/{ext → dist}/ice/cpp/src/IceUtil/InputUtil.cpp +0 -0
  853. /data/{ext → dist}/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -0
  854. /data/{ext → dist}/ice/cpp/src/IceUtil/Options.cpp +0 -0
  855. /data/{ext → dist}/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -0
  856. /data/{ext → dist}/ice/cpp/src/IceUtil/Random.cpp +0 -0
  857. /data/{ext → dist}/ice/cpp/src/IceUtil/RecMutex.cpp +0 -0
  858. /data/{ext → dist}/ice/cpp/src/IceUtil/Shared.cpp +0 -0
  859. /data/{ext → dist}/ice/cpp/src/IceUtil/StringUtil.cpp +0 -0
  860. /data/{ext → dist}/ice/cpp/src/IceUtil/ThreadException.cpp +0 -0
  861. /data/{ext → dist}/ice/cpp/src/IceUtil/UUID.cpp +0 -0
  862. /data/{ext → dist}/ice/cpp/src/IceUtil/Unicode.cpp +0 -0
  863. /data/{ext → dist}/ice/cpp/src/IceUtil/Unicode.h +0 -0
  864. /data/{ext → dist}/ice/cpp/src/IceUtil/UtilException.cpp +0 -0
  865. /data/{ext → dist}/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -0
  866. /data/{ext → dist}/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -0
  867. /data/{ext → dist}/ice/cpp/src/Slice/Checksum.cpp +0 -0
  868. /data/{ext → dist}/ice/cpp/src/Slice/Checksum.h +0 -0
  869. /data/{ext → dist}/ice/cpp/src/Slice/FileTracker.cpp +0 -0
  870. /data/{ext → dist}/ice/cpp/src/Slice/FileTracker.h +0 -0
  871. /data/{ext → dist}/ice/cpp/src/Slice/Grammar.cpp +0 -0
  872. /data/{ext → dist}/ice/cpp/src/Slice/Grammar.h +0 -0
  873. /data/{ext → dist}/ice/cpp/src/Slice/GrammarUtil.h +0 -0
  874. /data/{ext → dist}/ice/cpp/src/Slice/JavaUtil.h +0 -0
  875. /data/{ext → dist}/ice/cpp/src/Slice/MD5.cpp +0 -0
  876. /data/{ext → dist}/ice/cpp/src/Slice/MD5.h +0 -0
  877. /data/{ext → dist}/ice/cpp/src/Slice/MD5I.cpp +0 -0
  878. /data/{ext → dist}/ice/cpp/src/Slice/MD5I.h +0 -0
  879. /data/{ext → dist}/ice/cpp/src/Slice/PHPUtil.cpp +0 -0
  880. /data/{ext → dist}/ice/cpp/src/Slice/PHPUtil.h +0 -0
  881. /data/{ext → dist}/ice/cpp/src/Slice/Parser.cpp +0 -0
  882. /data/{ext → dist}/ice/cpp/src/Slice/Parser.h +0 -0
  883. /data/{ext → dist}/ice/cpp/src/Slice/Preprocessor.cpp +0 -0
  884. /data/{ext → dist}/ice/cpp/src/Slice/Preprocessor.h +0 -0
  885. /data/{ext → dist}/ice/cpp/src/Slice/Python.cpp +0 -0
  886. /data/{ext → dist}/ice/cpp/src/Slice/PythonUtil.cpp +0 -0
  887. /data/{ext → dist}/ice/cpp/src/Slice/PythonUtil.h +0 -0
  888. /data/{ext → dist}/ice/cpp/src/Slice/Ruby.cpp +0 -0
  889. /data/{ext → dist}/ice/cpp/src/Slice/RubyUtil.cpp +0 -0
  890. /data/{ext → dist}/ice/cpp/src/Slice/RubyUtil.h +0 -0
  891. /data/{ext → dist}/ice/cpp/src/Slice/Scanner.cpp +0 -0
  892. /data/{ext → dist}/ice/cpp/src/Slice/SliceUtil.cpp +0 -0
  893. /data/{ext → dist}/ice/cpp/src/Slice/StringLiteralUtil.cpp +0 -0
  894. /data/{ext → dist}/ice/cpp/src/Slice/Util.h +0 -0
  895. /data/{ext → dist}/ice/mcpp/config.h +0 -0
  896. /data/{ext → dist}/ice/mcpp/configed.H +0 -0
  897. /data/{ext → dist}/ice/mcpp/eval.c +0 -0
  898. /data/{ext → dist}/ice/mcpp/expand.c +0 -0
  899. /data/{ext → dist}/ice/mcpp/mbchar.c +0 -0
  900. /data/{ext → dist}/ice/mcpp/mcpp_lib.h +0 -0
  901. /data/{ext → dist}/ice/mcpp/mcpp_out.h +0 -0
  902. /data/{ext → dist}/ice/mcpp/system.H +0 -0
  903. /data/{slice → dist/ice/slice}/Glacier2/Metrics.ice +0 -0
  904. /data/{slice → dist/ice/slice}/Glacier2/PermissionsVerifier.ice +0 -0
  905. /data/{slice → dist/ice/slice}/Glacier2/PermissionsVerifierF.ice +0 -0
  906. /data/{slice → dist/ice/slice}/Glacier2/Router.ice +0 -0
  907. /data/{slice → dist/ice/slice}/Glacier2/RouterF.ice +0 -0
  908. /data/{slice → dist/ice/slice}/Glacier2/SSLInfo.ice +0 -0
  909. /data/{slice → dist/ice/slice}/Glacier2/Session.ice +0 -0
  910. /data/{slice → dist/ice/slice}/Ice/BuiltinSequences.ice +0 -0
  911. /data/{slice → dist/ice/slice}/Ice/Communicator.ice +0 -0
  912. /data/{slice → dist/ice/slice}/Ice/CommunicatorF.ice +0 -0
  913. /data/{slice → dist/ice/slice}/Ice/ConnectionF.ice +0 -0
  914. /data/{slice → dist/ice/slice}/Ice/Current.ice +0 -0
  915. /data/{slice → dist/ice/slice}/Ice/Endpoint.ice +0 -0
  916. /data/{slice → dist/ice/slice}/Ice/EndpointF.ice +0 -0
  917. /data/{slice → dist/ice/slice}/Ice/EndpointTypes.ice +0 -0
  918. /data/{slice → dist/ice/slice}/Ice/FacetMap.ice +0 -0
  919. /data/{slice → dist/ice/slice}/Ice/Identity.ice +0 -0
  920. /data/{slice → dist/ice/slice}/Ice/ImplicitContext.ice +0 -0
  921. /data/{slice → dist/ice/slice}/Ice/ImplicitContextF.ice +0 -0
  922. /data/{slice → dist/ice/slice}/Ice/Instrumentation.ice +0 -0
  923. /data/{slice → dist/ice/slice}/Ice/InstrumentationF.ice +0 -0
  924. /data/{slice → dist/ice/slice}/Ice/LocalException.ice +0 -0
  925. /data/{slice → dist/ice/slice}/Ice/LocatorF.ice +0 -0
  926. /data/{slice → dist/ice/slice}/Ice/Logger.ice +0 -0
  927. /data/{slice → dist/ice/slice}/Ice/LoggerF.ice +0 -0
  928. /data/{slice → dist/ice/slice}/Ice/ObjectAdapterF.ice +0 -0
  929. /data/{slice → dist/ice/slice}/Ice/ObjectFactory.ice +0 -0
  930. /data/{slice → dist/ice/slice}/Ice/Plugin.ice +0 -0
  931. /data/{slice → dist/ice/slice}/Ice/PluginF.ice +0 -0
  932. /data/{slice → dist/ice/slice}/Ice/Process.ice +0 -0
  933. /data/{slice → dist/ice/slice}/Ice/ProcessF.ice +0 -0
  934. /data/{slice → dist/ice/slice}/Ice/Properties.ice +0 -0
  935. /data/{slice → dist/ice/slice}/Ice/PropertiesAdmin.ice +0 -0
  936. /data/{slice → dist/ice/slice}/Ice/PropertiesF.ice +0 -0
  937. /data/{slice → dist/ice/slice}/Ice/RemoteLogger.ice +0 -0
  938. /data/{slice → dist/ice/slice}/Ice/RouterF.ice +0 -0
  939. /data/{slice → dist/ice/slice}/Ice/ServantLocator.ice +0 -0
  940. /data/{slice → dist/ice/slice}/Ice/ServantLocatorF.ice +0 -0
  941. /data/{slice → dist/ice/slice}/Ice/SliceChecksumDict.ice +0 -0
  942. /data/{slice → dist/ice/slice}/Ice/ValueFactory.ice +0 -0
  943. /data/{slice → dist/ice/slice}/Ice/Version.ice +0 -0
  944. /data/{slice → dist/ice/slice}/IceBox/IceBox.ice +0 -0
  945. /data/{slice → dist/ice/slice}/IceGrid/Admin.ice +0 -0
  946. /data/{slice → dist/ice/slice}/IceGrid/Descriptor.ice +0 -0
  947. /data/{slice → dist/ice/slice}/IceGrid/Exception.ice +0 -0
  948. /data/{slice → dist/ice/slice}/IceGrid/FileParser.ice +0 -0
  949. /data/{slice → dist/ice/slice}/IceGrid/Registry.ice +0 -0
  950. /data/{slice → dist/ice/slice}/IceGrid/Session.ice +0 -0
  951. /data/{slice → dist/ice/slice}/IceGrid/UserAccountMapper.ice +0 -0
  952. /data/{slice → dist/ice/slice}/IcePatch2/FileInfo.ice +0 -0
  953. /data/{slice → dist/ice/slice}/IcePatch2/FileServer.ice +0 -0
  954. /data/{slice → dist/ice/slice}/IceStorm/Metrics.ice +0 -0
  955. /data/{lib → dist/lib}/Glacier2.rb +0 -0
  956. /data/{lib → dist/lib}/Ice.rb +0 -0
  957. /data/{lib → dist/lib}/IceBox.rb +0 -0
  958. /data/{lib → dist/lib}/IceGrid.rb +0 -0
  959. /data/{lib → dist/lib}/IcePatch2.rb +0 -0
  960. /data/{lib → dist/lib}/IceStorm.rb +0 -0
  961. /data/{bin → scripts}/slice2rb +0 -0
@@ -0,0 +1,1543 @@
1
+ //
2
+ // Copyright (c) ZeroC, Inc. All rights reserved.
3
+ //
4
+
5
+ #include <Ice/Selector.h>
6
+ #include <Ice/EventHandler.h>
7
+ #include <Ice/Instance.h>
8
+ #include <Ice/LoggerUtil.h>
9
+ #include <Ice/LocalException.h>
10
+ #include <IceUtil/Time.h>
11
+
12
+ #ifdef ICE_USE_CFSTREAM
13
+ # include <CoreFoundation/CoreFoundation.h>
14
+ # include <CoreFoundation/CFStream.h>
15
+ #endif
16
+
17
+ using namespace std;
18
+ using namespace IceInternal;
19
+
20
+ #if defined(ICE_USE_KQUEUE)
21
+ namespace
22
+ {
23
+ struct timespec zeroTimeout = { 0, 0 };
24
+ }
25
+ #endif
26
+
27
+ #if defined(ICE_USE_IOCP)
28
+
29
+ Selector::Selector(const InstancePtr& instance) : _instance(instance)
30
+ {
31
+ }
32
+
33
+ Selector::~Selector()
34
+ {
35
+ }
36
+
37
+ #ifdef ICE_USE_IOCP
38
+ void
39
+ Selector::setup(int sizeIO)
40
+ {
41
+ _handle = CreateIoCompletionPort(INVALID_HANDLE_VALUE, ICE_NULLPTR, 0, sizeIO);
42
+ if(_handle == ICE_NULLPTR)
43
+ {
44
+ throw Ice::SocketException(__FILE__, __LINE__, GetLastError());
45
+ }
46
+ }
47
+ #endif
48
+
49
+ void
50
+ Selector::destroy()
51
+ {
52
+ #ifdef ICE_USE_IOCP
53
+ CloseHandle(_handle);
54
+ #endif
55
+ }
56
+
57
+ void
58
+ Selector::initialize(EventHandler* handler)
59
+ {
60
+ if(!handler->getNativeInfo())
61
+ {
62
+ return;
63
+ }
64
+
65
+ #ifdef ICE_USE_IOCP
66
+ SOCKET socket = handler->getNativeInfo()->fd();
67
+ if(socket != INVALID_SOCKET)
68
+ {
69
+ if(CreateIoCompletionPort(reinterpret_cast<HANDLE>(socket),
70
+ _handle,
71
+ reinterpret_cast<ULONG_PTR>(handler),
72
+ 0) == ICE_NULLPTR)
73
+ {
74
+ throw Ice::SocketException(__FILE__, __LINE__, GetLastError());
75
+ }
76
+ }
77
+ handler->getNativeInfo()->initialize(_handle, reinterpret_cast<ULONG_PTR>(handler));
78
+ #else
79
+ EventHandlerPtr h = ICE_GET_SHARED_FROM_THIS(handler);
80
+ handler->getNativeInfo()->setCompletedHandler(
81
+ ref new SocketOperationCompletedHandler(
82
+ [=](int operation)
83
+ {
84
+ //
85
+ // Use the reference counted handler to ensure it's not
86
+ // destroyed as long as the callback lambda exists.
87
+ //
88
+ completed(h.get(), static_cast<SocketOperation>(operation));
89
+ }));
90
+ #endif
91
+ }
92
+
93
+ void
94
+ Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
95
+ {
96
+ handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
97
+ handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
98
+ if(add & SocketOperationRead && !(handler->_pending & SocketOperationRead))
99
+ {
100
+ handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationRead);
101
+ completed(handler, SocketOperationRead); // Start an asynchrnous read
102
+ }
103
+ else if(add & SocketOperationWrite && !(handler->_pending & SocketOperationWrite))
104
+ {
105
+ handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationWrite);
106
+ completed(handler, SocketOperationWrite); // Start an asynchrnous write
107
+ }
108
+ }
109
+
110
+ void
111
+ Selector::finish(IceInternal::EventHandler* handler)
112
+ {
113
+ handler->_registered = SocketOperationNone;
114
+ handler->_finish = false; // Ensures that finished() is only called once on the event handler.
115
+ }
116
+
117
+ void
118
+ Selector::ready(EventHandler* handler, SocketOperation status, bool value)
119
+ {
120
+ if(((handler->_ready & status) != 0) == value)
121
+ {
122
+ return; // Nothing to do if ready state already correctly set.
123
+ }
124
+
125
+ if(value)
126
+ {
127
+ handler->_ready = static_cast<SocketOperation>(handler->_ready | status);
128
+ }
129
+ else
130
+ {
131
+ handler->_ready = static_cast<SocketOperation>(handler->_ready & ~status);
132
+ }
133
+ }
134
+
135
+ EventHandler*
136
+ #ifdef ICE_USE_IOCP
137
+ Selector::getNextHandler(SocketOperation& status, DWORD& count, int& error, int timeout)
138
+ #else
139
+ Selector::getNextHandler(SocketOperation& status, int timeout)
140
+ #endif
141
+ {
142
+ #ifdef ICE_USE_IOCP
143
+ ULONG_PTR key;
144
+ LPOVERLAPPED ol;
145
+ error = ERROR_SUCCESS;
146
+
147
+ if(!GetQueuedCompletionStatus(_handle, &count, &key, &ol, timeout > 0 ? timeout * 1000 : INFINITE))
148
+ {
149
+ int err = WSAGetLastError();
150
+ if(ol == 0)
151
+ {
152
+ if(err == WAIT_TIMEOUT)
153
+ {
154
+ throw SelectorTimeoutException();
155
+ }
156
+ else
157
+ {
158
+ // This indicates an internal error with the IOCP completion port, we log the error and abort.
159
+ {
160
+ Ice::SocketException ex(__FILE__, __LINE__, err);
161
+ Ice::Error out(_instance->initializationData().logger);
162
+ out << "couldn't dequeue packet from completion port:\n" << ex;
163
+ } // The message is logged when out goes out of scope.
164
+ abort();
165
+ }
166
+ }
167
+ AsyncInfo* info = static_cast<AsyncInfo*>(ol);
168
+ if(info)
169
+ {
170
+ status = info->status;
171
+ }
172
+ count = 0;
173
+ error = WSAGetLastError();
174
+ return reinterpret_cast<EventHandler*>(key);
175
+ }
176
+
177
+ AsyncInfo* info = static_cast<AsyncInfo*>(ol);
178
+ if(info)
179
+ {
180
+ status = info->status;
181
+ }
182
+ else
183
+ {
184
+ status = reinterpret_cast<EventHandler*>(key)->_ready;
185
+ }
186
+ return reinterpret_cast<EventHandler*>(key);
187
+ #else
188
+ IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor);
189
+ while(_events.empty())
190
+ {
191
+ if(timeout > 0)
192
+ {
193
+ _monitor.timedWait(IceUtil::Time::seconds(timeout));
194
+ if(_events.empty())
195
+ {
196
+ throw SelectorTimeoutException();
197
+ }
198
+ }
199
+ else
200
+ {
201
+ _monitor.wait();
202
+ }
203
+ }
204
+ assert(!_events.empty());
205
+ IceInternal::EventHandlerPtr handler = _events.front().handler;
206
+ const SelectEvent& event = _events.front();
207
+ status = event.status;
208
+ _events.pop_front();
209
+ return handler.get();
210
+ #endif
211
+ }
212
+
213
+ void
214
+ Selector::completed(EventHandler* handler, SocketOperation op)
215
+ {
216
+ #ifdef ICE_USE_IOCP
217
+ AsyncInfo* info = 0;
218
+ NativeInfoPtr nativeInfo = handler->getNativeInfo();
219
+ if(nativeInfo)
220
+ {
221
+ info = nativeInfo->getAsyncInfo(op);
222
+ }
223
+ if(!PostQueuedCompletionStatus(_handle, 0, reinterpret_cast<ULONG_PTR>(handler), info))
224
+ {
225
+ throw Ice::SocketException(__FILE__, __LINE__, GetLastError());
226
+ }
227
+ #else
228
+ IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor);
229
+ _events.push_back(SelectEvent(handler->shared_from_this(), op));
230
+ _monitor.notify();
231
+ #endif
232
+ }
233
+
234
+ #elif defined(ICE_USE_KQUEUE) || defined(ICE_USE_EPOLL) || defined(ICE_USE_SELECT) || defined(ICE_USE_POLL)
235
+
236
+ Selector::Selector(const InstancePtr& instance) : _instance(instance), _interrupted(false)
237
+ {
238
+ SOCKET fds[2];
239
+ createPipe(fds);
240
+ _fdIntrRead = fds[0];
241
+ _fdIntrWrite = fds[1];
242
+ _selecting = false;
243
+
244
+ #if defined(ICE_USE_EPOLL)
245
+ _events.resize(256);
246
+ _queueFd = epoll_create(1);
247
+ if(_queueFd < 0)
248
+ {
249
+ throw Ice::SocketException(__FILE__, __LINE__, IceInternal::getSocketErrno());
250
+ }
251
+
252
+ epoll_event event;
253
+ memset(&event, 0, sizeof(epoll_event));
254
+ event.data.ptr = 0;
255
+ event.events = EPOLLIN;
256
+ if(epoll_ctl(_queueFd, EPOLL_CTL_ADD, _fdIntrRead, &event) != 0)
257
+ {
258
+ Ice::Error out(_instance->initializationData().logger);
259
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
260
+ }
261
+ #elif defined(ICE_USE_KQUEUE)
262
+ _events.resize(256);
263
+ _queueFd = kqueue();
264
+ if(_queueFd < 0)
265
+ {
266
+ throw Ice::SocketException(__FILE__, __LINE__, getSocketErrno());
267
+ }
268
+
269
+ struct kevent ev;
270
+ EV_SET(&ev, _fdIntrRead, EVFILT_READ, EV_ADD, 0, 0, 0);
271
+ int rs = kevent(_queueFd, &ev, 1, 0, 0, 0);
272
+ if(rs < 0)
273
+ {
274
+ Ice::Error out(_instance->initializationData().logger);
275
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
276
+ }
277
+ #elif defined(ICE_USE_SELECT)
278
+ FD_ZERO(&_readFdSet);
279
+ FD_ZERO(&_writeFdSet);
280
+ FD_ZERO(&_errorFdSet);
281
+ FD_SET(_fdIntrRead, &_readFdSet);
282
+ #else
283
+ struct pollfd pollFd;
284
+ pollFd.fd = _fdIntrRead;
285
+ pollFd.events = POLLIN;
286
+ _pollFdSet.push_back(pollFd);
287
+ #endif
288
+ }
289
+
290
+ Selector::~Selector()
291
+ {
292
+ }
293
+
294
+ void
295
+ Selector::destroy()
296
+ {
297
+ #if defined(ICE_USE_KQUEUE) || defined(ICE_USE_EPOLL)
298
+ try
299
+ {
300
+ closeSocket(_queueFd);
301
+ }
302
+ catch(const Ice::LocalException& ex)
303
+ {
304
+ Ice::Error out(_instance->initializationData().logger);
305
+ out << "exception in selector while calling closeSocket():\n" << ex;
306
+ }
307
+ #endif
308
+
309
+ try
310
+ {
311
+ closeSocket(_fdIntrWrite);
312
+ }
313
+ catch(const Ice::LocalException& ex)
314
+ {
315
+ Ice::Error out(_instance->initializationData().logger);
316
+ out << "exception in selector while calling closeSocket():\n" << ex;
317
+ }
318
+
319
+ try
320
+ {
321
+ closeSocket(_fdIntrRead);
322
+ }
323
+ catch(const Ice::LocalException& ex)
324
+ {
325
+ Ice::Error out(_instance->initializationData().logger);
326
+ out << "exception in selector while calling closeSocket():\n" << ex;
327
+ }
328
+ }
329
+
330
+ void
331
+ Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
332
+ {
333
+ SocketOperation previous = handler->_registered;
334
+ handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
335
+ handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
336
+ if(previous == handler->_registered)
337
+ {
338
+ return;
339
+ }
340
+ checkReady(handler);
341
+
342
+ NativeInfoPtr nativeInfo = handler->getNativeInfo();
343
+ if(nativeInfo && nativeInfo->fd() != INVALID_SOCKET)
344
+ {
345
+ updateSelectorForEventHandler(handler, remove, add);
346
+ }
347
+ }
348
+
349
+ void
350
+ Selector::enable(EventHandler* handler, SocketOperation status)
351
+ {
352
+ if(!(handler->_disabled & status))
353
+ {
354
+ return;
355
+ }
356
+ handler->_disabled = static_cast<SocketOperation>(handler->_disabled & ~status);
357
+ checkReady(handler);
358
+
359
+ NativeInfoPtr nativeInfo = handler->getNativeInfo();
360
+ if(!nativeInfo || nativeInfo->fd() == INVALID_SOCKET)
361
+ {
362
+ return;
363
+ }
364
+
365
+ if(handler->_registered & status)
366
+ {
367
+ #if defined(ICE_USE_EPOLL)
368
+ SOCKET fd = nativeInfo->fd();
369
+ SocketOperation previous = static_cast<SocketOperation>(handler->_registered & ~(handler->_disabled | status));
370
+ SocketOperation newStatus = static_cast<SocketOperation>(handler->_registered & ~handler->_disabled);
371
+ epoll_event event;
372
+ memset(&event, 0, sizeof(epoll_event));
373
+ event.data.ptr = handler;
374
+ if(newStatus & SocketOperationRead)
375
+ {
376
+ event.events |= EPOLLIN;
377
+ }
378
+ if(newStatus & SocketOperationWrite)
379
+ {
380
+ event.events |= EPOLLOUT;
381
+ }
382
+ if(epoll_ctl(_queueFd, previous ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &event) != 0)
383
+ {
384
+ Ice::Error out(_instance->initializationData().logger);
385
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
386
+ }
387
+ #elif defined(ICE_USE_KQUEUE)
388
+ struct kevent ev;
389
+ SOCKET fd = handler->getNativeInfo()->fd();
390
+ EV_SET(&ev, fd, status == SocketOperationRead ? EVFILT_READ : EVFILT_WRITE, EV_ENABLE, 0, 0, handler);
391
+ _changes.push_back(ev);
392
+ if(_selecting)
393
+ {
394
+ updateSelector();
395
+ }
396
+ #else
397
+ _changes.push_back(make_pair(handler, static_cast<SocketOperation>(handler->_registered & ~handler->_disabled)));
398
+ wakeup();
399
+ #endif
400
+ }
401
+ }
402
+
403
+ void
404
+ Selector::disable(EventHandler* handler, SocketOperation status)
405
+ {
406
+ if(handler->_disabled & status)
407
+ {
408
+ return;
409
+ }
410
+ handler->_disabled = static_cast<SocketOperation>(handler->_disabled | status);
411
+ checkReady(handler);
412
+
413
+ NativeInfoPtr nativeInfo = handler->getNativeInfo();
414
+ if(!nativeInfo || nativeInfo->fd() == INVALID_SOCKET)
415
+ {
416
+ return;
417
+ }
418
+
419
+ if(handler->_registered & status)
420
+ {
421
+ #if defined(ICE_USE_EPOLL)
422
+ SOCKET fd = nativeInfo->fd();
423
+ SocketOperation newStatus = static_cast<SocketOperation>(handler->_registered & ~handler->_disabled);
424
+ epoll_event event;
425
+ memset(&event, 0, sizeof(epoll_event));
426
+ event.data.ptr = handler;
427
+ if(newStatus & SocketOperationRead)
428
+ {
429
+ event.events |= EPOLLIN;
430
+ }
431
+ if(newStatus & SocketOperationWrite)
432
+ {
433
+ event.events |= EPOLLOUT;
434
+ }
435
+ if(epoll_ctl(_queueFd, newStatus ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, &event) != 0)
436
+ {
437
+ Ice::Error out(_instance->initializationData().logger);
438
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
439
+ }
440
+ #elif defined(ICE_USE_KQUEUE)
441
+ SOCKET fd = nativeInfo->fd();
442
+ struct kevent ev;
443
+ EV_SET(&ev, fd, status == SocketOperationRead ? EVFILT_READ : EVFILT_WRITE, EV_DISABLE, 0, 0, handler);
444
+ _changes.push_back(ev);
445
+ if(_selecting)
446
+ {
447
+ updateSelector();
448
+ }
449
+ #else
450
+ _changes.push_back(make_pair(handler, static_cast<SocketOperation>(handler->_registered & ~handler->_disabled)));
451
+ wakeup();
452
+ #endif
453
+ }
454
+ }
455
+
456
+ bool
457
+ Selector::finish(EventHandler* handler, bool closeNow)
458
+ {
459
+ if(handler->_registered)
460
+ {
461
+ update(handler, handler->_registered, SocketOperationNone);
462
+ #if !defined(ICE_USE_EPOLL) && !defined(ICE_USE_KQUEUE)
463
+ return false; // Don't close now if selecting
464
+ #endif
465
+ }
466
+
467
+ #if defined(ICE_USE_KQUEUE)
468
+ if(closeNow && !_changes.empty())
469
+ {
470
+ //
471
+ // Update selector now to remove the FD from the kqueue if
472
+ // we're going to close it now. This isn't necessary for
473
+ // epoll since we always update the epoll FD immediately.
474
+ //
475
+ updateSelector();
476
+ }
477
+ #elif !defined(ICE_USE_EPOLL)
478
+ if(!_changes.empty())
479
+ {
480
+ return false;
481
+ }
482
+ #endif
483
+
484
+ return closeNow;
485
+ }
486
+
487
+ void
488
+ Selector::ready(EventHandler* handler, SocketOperation status, bool value)
489
+ {
490
+ if(((handler->_ready & status) != 0) == value)
491
+ {
492
+ return; // Nothing to do if ready state already correctly set.
493
+ }
494
+
495
+ if(status & SocketOperationConnect)
496
+ {
497
+ NativeInfoPtr nativeInfo = handler->getNativeInfo();
498
+ if(nativeInfo && nativeInfo->newFd() && handler->_registered)
499
+ {
500
+ // If new FD is set after connect, register the FD with the selector.
501
+ updateSelectorForEventHandler(handler, SocketOperationNone, handler->_registered);
502
+ }
503
+ }
504
+
505
+ if(value)
506
+ {
507
+ handler->_ready = static_cast<SocketOperation>(handler->_ready | status);
508
+ }
509
+ else
510
+ {
511
+ handler->_ready = static_cast<SocketOperation>(handler->_ready & ~status);
512
+ }
513
+ checkReady(handler);
514
+ }
515
+
516
+ void
517
+ Selector::wakeup()
518
+ {
519
+ if(_selecting && !_interrupted)
520
+ {
521
+ char c = 0;
522
+ while(true)
523
+ {
524
+ if(::write(_fdIntrWrite, &c, 1) == SOCKET_ERROR)
525
+ {
526
+ if(interrupted())
527
+ {
528
+ continue;
529
+ }
530
+
531
+ throw Ice::SocketException(__FILE__, __LINE__, IceInternal::getSocketErrno());
532
+ }
533
+ break;
534
+ }
535
+ _interrupted = true;
536
+ }
537
+ }
538
+
539
+ void
540
+ Selector::startSelect()
541
+ {
542
+ if(_interrupted)
543
+ {
544
+ char c;
545
+ while(true)
546
+ {
547
+ ssize_t ret = ::read(_fdIntrRead, &c, 1);
548
+ if(ret == SOCKET_ERROR)
549
+ {
550
+ if(interrupted())
551
+ {
552
+ continue;
553
+ }
554
+ throw Ice::SocketException(__FILE__, __LINE__, IceInternal::getSocketErrno());
555
+ }
556
+ break;
557
+ }
558
+ _interrupted = false;
559
+ }
560
+
561
+ #if !defined(ICE_USE_EPOLL)
562
+ if(!_changes.empty())
563
+ {
564
+ updateSelector();
565
+ }
566
+ #endif
567
+ _selecting = true;
568
+
569
+ //
570
+ // If there are ready handlers, don't block in select, just do a non-blocking
571
+ // select to retrieve new ready handlers from the Java selector.
572
+ //
573
+ _selectNow = !_readyHandlers.empty();
574
+ }
575
+
576
+ void
577
+ Selector::finishSelect(vector<pair<EventHandler*, SocketOperation> >& handlers)
578
+ {
579
+ _selecting = false;
580
+
581
+ assert(handlers.empty());
582
+
583
+ #if defined(ICE_USE_POLL) || defined(ICE_USE_SELECT)
584
+ if(_interrupted) // Interrupted, we have to process the interrupt before returning any handlers
585
+ {
586
+ return;
587
+ }
588
+ #endif
589
+
590
+ #if defined(ICE_USE_POLL)
591
+ for(vector<struct pollfd>::const_iterator r = _pollFdSet.begin(); r != _pollFdSet.end(); ++r)
592
+ #else
593
+ for(int i = 0; i < _count; ++i)
594
+ #endif
595
+ {
596
+ pair<EventHandler*, SocketOperation> p;
597
+
598
+ #if defined(ICE_USE_EPOLL)
599
+ struct epoll_event& ev = _events[i];
600
+ p.first = reinterpret_cast<EventHandler*>(ev.data.ptr);
601
+ p.second = static_cast<SocketOperation>(((ev.events & (EPOLLIN | EPOLLERR)) ?
602
+ SocketOperationRead : SocketOperationNone) |
603
+ ((ev.events & (EPOLLOUT | EPOLLERR)) ?
604
+ SocketOperationWrite : SocketOperationNone));
605
+ #elif defined(ICE_USE_KQUEUE)
606
+ struct kevent& ev = _events[static_cast<size_t>(i)];
607
+ if(ev.flags & EV_ERROR)
608
+ {
609
+ Ice::Error out(_instance->initializationData().logger);
610
+ out << "selector returned error:\n" << IceUtilInternal::errorToString(static_cast<int>(ev.data));
611
+ continue;
612
+ }
613
+ p.first = reinterpret_cast<EventHandler*>(ev.udata);
614
+ p.second = (ev.filter == EVFILT_READ) ? SocketOperationRead : SocketOperationWrite;
615
+ #elif defined(ICE_USE_SELECT)
616
+ //
617
+ // Round robin for the filedescriptors.
618
+ //
619
+ SOCKET fd;
620
+ p.second = SocketOperationNone;
621
+ if(i < _selectedReadFdSet.fd_count)
622
+ {
623
+ fd = _selectedReadFdSet.fd_array[i];
624
+ p.second = static_cast<SocketOperation>(p.second | SocketOperationRead);
625
+ }
626
+ else if(i < _selectedWriteFdSet.fd_count + _selectedReadFdSet.fd_count)
627
+ {
628
+ fd = _selectedWriteFdSet.fd_array[i - _selectedReadFdSet.fd_count];
629
+ p.second = static_cast<SocketOperation>(p.second | SocketOperationWrite);
630
+ }
631
+ else
632
+ {
633
+ fd = _selectedErrorFdSet.fd_array[i - _selectedReadFdSet.fd_count - _selectedWriteFdSet.fd_count];
634
+ p.second = static_cast<SocketOperation>(p.second | SocketOperationConnect);
635
+ }
636
+
637
+ assert(fd != _fdIntrRead);
638
+ p.first = _handlers[fd];
639
+ #else
640
+ if(r->revents == 0)
641
+ {
642
+ continue;
643
+ }
644
+
645
+ SOCKET fd = r->fd;
646
+ assert(_handlers.find(fd) != _handlers.end());
647
+ p.first = _handlers[fd];
648
+ p.second = SocketOperationNone;
649
+ if(r->revents & (POLLIN | POLLERR | POLLHUP))
650
+ {
651
+ p.second = static_cast<SocketOperation>(p.second | SocketOperationRead);
652
+ }
653
+ if(r->revents & (POLLOUT | POLLERR | POLLHUP))
654
+ {
655
+ p.second = static_cast<SocketOperation>(p.second | SocketOperationWrite);
656
+ }
657
+ assert(p.second);
658
+ #endif
659
+ if(!p.first)
660
+ {
661
+ continue; // Interrupted
662
+ }
663
+
664
+ map<EventHandlerPtr, SocketOperation>::iterator q = _readyHandlers.find(ICE_GET_SHARED_FROM_THIS(p.first));
665
+
666
+ if(q != _readyHandlers.end()) // Handler will be added by the loop below
667
+ {
668
+ q->second = p.second; // We just remember which operations are ready here.
669
+ }
670
+ else
671
+ {
672
+ handlers.push_back(p);
673
+ }
674
+ }
675
+
676
+ for(map<EventHandlerPtr, SocketOperation>::iterator q = _readyHandlers.begin(); q != _readyHandlers.end(); ++q)
677
+ {
678
+ pair<EventHandler*, SocketOperation> p;
679
+ p.first = q->first.get();
680
+ p.second = static_cast<SocketOperation>(p.first->_ready & ~p.first->_disabled & p.first->_registered);
681
+ p.second = static_cast<SocketOperation>(p.second | q->second);
682
+ if(p.second)
683
+ {
684
+ handlers.push_back(p);
685
+ }
686
+
687
+ //
688
+ // Reset the operation, it's only used by this method to temporarly store the socket status
689
+ // return by the select operation above.
690
+ //
691
+ q->second = SocketOperationNone;
692
+ }
693
+ }
694
+
695
+ void
696
+ Selector::select(int timeout)
697
+ {
698
+ if(_selectNow)
699
+ {
700
+ timeout = 0;
701
+ }
702
+ else if(timeout > 0)
703
+ {
704
+ // kpoll and select use seconds, epoll and poll use milliseconds
705
+ #if !defined(ICE_USE_KQUEUE) && !defined(ICE_USE_SELECT)
706
+ timeout = timeout * 1000;
707
+ #endif
708
+ }
709
+ else
710
+ {
711
+ timeout = -1;
712
+ }
713
+
714
+ int spuriousWakeup = 0;
715
+ while(true)
716
+ {
717
+ #if defined(ICE_USE_EPOLL)
718
+ _count = epoll_wait(_queueFd, &_events[0], _events.size(), timeout);
719
+ #elif defined(ICE_USE_KQUEUE)
720
+ assert(!_events.empty());
721
+ if(timeout >= 0)
722
+ {
723
+ struct timespec ts;
724
+ ts.tv_sec = timeout;
725
+ ts.tv_nsec = 0;
726
+ _count = kevent(_queueFd, 0, 0, &_events[0], static_cast<int>(_events.size()), &ts);
727
+ }
728
+ else
729
+ {
730
+ _count = kevent(_queueFd, 0, 0, &_events[0], static_cast<int>(_events.size()), 0);
731
+ }
732
+ #elif defined(ICE_USE_SELECT)
733
+ fd_set* rFdSet = fdSetCopy(_selectedReadFdSet, _readFdSet);
734
+ fd_set* wFdSet = fdSetCopy(_selectedWriteFdSet, _writeFdSet);
735
+ fd_set* eFdSet = fdSetCopy(_selectedErrorFdSet, _errorFdSet);
736
+ if(timeout >= 0)
737
+ {
738
+ struct timeval tv;
739
+ tv.tv_sec = timeout;
740
+ tv.tv_usec = 0;
741
+ _count = ::select(0, rFdSet, wFdSet, eFdSet, &tv); // The first parameter is ignored on Windows
742
+ }
743
+ else
744
+ {
745
+ _count = ::select(0, rFdSet, wFdSet, eFdSet, 0); // The first parameter is ignored on Windows
746
+ }
747
+ #else
748
+ _count = poll(&_pollFdSet[0], _pollFdSet.size(), timeout);
749
+ #endif
750
+
751
+ if(_count == SOCKET_ERROR)
752
+ {
753
+ if(interrupted())
754
+ {
755
+ continue;
756
+ }
757
+
758
+ Ice::SocketException ex(__FILE__, __LINE__, IceInternal::getSocketErrno());
759
+ Ice::Error out(_instance->initializationData().logger);
760
+ out << "selector failed:\n" << ex;
761
+ IceUtil::ThreadControl::sleep(IceUtil::Time::seconds(5)); // Sleep 5s to avoid looping
762
+ }
763
+ else if(_count == 0 && timeout < 0)
764
+ {
765
+ if(++spuriousWakeup > 100)
766
+ {
767
+ spuriousWakeup = 0;
768
+ _instance->initializationData().logger->warning("spurious selector wakeup");
769
+ }
770
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(1));
771
+ continue;
772
+ }
773
+ break;
774
+ }
775
+
776
+ if(_count == 0 && !_selectNow)
777
+ {
778
+ throw SelectorTimeoutException();
779
+ }
780
+ }
781
+
782
+ void
783
+ Selector::checkReady(EventHandler* handler)
784
+ {
785
+ if(handler->_ready & ~handler->_disabled & handler->_registered)
786
+ {
787
+ _readyHandlers.insert(make_pair(ICE_GET_SHARED_FROM_THIS(handler), SocketOperationNone));
788
+ wakeup();
789
+ }
790
+ else
791
+ {
792
+ map<EventHandlerPtr, SocketOperation>::iterator p = _readyHandlers.find(ICE_GET_SHARED_FROM_THIS(handler));
793
+ if(p != _readyHandlers.end())
794
+ {
795
+ _readyHandlers.erase(p);
796
+ }
797
+ }
798
+ }
799
+
800
+ void
801
+ Selector::updateSelector()
802
+ {
803
+ #if defined(ICE_USE_KQUEUE)
804
+ int rs = kevent(_queueFd, &_changes[0], static_cast<int>(_changes.size()),
805
+ &_changes[0], static_cast<int>(_changes.size()), &zeroTimeout);
806
+ if(rs < 0)
807
+ {
808
+ Ice::Error out(_instance->initializationData().logger);
809
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
810
+ }
811
+ else
812
+ {
813
+ for(int i = 0; i < rs; ++i)
814
+ {
815
+ //
816
+ // Check for errors, we ignore EINPROGRESS that started showing up with macOS Sierra
817
+ // and which occurs when another thread removes the FD from the kqueue (see ICE-7419).
818
+ //
819
+ if(_changes[static_cast<size_t>(i)].flags & EV_ERROR &&
820
+ _changes[static_cast<size_t>(i)].data != EINPROGRESS)
821
+ {
822
+ Ice::Error out(_instance->initializationData().logger);
823
+ out << "error while updating selector:\n"
824
+ << IceUtilInternal::errorToString(static_cast<int>(_changes[static_cast<size_t>(i)].data));
825
+ }
826
+ }
827
+ }
828
+ _changes.clear();
829
+ #elif !defined(ICE_USE_EPOLL)
830
+ assert(!_selecting);
831
+
832
+ for(vector<pair<EventHandler*, SocketOperation> >::const_iterator p = _changes.begin(); p != _changes.end(); ++p)
833
+ {
834
+ EventHandler* handler = p->first;
835
+ SocketOperation status = p->second;
836
+
837
+ SOCKET fd = handler->getNativeInfo()->fd();
838
+ if(status)
839
+ {
840
+ #if defined(ICE_USE_SELECT)
841
+ if(status & SocketOperationRead)
842
+ {
843
+ FD_SET(fd, &_readFdSet);
844
+ }
845
+ else
846
+ {
847
+ FD_CLR(fd, &_readFdSet);
848
+ }
849
+ if(status & SocketOperationWrite)
850
+ {
851
+ FD_SET(fd, &_writeFdSet);
852
+ }
853
+ else
854
+ {
855
+ FD_CLR(fd, &_writeFdSet);
856
+ }
857
+ if(status & SocketOperationConnect)
858
+ {
859
+ FD_SET(fd, &_writeFdSet);
860
+ FD_SET(fd, &_errorFdSet);
861
+ }
862
+ else
863
+ {
864
+ FD_CLR(fd, &_writeFdSet);
865
+ FD_CLR(fd, &_errorFdSet);
866
+ }
867
+ _handlers[fd] = handler;
868
+ #else
869
+ short events = 0;
870
+ if(status & SocketOperationRead)
871
+ {
872
+ events |= POLLIN;
873
+ }
874
+ if(status & SocketOperationWrite)
875
+ {
876
+ events |= POLLOUT;
877
+ }
878
+ map<SOCKET, EventHandler*>::const_iterator q = _handlers.find(fd);
879
+ if(q == _handlers.end())
880
+ {
881
+ struct pollfd pollFd;
882
+ pollFd.fd = fd;
883
+ pollFd.events = events;
884
+ pollFd.revents = 0;
885
+ _pollFdSet.push_back(pollFd);
886
+ _handlers.insert(make_pair(fd, handler));
887
+ }
888
+ else
889
+ {
890
+ for(vector<struct pollfd>::iterator r = _pollFdSet.begin(); r != _pollFdSet.end(); ++r)
891
+ {
892
+ if(r->fd == fd)
893
+ {
894
+ r->events = events;
895
+ break;
896
+ }
897
+ }
898
+ }
899
+ #endif
900
+ }
901
+ else
902
+ {
903
+ #if defined(ICE_USE_SELECT)
904
+ FD_CLR(fd, &_readFdSet);
905
+ FD_CLR(fd, &_writeFdSet);
906
+ FD_CLR(fd, &_errorFdSet);
907
+ #else
908
+ for(vector<struct pollfd>::iterator r = _pollFdSet.begin(); r != _pollFdSet.end(); ++r)
909
+ {
910
+ if(r->fd == fd)
911
+ {
912
+ _pollFdSet.erase(r);
913
+ break;
914
+ }
915
+ }
916
+ #endif
917
+ _handlers.erase(fd);
918
+ }
919
+ }
920
+ _changes.clear();
921
+ #endif
922
+ }
923
+
924
+ void
925
+ Selector::updateSelectorForEventHandler(EventHandler* handler,
926
+ ICE_MAYBE_UNUSED SocketOperation remove,
927
+ ICE_MAYBE_UNUSED SocketOperation add)
928
+ {
929
+ #if defined(ICE_USE_EPOLL)
930
+ SocketOperation previous = handler->_registered;
931
+ previous = static_cast<SocketOperation>(previous & ~add);
932
+ previous = static_cast<SocketOperation>(previous | remove);
933
+ SOCKET fd = handler->getNativeInfo()->fd();
934
+ assert(fd != INVALID_SOCKET);
935
+ epoll_event event;
936
+ memset(&event, 0, sizeof(epoll_event));
937
+ event.data.ptr = handler;
938
+ SocketOperation status = handler->_registered;
939
+ if(handler->_disabled)
940
+ {
941
+ status = static_cast<SocketOperation>(status & ~handler->_disabled);
942
+ previous = static_cast<SocketOperation>(previous & ~handler->_disabled);
943
+ }
944
+ if(status & SocketOperationRead)
945
+ {
946
+ event.events |= EPOLLIN;
947
+ }
948
+ if(status & SocketOperationWrite)
949
+ {
950
+ event.events |= EPOLLOUT;
951
+ }
952
+ int op;
953
+ if(!previous && status)
954
+ {
955
+ op = EPOLL_CTL_ADD;
956
+ }
957
+ else if(previous && !status)
958
+ {
959
+ op = EPOLL_CTL_DEL;
960
+ }
961
+ else if(previous == status)
962
+ {
963
+ return;
964
+ }
965
+ else
966
+ {
967
+ op = EPOLL_CTL_MOD;
968
+ }
969
+ if(epoll_ctl(_queueFd, op, fd, &event) != 0)
970
+ {
971
+ Ice::Error out(_instance->initializationData().logger);
972
+ out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
973
+ }
974
+ #elif defined(ICE_USE_KQUEUE)
975
+ SOCKET fd = handler->getNativeInfo()->fd();
976
+ assert(fd != INVALID_SOCKET);
977
+ if(remove & SocketOperationRead)
978
+ {
979
+ struct kevent ev;
980
+ EV_SET(&ev, fd, EVFILT_READ, EV_DELETE, 0, 0, handler);
981
+ _changes.push_back(ev);
982
+ }
983
+ if(remove & SocketOperationWrite)
984
+ {
985
+ struct kevent ev;
986
+ EV_SET(&ev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, handler);
987
+ _changes.push_back(ev);
988
+ }
989
+ if(add & SocketOperationRead)
990
+ {
991
+ struct kevent ev;
992
+ EV_SET(&ev, fd, EVFILT_READ, EV_ADD | (handler->_disabled & SocketOperationRead ? EV_DISABLE : 0), 0, 0,
993
+ handler);
994
+ _changes.push_back(ev);
995
+ }
996
+ if(add & SocketOperationWrite)
997
+ {
998
+ struct kevent ev;
999
+ EV_SET(&ev, fd, EVFILT_WRITE, EV_ADD | (handler->_disabled & SocketOperationWrite ? EV_DISABLE : 0), 0, 0,
1000
+ handler);
1001
+ _changes.push_back(ev);
1002
+ }
1003
+ if(_selecting)
1004
+ {
1005
+ updateSelector();
1006
+ }
1007
+ #else
1008
+ _changes.push_back(make_pair(handler, static_cast<SocketOperation>(handler->_registered & ~handler->_disabled)));
1009
+ wakeup();
1010
+ #endif
1011
+ checkReady(handler);
1012
+ }
1013
+
1014
+ #elif defined(ICE_USE_CFSTREAM)
1015
+
1016
+ namespace
1017
+ {
1018
+
1019
+ void selectorInterrupt(void* info)
1020
+ {
1021
+ reinterpret_cast<Selector*>(info)->processInterrupt();
1022
+ }
1023
+
1024
+ void eventHandlerSocketCallback(CFSocketRef, CFSocketCallBackType callbackType, CFDataRef, const void* d, void* info)
1025
+ {
1026
+ if(callbackType == kCFSocketReadCallBack)
1027
+ {
1028
+ reinterpret_cast<EventHandlerWrapper*>(info)->readyCallback(SocketOperationRead);
1029
+ }
1030
+ else if(callbackType == kCFSocketWriteCallBack)
1031
+ {
1032
+ reinterpret_cast<EventHandlerWrapper*>(info)->readyCallback(SocketOperationWrite);
1033
+ }
1034
+ else if(callbackType == kCFSocketConnectCallBack)
1035
+ {
1036
+ reinterpret_cast<EventHandlerWrapper*>(info)->readyCallback(SocketOperationConnect,
1037
+ d ? *reinterpret_cast<const SInt32*>(d) : 0);
1038
+ }
1039
+ }
1040
+
1041
+ class SelectorHelperThread : public IceUtil::Thread
1042
+ {
1043
+ public:
1044
+
1045
+ SelectorHelperThread(Selector& selector) : _selector(selector)
1046
+ {
1047
+ }
1048
+
1049
+ virtual void run()
1050
+ {
1051
+ _selector.run();
1052
+
1053
+ #if TARGET_IPHONE_SIMULATOR != 0
1054
+ //
1055
+ // Workaround for CFSocket bug where the CFSocketManager thread crashes if an
1056
+ // invalidated socket is being processed for reads/writes. We add this sleep
1057
+ // mostly to prevent spurious crashes with testing. This bug is very unlikely
1058
+ // to be hit otherwise.
1059
+ //
1060
+ IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(100));
1061
+ #endif
1062
+ }
1063
+
1064
+ private:
1065
+
1066
+ Selector& _selector;
1067
+ };
1068
+
1069
+ CFOptionFlags
1070
+ toCFCallbacks(SocketOperation op)
1071
+ {
1072
+ CFOptionFlags cbs = 0;
1073
+ if(op & SocketOperationRead)
1074
+ {
1075
+ cbs |= kCFSocketReadCallBack;
1076
+ }
1077
+ if(op & SocketOperationWrite)
1078
+ {
1079
+ cbs |= kCFSocketWriteCallBack;
1080
+ }
1081
+ if(op & SocketOperationConnect)
1082
+ {
1083
+ cbs |= kCFSocketConnectCallBack;
1084
+ }
1085
+ return cbs;
1086
+ }
1087
+
1088
+ }
1089
+
1090
+ EventHandlerWrapper::EventHandlerWrapper(EventHandler* handler, Selector& selector) :
1091
+ _handler(ICE_GET_SHARED_FROM_THIS(handler)),
1092
+ _streamNativeInfo(StreamNativeInfoPtr::dynamicCast(handler->getNativeInfo())),
1093
+ _selector(selector),
1094
+ _ready(SocketOperationNone),
1095
+ _finish(false)
1096
+ {
1097
+ if(_streamNativeInfo)
1098
+ {
1099
+ _streamNativeInfo->initStreams(this);
1100
+ }
1101
+ else if(handler->getNativeInfo())
1102
+ {
1103
+ SOCKET fd = handler->getNativeInfo()->fd();
1104
+ CFSocketContext ctx = { 0, this, 0, 0, 0 };
1105
+ _socket.reset(CFSocketCreateWithNative(kCFAllocatorDefault,
1106
+ fd,
1107
+ kCFSocketReadCallBack |
1108
+ kCFSocketWriteCallBack |
1109
+ kCFSocketConnectCallBack,
1110
+ eventHandlerSocketCallback,
1111
+ &ctx));
1112
+
1113
+ // Disable automatic re-enabling of callbacks and closing of the native socket.
1114
+ CFSocketSetSocketFlags(_socket.get(), 0);
1115
+ CFSocketDisableCallBacks(_socket.get(), kCFSocketReadCallBack | kCFSocketWriteCallBack | kCFSocketConnectCallBack);
1116
+ _source.reset(CFSocketCreateRunLoopSource(kCFAllocatorDefault, _socket.get(), 0));
1117
+ }
1118
+ }
1119
+
1120
+ EventHandlerWrapper::~EventHandlerWrapper()
1121
+ {
1122
+ }
1123
+
1124
+ void
1125
+ EventHandlerWrapper::updateRunLoop()
1126
+ {
1127
+ SocketOperation op = _handler->_registered;
1128
+ assert(!op || !_finish);
1129
+
1130
+ if(_socket)
1131
+ {
1132
+ CFSocketDisableCallBacks(_socket.get(), kCFSocketReadCallBack | kCFSocketWriteCallBack | kCFSocketConnectCallBack);
1133
+ if(op)
1134
+ {
1135
+ CFSocketEnableCallBacks(_socket.get(), toCFCallbacks(op));
1136
+ }
1137
+
1138
+ if(op && !CFRunLoopContainsSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode))
1139
+ {
1140
+ CFRunLoopAddSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode);
1141
+ }
1142
+ else if(!op && CFRunLoopContainsSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode))
1143
+ {
1144
+ CFRunLoopRemoveSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode);
1145
+ }
1146
+
1147
+ if(_finish)
1148
+ {
1149
+ CFSocketInvalidate(_socket.get());
1150
+ }
1151
+ }
1152
+ else
1153
+ {
1154
+ SocketOperation readyOp = _streamNativeInfo->registerWithRunLoop(op);
1155
+ if(!(op & (SocketOperationWrite | SocketOperationConnect)) || _ready & SocketOperationWrite)
1156
+ {
1157
+ _streamNativeInfo->unregisterFromRunLoop(SocketOperationWrite, false);
1158
+ }
1159
+
1160
+ if(!(op & (SocketOperationRead | SocketOperationConnect)) || _ready & SocketOperationRead)
1161
+ {
1162
+ _streamNativeInfo->unregisterFromRunLoop(SocketOperationRead, false);
1163
+ }
1164
+
1165
+ if(readyOp)
1166
+ {
1167
+ ready(readyOp, 0);
1168
+ }
1169
+
1170
+ if(_finish)
1171
+ {
1172
+ _streamNativeInfo->closeStreams();
1173
+ }
1174
+ }
1175
+ }
1176
+
1177
+ void
1178
+ EventHandlerWrapper::readyCallback(SocketOperation op, int error)
1179
+ {
1180
+ _selector.ready(this, op, error);
1181
+ }
1182
+
1183
+ void
1184
+ EventHandlerWrapper::ready(SocketOperation op, int error)
1185
+ {
1186
+ if(!_socket)
1187
+ {
1188
+ //
1189
+ // Unregister the stream from the runloop as soon as we got the callback. This is
1190
+ // required to allow thread pool thread to perform read/write operations on the
1191
+ // stream (which can't be used from another thread than the run loop thread if
1192
+ // it's registered with a run loop).
1193
+ //
1194
+ op = _streamNativeInfo->unregisterFromRunLoop(op, error != 0);
1195
+ }
1196
+
1197
+ op = static_cast<SocketOperation>(_handler->_registered & op);
1198
+ if(!op || _ready & op)
1199
+ {
1200
+ return;
1201
+ }
1202
+
1203
+ if(_socket)
1204
+ {
1205
+ if(op & SocketOperationConnect)
1206
+ {
1207
+ _streamNativeInfo->setConnectError(error);
1208
+ }
1209
+ }
1210
+
1211
+ _ready = static_cast<SocketOperation>(_ready | op);
1212
+ checkReady();
1213
+ }
1214
+
1215
+ bool
1216
+ EventHandlerWrapper::checkReady()
1217
+ {
1218
+ if((_ready | _handler->_ready) & ~_handler->_disabled & _handler->_registered)
1219
+ {
1220
+ _selector.addReadyHandler(this);
1221
+ return false;
1222
+ }
1223
+ else
1224
+ {
1225
+ return _handler->getNativeInfo() && !_finish;
1226
+ }
1227
+ }
1228
+
1229
+ SocketOperation
1230
+ EventHandlerWrapper::readyOp()
1231
+ {
1232
+ assert(!(~_handler->_registered & _ready));
1233
+ SocketOperation op = static_cast<SocketOperation>(~_handler->_disabled & (_ready | _handler->_ready));
1234
+ _ready = static_cast<SocketOperation>(~op & _ready);
1235
+ return op;
1236
+ }
1237
+
1238
+ bool
1239
+ EventHandlerWrapper::update(SocketOperation remove, SocketOperation add)
1240
+ {
1241
+ SocketOperation previous = _handler->_registered;
1242
+ _handler->_registered = static_cast<SocketOperation>(_handler->_registered & ~remove);
1243
+ _handler->_registered = static_cast<SocketOperation>(_handler->_registered | add);
1244
+ if(previous == _handler->_registered)
1245
+ {
1246
+ return false;
1247
+ }
1248
+
1249
+ // Clear ready flags which might not be valid anymore.
1250
+ _ready = static_cast<SocketOperation>(_ready & _handler->_registered);
1251
+ return _handler->getNativeInfo();
1252
+ }
1253
+
1254
+ bool
1255
+ EventHandlerWrapper::finish()
1256
+ {
1257
+ _finish = true;
1258
+ _ready = SocketOperationNone;
1259
+ _handler->_registered = SocketOperationNone;
1260
+ return _handler->getNativeInfo();
1261
+ }
1262
+
1263
+ Selector::Selector(const InstancePtr& instance) : _instance(instance), _destroyed(false)
1264
+ {
1265
+ CFRunLoopSourceContext ctx;
1266
+ memset(&ctx, 0, sizeof(CFRunLoopSourceContext));
1267
+ ctx.info = this;
1268
+ ctx.perform = selectorInterrupt;
1269
+ _source.reset(CFRunLoopSourceCreate(0, 0, &ctx));
1270
+ _runLoop = 0;
1271
+
1272
+ _thread = new SelectorHelperThread(*this);
1273
+ _thread->start();
1274
+
1275
+ Lock sync(*this);
1276
+ while(!_runLoop)
1277
+ {
1278
+ wait();
1279
+ }
1280
+ }
1281
+
1282
+ Selector::~Selector()
1283
+ {
1284
+ }
1285
+
1286
+ void
1287
+ Selector::destroy()
1288
+ {
1289
+ {
1290
+ Lock sync(*this);
1291
+
1292
+ //
1293
+ // Make sure any pending changes are processed to ensure remaining
1294
+ // streams/sockets are closed.
1295
+ //
1296
+ _destroyed = true;
1297
+ CFRunLoopSourceSignal(_source.get());
1298
+ CFRunLoopWakeUp(_runLoop);
1299
+
1300
+ while(!_changes.empty())
1301
+ {
1302
+ CFRunLoopSourceSignal(_source.get());
1303
+ CFRunLoopWakeUp(_runLoop);
1304
+
1305
+ wait();
1306
+ }
1307
+ }
1308
+
1309
+ _thread->getThreadControl().join();
1310
+ _thread = 0;
1311
+
1312
+ Lock sync(*this);
1313
+ _source.reset(0);
1314
+
1315
+ //assert(_wrappers.empty());
1316
+ _readyHandlers.clear();
1317
+ _selectedHandlers.clear();
1318
+ }
1319
+
1320
+ void
1321
+ Selector::initialize(EventHandler* handler)
1322
+ {
1323
+ Lock sync(*this);
1324
+ _wrappers[handler] = new EventHandlerWrapper(handler, *this);
1325
+ }
1326
+
1327
+ void
1328
+ Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
1329
+ {
1330
+ Lock sync(*this);
1331
+ const EventHandlerWrapperPtr& wrapper = _wrappers[handler];
1332
+ if(wrapper->update(remove, add))
1333
+ {
1334
+ _changes.insert(wrapper);
1335
+ notify();
1336
+ }
1337
+ }
1338
+
1339
+ void
1340
+ Selector::enable(EventHandler* handler, SocketOperation op)
1341
+ {
1342
+ Lock sync(*this);
1343
+ if(!(handler->_disabled & op))
1344
+ {
1345
+ return;
1346
+ }
1347
+ handler->_disabled = static_cast<SocketOperation>(handler->_disabled & ~op);
1348
+
1349
+ if(handler->_registered & op)
1350
+ {
1351
+ _wrappers[handler]->checkReady();
1352
+ }
1353
+ }
1354
+
1355
+ void
1356
+ Selector::disable(EventHandler* handler, SocketOperation op)
1357
+ {
1358
+ Lock sync(*this);
1359
+ if(handler->_disabled & op)
1360
+ {
1361
+ return;
1362
+ }
1363
+ handler->_disabled = static_cast<SocketOperation>(handler->_disabled | op);
1364
+ }
1365
+
1366
+ bool
1367
+ Selector::finish(EventHandler* handler, bool closeNow)
1368
+ {
1369
+ Lock sync(*this);
1370
+ std::map<EventHandler*, EventHandlerWrapperPtr>::iterator p = _wrappers.find(handler);
1371
+ assert(p != _wrappers.end());
1372
+ EventHandlerWrapperPtr wrapper = p->second;
1373
+ if(wrapper->finish())
1374
+ {
1375
+ _changes.insert(wrapper);
1376
+ notify();
1377
+ }
1378
+ _wrappers.erase(p);
1379
+ return closeNow;
1380
+ }
1381
+
1382
+ void
1383
+ Selector::ready(EventHandler* handler, SocketOperation status, bool value)
1384
+ {
1385
+ //
1386
+ // Hold the selector lock across the read-modify-write of handler->_ready. The run-loop thread reads _ready
1387
+ // with this lock held (in startSelect/finishSelect, via EventHandlerWrapper), so updating it without the lock
1388
+ // would be a data race.
1389
+ //
1390
+ Lock sync(*this);
1391
+ if(((handler->_ready & status) != 0) == value)
1392
+ {
1393
+ return; // Nothing to do if ready state already correctly set.
1394
+ }
1395
+
1396
+ if(value)
1397
+ {
1398
+ handler->_ready = static_cast<SocketOperation>(handler->_ready | status);
1399
+ }
1400
+ else
1401
+ {
1402
+ handler->_ready = static_cast<SocketOperation>(handler->_ready & ~status);
1403
+ }
1404
+
1405
+ std::map<EventHandler*, EventHandlerWrapperPtr>::iterator p = _wrappers.find(handler);
1406
+ assert(p != _wrappers.end());
1407
+ p->second->checkReady();
1408
+ }
1409
+
1410
+ void
1411
+ Selector::startSelect()
1412
+ {
1413
+ Lock sync(*this);
1414
+
1415
+ //
1416
+ // Re-enable callbacks for previously selected handlers.
1417
+ //
1418
+ vector<pair<EventHandlerWrapperPtr, SocketOperation> >::const_iterator p;
1419
+ for(p = _selectedHandlers.begin(); p != _selectedHandlers.end(); ++p)
1420
+ {
1421
+ if(p->first->checkReady())
1422
+ {
1423
+ _changes.insert(p->first);
1424
+ }
1425
+ }
1426
+ _selectedHandlers.clear();
1427
+ }
1428
+
1429
+ void
1430
+ Selector::finishSelect(std::vector<std::pair<EventHandler*, SocketOperation> >& handlers)
1431
+ {
1432
+ Lock sync(*this);
1433
+ handlers.clear();
1434
+ for(set<EventHandlerWrapperPtr>::const_iterator p = _readyHandlers.begin(); p != _readyHandlers.end(); ++p)
1435
+ {
1436
+ SocketOperation op = (*p)->readyOp();
1437
+ if(op)
1438
+ {
1439
+ _selectedHandlers.push_back(pair<EventHandlerWrapperPtr, SocketOperation>(*p, op));
1440
+ handlers.push_back(pair<EventHandler*, SocketOperation>((*p)->_handler.get(), op));
1441
+ }
1442
+ }
1443
+ _readyHandlers.clear();
1444
+ }
1445
+
1446
+ void
1447
+ Selector::select(int timeout)
1448
+ {
1449
+ //
1450
+ // Wait for handlers to be ready.
1451
+ //
1452
+ Lock sync(*this);
1453
+ while(!_destroyed)
1454
+ {
1455
+ while(!_changes.empty())
1456
+ {
1457
+ CFRunLoopSourceSignal(_source.get());
1458
+ CFRunLoopWakeUp(_runLoop);
1459
+
1460
+ wait();
1461
+ }
1462
+
1463
+ if(_readyHandlers.empty())
1464
+ {
1465
+ if(timeout > 0)
1466
+ {
1467
+ bool timedOut = !timedWait(IceUtil::Time::seconds(timeout));
1468
+ if(_readyHandlers.empty())
1469
+ {
1470
+ if(timedOut)
1471
+ {
1472
+ throw SelectorTimeoutException(); // Actual timeout
1473
+ }
1474
+ // Signaled but no ready handlers - spurious wakeup, continue waiting
1475
+ continue;
1476
+ }
1477
+ break; // Ready handlers
1478
+ }
1479
+ else
1480
+ {
1481
+ wait();
1482
+ }
1483
+ }
1484
+
1485
+ if(_changes.empty())
1486
+ {
1487
+ break;
1488
+ }
1489
+ }
1490
+ }
1491
+
1492
+ void
1493
+ Selector::processInterrupt()
1494
+ {
1495
+ Lock sync(*this);
1496
+ if(!_changes.empty())
1497
+ {
1498
+ for(set<EventHandlerWrapperPtr>::const_iterator p = _changes.begin(); p != _changes.end(); ++p)
1499
+ {
1500
+ (*p)->updateRunLoop();
1501
+ }
1502
+ _changes.clear();
1503
+ notify();
1504
+ }
1505
+ if(_destroyed)
1506
+ {
1507
+ CFRunLoopStop(_runLoop);
1508
+ }
1509
+ }
1510
+
1511
+ void
1512
+ Selector::run()
1513
+ {
1514
+ {
1515
+ Lock sync(*this);
1516
+ _runLoop = CFRunLoopGetCurrent();
1517
+ notify();
1518
+ }
1519
+
1520
+ CFRunLoopAddSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode);
1521
+ CFRunLoopRun();
1522
+ CFRunLoopRemoveSource(CFRunLoopGetCurrent(), _source.get(), kCFRunLoopDefaultMode);
1523
+ }
1524
+
1525
+ void
1526
+ Selector::ready(EventHandlerWrapper* wrapper, SocketOperation op, int error)
1527
+ {
1528
+ Lock sync(*this);
1529
+ wrapper->ready(op, error);
1530
+ }
1531
+
1532
+ void
1533
+ Selector::addReadyHandler(EventHandlerWrapper* wrapper)
1534
+ {
1535
+ // Called from ready()
1536
+ _readyHandlers.insert(wrapper);
1537
+ if(_readyHandlers.size() == 1)
1538
+ {
1539
+ notify();
1540
+ }
1541
+ }
1542
+
1543
+ #endif