zeroc-ice 3.7.11 → 3.8.1

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 (895) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +159 -376
  3. data/dist/IceRuby/Communicator.h +8 -9
  4. data/dist/IceRuby/Config.h +23 -89
  5. data/dist/IceRuby/Connection.cpp +111 -219
  6. data/dist/IceRuby/Connection.h +8 -12
  7. data/dist/IceRuby/DefaultSliceLoader.cpp +45 -0
  8. data/dist/IceRuby/DefaultSliceLoader.h +25 -0
  9. data/dist/IceRuby/Endpoint.cpp +63 -65
  10. data/dist/IceRuby/Endpoint.h +7 -11
  11. data/dist/IceRuby/ImplicitContext.cpp +26 -31
  12. data/dist/IceRuby/ImplicitContext.h +6 -10
  13. data/dist/IceRuby/Init.cpp +27 -40
  14. data/dist/IceRuby/Logger.cpp +23 -28
  15. data/dist/IceRuby/Logger.h +8 -12
  16. data/dist/IceRuby/Operation.cpp +177 -219
  17. data/dist/IceRuby/Operation.h +15 -18
  18. data/dist/IceRuby/Properties.cpp +133 -89
  19. data/dist/IceRuby/Properties.h +6 -10
  20. data/dist/IceRuby/Proxy.cpp +179 -649
  21. data/dist/IceRuby/Proxy.h +11 -12
  22. data/dist/IceRuby/RubySliceLoader.cpp +39 -0
  23. data/dist/IceRuby/RubySliceLoader.h +27 -0
  24. data/dist/IceRuby/Slice.cpp +88 -94
  25. data/dist/IceRuby/Slice.h +3 -7
  26. data/dist/IceRuby/Types.cpp +987 -1190
  27. data/dist/IceRuby/Types.h +390 -461
  28. data/dist/IceRuby/Util.cpp +214 -473
  29. data/dist/IceRuby/Util.h +378 -479
  30. data/dist/ice/cpp/include/Ice/AsyncResponseHandler.h +85 -0
  31. data/dist/ice/cpp/include/Ice/BatchRequest.h +39 -0
  32. data/dist/ice/cpp/include/Ice/BatchRequestQueueF.h +4 -10
  33. data/dist/ice/cpp/include/Ice/Buffer.h +116 -111
  34. data/dist/ice/cpp/include/Ice/Communicator.h +411 -0
  35. data/dist/ice/cpp/include/Ice/CommunicatorF.h +16 -0
  36. data/dist/ice/cpp/include/Ice/Config.h +46 -62
  37. data/dist/ice/cpp/include/Ice/Connection.h +410 -0
  38. data/dist/ice/cpp/include/Ice/ConnectionF.h +36 -0
  39. data/dist/ice/cpp/include/Ice/ConnectionIF.h +6 -28
  40. data/dist/ice/cpp/include/Ice/CtrlCHandler.h +56 -0
  41. data/dist/ice/cpp/include/Ice/Current.h +60 -0
  42. data/dist/ice/cpp/include/Ice/DefaultSliceLoader.h +160 -0
  43. data/dist/ice/cpp/include/Ice/Demangle.h +17 -0
  44. data/dist/ice/cpp/include/Ice/Endpoint.h +298 -0
  45. data/dist/ice/cpp/include/Ice/EndpointF.h +44 -0
  46. data/dist/ice/cpp/include/Ice/EndpointSelectionType.h +21 -0
  47. data/dist/ice/cpp/include/Ice/Exception.h +46 -151
  48. data/dist/ice/cpp/include/Ice/FacetMap.h +16 -0
  49. data/dist/ice/cpp/include/Ice/Format.h +11 -27
  50. data/dist/ice/cpp/include/Ice/Ice.h +53 -48
  51. data/dist/ice/cpp/include/Ice/IconvStringConverter.h +165 -326
  52. data/dist/ice/cpp/include/Ice/ImplicitContext.h +76 -0
  53. data/dist/ice/cpp/include/Ice/IncomingRequest.h +75 -0
  54. data/dist/ice/cpp/include/Ice/Initialize.h +113 -927
  55. data/dist/ice/cpp/include/Ice/InputStream.h +748 -1320
  56. data/dist/ice/cpp/include/Ice/InstanceF.h +4 -10
  57. data/dist/ice/cpp/include/Ice/Instrumentation.h +319 -0
  58. data/dist/ice/cpp/include/Ice/LocalException.h +58 -0
  59. data/dist/ice/cpp/include/Ice/LocalExceptions.h +870 -0
  60. data/dist/ice/cpp/include/Ice/Logger.h +62 -0
  61. data/dist/ice/cpp/include/Ice/LoggerUtil.h +124 -147
  62. data/dist/ice/cpp/include/Ice/MarshaledResult.h +50 -0
  63. data/dist/ice/cpp/include/Ice/NativePropertiesAdmin.h +41 -71
  64. data/dist/ice/cpp/include/Ice/Object.h +151 -490
  65. data/dist/ice/cpp/include/Ice/ObjectAdapter.h +324 -0
  66. data/dist/ice/cpp/include/Ice/ObjectAdapterF.h +16 -0
  67. data/dist/ice/cpp/include/Ice/ObjectF.h +5 -19
  68. data/dist/ice/cpp/include/Ice/ObserverHelper.h +115 -132
  69. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +392 -748
  70. data/dist/ice/cpp/include/Ice/OutgoingResponse.h +129 -0
  71. data/dist/ice/cpp/include/Ice/OutputStream.h +756 -956
  72. data/dist/ice/cpp/include/Ice/Plugin.h +73 -0
  73. data/dist/ice/cpp/include/Ice/PluginFactory.h +77 -0
  74. data/dist/ice/cpp/include/{IceUtil → Ice}/PopDisableWarnings.h +8 -6
  75. data/dist/ice/cpp/include/Ice/Properties.h +307 -0
  76. data/dist/ice/cpp/include/Ice/PropertiesF.h +19 -0
  77. data/dist/ice/cpp/include/Ice/Proxy.h +665 -5094
  78. data/dist/ice/cpp/include/Ice/ProxyF.h +2 -44
  79. data/dist/ice/cpp/include/Ice/ProxyFunctions.h +209 -0
  80. data/dist/ice/cpp/include/Ice/PushDisableWarnings.h +29 -0
  81. data/dist/ice/cpp/include/Ice/ReferenceF.h +4 -19
  82. data/dist/ice/cpp/include/Ice/RequestHandlerF.h +8 -18
  83. data/dist/ice/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +276 -0
  84. data/dist/ice/cpp/include/Ice/SSL/Config.h +54 -0
  85. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfo.h +107 -0
  86. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfoF.h +39 -0
  87. data/dist/ice/cpp/include/Ice/SSL/EndpointInfo.h +40 -0
  88. data/dist/ice/cpp/include/Ice/SSL/SSLException.h +32 -0
  89. data/dist/ice/cpp/include/Ice/SSL/ServerAuthenticationOptions.h +286 -0
  90. data/dist/ice/cpp/include/Ice/ServantLocator.h +51 -0
  91. data/dist/ice/cpp/include/Ice/Service.h +182 -342
  92. data/dist/ice/cpp/include/Ice/SliceLoader.h +67 -0
  93. data/dist/ice/cpp/include/Ice/SlicedData.h +113 -160
  94. data/dist/ice/cpp/include/Ice/SlicedDataF.h +17 -27
  95. data/dist/ice/cpp/include/Ice/StreamHelpers.h +532 -1070
  96. data/dist/ice/cpp/include/Ice/StreamableTraits.h +291 -0
  97. data/dist/ice/cpp/include/Ice/StringConverter.h +152 -63
  98. data/dist/ice/cpp/include/Ice/StringUtil.h +114 -0
  99. data/dist/ice/cpp/include/Ice/TimerTask.h +24 -0
  100. data/dist/ice/cpp/include/Ice/TupleCompare.h +103 -0
  101. data/dist/ice/cpp/include/Ice/UUID.h +6 -9
  102. data/dist/ice/cpp/include/Ice/UserException.h +46 -0
  103. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +4 -79
  104. data/dist/ice/cpp/include/Ice/Value.h +103 -115
  105. data/dist/ice/cpp/include/Ice/ValueF.h +6 -11
  106. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +16 -1877
  107. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +16 -1185
  108. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +46 -146
  109. data/dist/ice/cpp/include/generated/Ice/Context.h +40 -0
  110. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +49 -93
  111. data/dist/ice/cpp/include/generated/Ice/Identity.h +70 -226
  112. data/dist/ice/cpp/include/generated/Ice/Locator.h +494 -3850
  113. data/dist/ice/cpp/include/generated/Ice/LocatorRegistry.h +443 -0
  114. data/dist/ice/cpp/include/generated/Ice/Metrics.h +937 -4603
  115. data/dist/ice/cpp/include/generated/Ice/OperationMode.h +73 -0
  116. data/dist/ice/cpp/include/generated/Ice/Process.h +197 -929
  117. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +249 -1301
  118. data/dist/ice/cpp/include/generated/Ice/PropertyDict.h +39 -0
  119. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +637 -2620
  120. data/dist/ice/cpp/include/generated/Ice/ReplyStatus.h +94 -0
  121. data/dist/ice/cpp/include/generated/Ice/Router.h +429 -1783
  122. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +18 -65
  123. data/dist/ice/cpp/include/generated/Ice/Version.h +73 -318
  124. data/dist/ice/cpp/include/generated/IceDiscovery/Lookup.h +498 -0
  125. data/dist/ice/cpp/include/generated/IceLocatorDiscovery/Lookup.h +387 -0
  126. data/dist/ice/cpp/src/Ice/Acceptor.h +28 -24
  127. data/dist/ice/cpp/src/Ice/AcceptorF.h +6 -14
  128. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories.h +16 -0
  129. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_all.cpp +43 -0
  130. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_min.cpp +17 -0
  131. data/dist/ice/cpp/src/Ice/ArgVector.cpp +17 -18
  132. data/dist/ice/cpp/src/Ice/ArgVector.h +19 -25
  133. data/dist/ice/cpp/src/Ice/Base64.cpp +66 -66
  134. data/dist/ice/cpp/src/Ice/Base64.h +14 -19
  135. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +70 -121
  136. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +37 -47
  137. data/dist/ice/cpp/src/Ice/Buffer.cpp +73 -41
  138. data/dist/ice/cpp/src/Ice/CheckIdentity.h +21 -0
  139. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +215 -249
  140. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.h +38 -60
  141. data/dist/ice/cpp/src/Ice/Communicator.cpp +399 -0
  142. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.cpp +140 -0
  143. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.h +39 -0
  144. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.cpp +63 -184
  145. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.h +30 -51
  146. data/dist/ice/cpp/src/Ice/ConnectRequestHandlerF.h +4 -14
  147. data/dist/ice/cpp/src/Ice/Connection.cpp +44 -0
  148. data/dist/ice/cpp/src/Ice/ConnectionFactory.cpp +578 -792
  149. data/dist/ice/cpp/src/Ice/ConnectionFactory.h +200 -200
  150. data/dist/ice/cpp/src/Ice/ConnectionFactoryF.h +6 -19
  151. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +1674 -1782
  152. data/dist/ice/cpp/src/Ice/ConnectionI.h +333 -293
  153. data/dist/ice/cpp/src/Ice/ConnectionOptions.h +22 -0
  154. data/dist/ice/cpp/src/Ice/Connector.h +25 -19
  155. data/dist/ice/cpp/src/Ice/ConnectorF.h +4 -11
  156. data/dist/ice/cpp/src/{IceUtil → Ice}/ConsoleUtil.cpp +32 -53
  157. data/dist/ice/cpp/src/Ice/ConsoleUtil.h +79 -0
  158. data/dist/ice/cpp/src/Ice/CtrlCHandler.cpp +189 -0
  159. data/dist/ice/cpp/src/Ice/Current.cpp +29 -0
  160. data/dist/ice/cpp/src/Ice/DLLMain.cpp +25 -35
  161. data/dist/ice/cpp/src/Ice/DefaultSliceLoader.cpp +39 -0
  162. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +41 -119
  163. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.h +27 -41
  164. data/dist/ice/cpp/src/Ice/DefaultsAndOverridesF.h +4 -11
  165. data/dist/ice/cpp/src/Ice/Demangle.cpp +26 -0
  166. data/dist/ice/cpp/src/Ice/DisableWarnings.h +31 -0
  167. data/dist/ice/cpp/src/Ice/DynamicLibrary.cpp +44 -112
  168. data/dist/ice/cpp/src/Ice/DynamicLibrary.h +91 -0
  169. data/dist/ice/cpp/src/Ice/Endian.h +40 -0
  170. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +35 -59
  171. data/dist/ice/cpp/src/Ice/EndpointFactory.h +82 -103
  172. data/dist/ice/cpp/src/Ice/EndpointFactoryF.h +4 -11
  173. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.cpp +54 -87
  174. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.h +28 -33
  175. data/dist/ice/cpp/src/Ice/EndpointFactoryManagerF.h +4 -11
  176. data/dist/ice/cpp/src/Ice/EndpointI.cpp +53 -23
  177. data/dist/ice/cpp/src/Ice/EndpointI.h +132 -200
  178. data/dist/ice/cpp/src/Ice/EndpointIF.h +11 -39
  179. data/dist/ice/cpp/src/Ice/EventHandler.cpp +3 -26
  180. data/dist/ice/cpp/src/Ice/EventHandler.h +46 -56
  181. data/dist/ice/cpp/src/Ice/EventHandlerF.h +4 -14
  182. data/dist/ice/cpp/src/Ice/Exception.cpp +3 -816
  183. data/dist/ice/cpp/src/Ice/FileUtil.cpp +476 -0
  184. data/dist/ice/cpp/src/Ice/FileUtil.h +152 -0
  185. data/dist/ice/cpp/src/Ice/FixedRequestHandler.cpp +34 -0
  186. data/dist/ice/cpp/src/Ice/FixedRequestHandler.h +29 -0
  187. data/dist/ice/cpp/src/Ice/HashUtil.h +46 -32
  188. data/dist/ice/cpp/src/Ice/HttpParser.cpp +431 -431
  189. data/dist/ice/cpp/src/Ice/HttpParser.h +95 -100
  190. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +207 -324
  191. data/dist/ice/cpp/src/Ice/IPEndpointI.h +80 -126
  192. data/dist/ice/cpp/src/Ice/IPEndpointIF.h +6 -17
  193. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.cpp +172 -0
  194. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.h +89 -0
  195. data/dist/ice/cpp/src/Ice/ImplicitContext.cpp +109 -0
  196. data/dist/ice/cpp/src/Ice/IncomingRequest.cpp +66 -0
  197. data/dist/ice/cpp/src/Ice/Initialize.cpp +48 -542
  198. data/dist/ice/cpp/src/Ice/InputStream.cpp +848 -1385
  199. data/dist/ice/cpp/src/Ice/Instance.cpp +816 -827
  200. data/dist/ice/cpp/src/Ice/Instance.h +202 -212
  201. data/dist/ice/cpp/src/Ice/InstrumentationI.cpp +526 -661
  202. data/dist/ice/cpp/src/Ice/InstrumentationI.h +171 -192
  203. data/dist/ice/cpp/src/Ice/LocalException.cpp +518 -0
  204. data/dist/ice/cpp/src/Ice/LocalExceptions.cpp +577 -0
  205. data/dist/ice/cpp/src/Ice/LocatorInfo.cpp +291 -329
  206. data/dist/ice/cpp/src/Ice/LocatorInfo.h +144 -157
  207. data/dist/ice/cpp/src/Ice/LocatorInfoF.h +8 -17
  208. data/dist/ice/cpp/src/Ice/LoggerAdminI.cpp +561 -743
  209. data/dist/ice/cpp/src/Ice/LoggerAdminI.h +18 -28
  210. data/dist/ice/cpp/src/Ice/LoggerI.cpp +66 -91
  211. data/dist/ice/cpp/src/Ice/LoggerI.h +36 -41
  212. data/dist/ice/cpp/src/Ice/LoggerMiddleware.cpp +176 -0
  213. data/dist/ice/cpp/src/Ice/LoggerMiddleware.h +42 -0
  214. data/dist/ice/cpp/src/Ice/LoggerUtil.cpp +14 -38
  215. data/dist/ice/cpp/src/Ice/MarshaledResult.cpp +20 -0
  216. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +194 -280
  217. data/dist/ice/cpp/src/Ice/MetricsAdminI.h +600 -0
  218. data/dist/ice/cpp/src/Ice/MetricsFunctional.h +92 -0
  219. data/dist/ice/cpp/src/Ice/MetricsObserverI.h +587 -0
  220. data/dist/ice/cpp/src/Ice/NativePropertiesAdmin.cpp +185 -0
  221. data/dist/ice/cpp/src/Ice/Network.cpp +595 -917
  222. data/dist/ice/cpp/src/Ice/Network.h +189 -213
  223. data/dist/ice/cpp/src/Ice/NetworkF.h +2 -10
  224. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +99 -104
  225. data/dist/ice/cpp/src/Ice/NetworkProxy.h +49 -54
  226. data/dist/ice/cpp/src/Ice/NetworkProxyF.h +4 -11
  227. data/dist/ice/cpp/src/Ice/OSLogLoggerI.cpp +16 -18
  228. data/dist/ice/cpp/src/Ice/OSLogLoggerI.h +22 -27
  229. data/dist/ice/cpp/src/Ice/Object.cpp +152 -338
  230. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +170 -113
  231. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.h +41 -41
  232. data/dist/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +4 -15
  233. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +580 -727
  234. data/dist/ice/cpp/src/Ice/ObjectAdapterI.h +149 -145
  235. data/dist/ice/cpp/src/Ice/ObserverHelper.cpp +36 -17
  236. data/dist/ice/cpp/src/Ice/ObserverMiddleware.cpp +96 -0
  237. data/dist/ice/cpp/src/Ice/ObserverMiddleware.h +25 -0
  238. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.cpp +147 -187
  239. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.h +56 -64
  240. data/dist/ice/cpp/src/{IceUtil → Ice}/Options.cpp +187 -258
  241. data/dist/ice/cpp/src/Ice/Options.h +119 -0
  242. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +516 -732
  243. data/dist/ice/cpp/src/Ice/OutgoingResponse.cpp +276 -0
  244. data/dist/ice/cpp/src/Ice/OutputStream.cpp +610 -543
  245. data/dist/ice/cpp/src/Ice/OutputUtil.cpp +344 -0
  246. data/dist/ice/cpp/src/Ice/OutputUtil.h +173 -0
  247. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +118 -277
  248. data/dist/ice/cpp/src/Ice/PluginManagerI.h +41 -48
  249. data/dist/ice/cpp/src/Ice/Properties.cpp +931 -0
  250. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +519 -1341
  251. data/dist/ice/cpp/src/Ice/PropertyNames.h +49 -64
  252. data/dist/ice/cpp/src/Ice/PropertyUtil.cpp +103 -0
  253. data/dist/ice/cpp/src/Ice/PropertyUtil.h +31 -0
  254. data/dist/ice/cpp/src/Ice/Protocol.cpp +129 -94
  255. data/dist/ice/cpp/src/Ice/Protocol.h +116 -0
  256. data/dist/ice/cpp/src/Ice/ProtocolInstance.cpp +117 -62
  257. data/dist/ice/cpp/src/Ice/ProtocolInstance.h +63 -82
  258. data/dist/ice/cpp/src/Ice/ProtocolInstanceF.h +4 -11
  259. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +10 -32
  260. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.h +25 -54
  261. data/dist/ice/cpp/src/Ice/Proxy.cpp +294 -1357
  262. data/dist/ice/cpp/src/Ice/ProxyAsync.cpp +684 -0
  263. data/dist/ice/cpp/src/Ice/ProxyFunctions.cpp +90 -0
  264. data/dist/ice/cpp/src/Ice/PushDisableDeprecatedWarnings.h +15 -0
  265. data/dist/ice/cpp/src/Ice/Random.cpp +29 -0
  266. data/dist/ice/cpp/src/Ice/Random.h +23 -0
  267. data/dist/ice/cpp/src/Ice/Reference.cpp +635 -1097
  268. data/dist/ice/cpp/src/Ice/Reference.h +314 -298
  269. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +320 -378
  270. data/dist/ice/cpp/src/Ice/ReferenceFactory.h +48 -66
  271. data/dist/ice/cpp/src/Ice/ReferenceFactoryF.h +4 -9
  272. data/dist/ice/cpp/src/Ice/RequestHandler.cpp +15 -24
  273. data/dist/ice/cpp/src/Ice/RequestHandler.h +43 -68
  274. data/dist/ice/cpp/src/Ice/RequestHandlerCache.cpp +76 -0
  275. data/dist/ice/cpp/src/Ice/RequestHandlerCache.h +33 -0
  276. data/dist/ice/cpp/src/Ice/ResourceConfig.h +27 -0
  277. data/dist/ice/cpp/src/Ice/RetryQueue.cpp +51 -57
  278. data/dist/ice/cpp/src/Ice/RetryQueue.h +39 -46
  279. data/dist/ice/cpp/src/Ice/RetryQueueF.h +4 -9
  280. data/dist/ice/cpp/src/Ice/RouterInfo.cpp +97 -201
  281. data/dist/ice/cpp/src/Ice/RouterInfo.h +61 -118
  282. data/dist/ice/cpp/src/Ice/RouterInfoF.h +6 -14
  283. data/dist/ice/cpp/src/Ice/SHA1.cpp +86 -60
  284. data/dist/ice/cpp/src/Ice/SHA1.h +35 -0
  285. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.cpp +89 -0
  286. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.h +87 -0
  287. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.cpp +521 -0
  288. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.h +40 -0
  289. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngineF.h +13 -0
  290. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp +646 -0
  291. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.h +80 -0
  292. data/dist/ice/cpp/src/{IceSSL → Ice/SSL}/RFC2253.cpp +85 -88
  293. data/dist/ice/cpp/src/Ice/SSL/RFC2253.h +58 -0
  294. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.cpp +124 -0
  295. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.h +52 -0
  296. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.cpp +92 -0
  297. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.h +38 -0
  298. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.cpp +377 -0
  299. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.h +84 -0
  300. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.cpp +115 -0
  301. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.h +69 -0
  302. data/dist/ice/cpp/src/Ice/SSL/SSLEngineF.h +14 -0
  303. data/dist/ice/cpp/src/Ice/SSL/SSLException.cpp +18 -0
  304. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.cpp +27 -0
  305. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.h +26 -0
  306. data/dist/ice/cpp/src/Ice/SSL/SSLInstanceF.h +19 -0
  307. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.cpp +673 -0
  308. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.h +118 -0
  309. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.cpp +1449 -0
  310. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.h +58 -0
  311. data/dist/ice/cpp/src/Ice/SSL/SchannelEngineF.h +18 -0
  312. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.cpp +1088 -0
  313. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.h +118 -0
  314. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.cpp +825 -0
  315. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.h +44 -0
  316. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngineF.h +18 -0
  317. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +621 -0
  318. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.h +91 -0
  319. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.cpp +1048 -0
  320. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.h +40 -0
  321. data/dist/ice/cpp/src/Ice/SSL/TrustManager.cpp +233 -0
  322. data/dist/ice/cpp/src/Ice/SSL/TrustManager.h +42 -0
  323. data/dist/ice/cpp/src/Ice/SSL/TrustManagerF.h +14 -0
  324. data/dist/ice/cpp/src/Ice/ScannerConfig.h +35 -0
  325. data/dist/ice/cpp/src/Ice/Selector.cpp +341 -606
  326. data/dist/ice/cpp/src/Ice/Selector.h +167 -224
  327. data/dist/ice/cpp/src/Ice/ServantManager.cpp +195 -128
  328. data/dist/ice/cpp/src/Ice/ServantManager.h +52 -55
  329. data/dist/ice/cpp/src/Ice/ServantManagerF.h +14 -0
  330. data/dist/ice/cpp/src/Ice/Service.cpp +548 -641
  331. data/dist/ice/cpp/src/Ice/SharedContext.h +13 -26
  332. data/dist/ice/cpp/src/Ice/SliceLoader.cpp +53 -0
  333. data/dist/ice/cpp/src/Ice/SlicedData.cpp +17 -96
  334. data/dist/ice/cpp/src/Ice/StreamSocket.cpp +104 -151
  335. data/dist/ice/cpp/src/Ice/StreamSocket.h +48 -60
  336. data/dist/ice/cpp/src/Ice/StringConverter.cpp +586 -0
  337. data/dist/ice/cpp/src/Ice/StringUtil.cpp +1137 -0
  338. data/dist/ice/cpp/src/Ice/SysLoggerI.cpp +41 -47
  339. data/dist/ice/cpp/src/Ice/SysLoggerI.h +24 -27
  340. data/dist/ice/cpp/src/Ice/SystemdJournalI.cpp +16 -17
  341. data/dist/ice/cpp/src/Ice/SystemdJournalI.h +19 -25
  342. data/dist/ice/cpp/src/Ice/TargetCompare.h +96 -0
  343. data/dist/ice/cpp/src/Ice/TcpAcceptor.cpp +67 -88
  344. data/dist/ice/cpp/src/Ice/TcpAcceptor.h +34 -40
  345. data/dist/ice/cpp/src/Ice/TcpConnector.cpp +42 -41
  346. data/dist/ice/cpp/src/Ice/TcpConnector.h +26 -35
  347. data/dist/ice/cpp/src/Ice/TcpEndpointI.cpp +172 -146
  348. data/dist/ice/cpp/src/Ice/TcpEndpointI.h +76 -80
  349. data/dist/ice/cpp/src/Ice/TcpTransceiver.cpp +38 -26
  350. data/dist/ice/cpp/src/Ice/TcpTransceiver.h +40 -45
  351. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +333 -515
  352. data/dist/ice/cpp/src/Ice/ThreadPool.h +202 -290
  353. data/dist/ice/cpp/src/Ice/ThreadPoolF.h +14 -0
  354. data/dist/ice/cpp/src/Ice/TimeUtil.cpp +47 -0
  355. data/dist/ice/cpp/src/Ice/TimeUtil.h +21 -0
  356. data/dist/ice/cpp/src/Ice/Timer.cpp +73 -167
  357. data/dist/ice/cpp/src/Ice/Timer.h +212 -0
  358. data/dist/ice/cpp/src/Ice/TraceLevels.cpp +11 -29
  359. data/dist/ice/cpp/src/Ice/TraceLevels.h +22 -28
  360. data/dist/ice/cpp/src/Ice/TraceLevelsF.h +4 -11
  361. data/dist/ice/cpp/src/Ice/TraceUtil.cpp +136 -215
  362. data/dist/ice/cpp/src/Ice/TraceUtil.h +27 -16
  363. data/dist/ice/cpp/src/Ice/Transceiver.cpp +3 -7
  364. data/dist/ice/cpp/src/Ice/Transceiver.h +35 -32
  365. data/dist/ice/cpp/src/Ice/TransceiverF.h +10 -20
  366. data/dist/ice/cpp/src/Ice/UUID.cpp +79 -0
  367. data/dist/ice/cpp/src/Ice/UdpConnector.cpp +39 -39
  368. data/dist/ice/cpp/src/Ice/UdpConnector.h +27 -36
  369. data/dist/ice/cpp/src/Ice/UdpEndpointI.cpp +178 -213
  370. data/dist/ice/cpp/src/Ice/UdpEndpointI.h +82 -85
  371. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +201 -221
  372. data/dist/ice/cpp/src/Ice/UdpTransceiver.h +68 -74
  373. data/dist/ice/cpp/{include/IceUtil → src/Ice}/UndefSysMacros.h +12 -12
  374. data/dist/ice/cpp/src/Ice/UniqueRef.h +77 -0
  375. data/dist/ice/cpp/src/Ice/UserException.cpp +58 -0
  376. data/dist/ice/cpp/src/Ice/Value.cpp +107 -38
  377. data/dist/ice/cpp/src/Ice/WSAcceptor.cpp +10 -15
  378. data/dist/ice/cpp/src/Ice/WSAcceptor.h +31 -37
  379. data/dist/ice/cpp/src/Ice/WSConnector.cpp +25 -40
  380. data/dist/ice/cpp/src/Ice/WSConnector.h +26 -33
  381. data/dist/ice/cpp/src/Ice/WSEndpoint.cpp +164 -217
  382. data/dist/ice/cpp/src/Ice/WSEndpoint.h +72 -83
  383. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +469 -458
  384. data/dist/ice/cpp/src/Ice/WSTransceiver.h +117 -123
  385. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +20 -29
  386. data/dist/ice/cpp/src/Ice/generated/Context.cpp +40 -0
  387. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +20 -31
  388. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +24 -34
  389. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +454 -1744
  390. data/dist/ice/cpp/src/Ice/generated/LocatorRegistry.cpp +577 -0
  391. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +824 -1971
  392. data/dist/ice/cpp/src/Ice/generated/OperationMode.cpp +56 -0
  393. data/dist/ice/cpp/src/Ice/generated/Process.cpp +190 -331
  394. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +289 -449
  395. data/dist/ice/cpp/src/Ice/generated/PropertyDict.cpp +40 -0
  396. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +547 -867
  397. data/dist/ice/cpp/src/Ice/generated/ReplyStatus.cpp +70 -0
  398. data/dist/ice/cpp/src/Ice/generated/Router.cpp +406 -723
  399. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +19 -29
  400. data/dist/ice/cpp/src/Ice/generated/Version.cpp +28 -31
  401. data/dist/ice/cpp/src/IceDiscovery/LocatorI.cpp +76 -139
  402. data/dist/ice/cpp/src/IceDiscovery/LocatorI.h +55 -96
  403. data/dist/ice/cpp/src/IceDiscovery/LookupI.cpp +190 -303
  404. data/dist/ice/cpp/src/IceDiscovery/LookupI.h +126 -185
  405. data/dist/ice/cpp/src/IceDiscovery/PluginI.cpp +56 -77
  406. data/dist/ice/cpp/src/IceDiscovery/PluginI.h +20 -25
  407. data/dist/ice/cpp/src/IceDiscovery/generated/Lookup.cpp +638 -0
  408. data/dist/ice/cpp/src/IceLocatorDiscovery/Plugin.h +14 -37
  409. data/dist/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +411 -649
  410. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/Lookup.cpp +468 -0
  411. data/dist/ice/cpp/src/Slice/DeprecationReporter.cpp +172 -0
  412. data/dist/ice/cpp/src/Slice/DeprecationReporter.h +14 -0
  413. data/dist/ice/cpp/src/Slice/DocCommentParser.cpp +736 -0
  414. data/dist/ice/cpp/src/Slice/DocCommentParser.h +61 -0
  415. data/dist/ice/cpp/src/Slice/FileTracker.cpp +25 -75
  416. data/dist/ice/cpp/src/Slice/FileTracker.h +35 -56
  417. data/dist/ice/cpp/src/Slice/Grammar.cpp +2711 -3382
  418. data/dist/ice/cpp/src/Slice/Grammar.h +95 -75
  419. data/dist/ice/cpp/src/Slice/GrammarUtil.h +117 -217
  420. data/dist/ice/cpp/src/Slice/MetadataValidation.cpp +486 -0
  421. data/dist/ice/cpp/src/Slice/MetadataValidation.h +106 -0
  422. data/dist/ice/cpp/src/Slice/Parser.cpp +3068 -5223
  423. data/dist/ice/cpp/src/Slice/Parser.h +1086 -1065
  424. data/dist/ice/cpp/src/Slice/Preprocessor.cpp +97 -599
  425. data/dist/ice/cpp/src/Slice/Preprocessor.h +26 -42
  426. data/dist/ice/cpp/src/Slice/Scanner.cpp +1562 -924
  427. data/dist/ice/cpp/src/Slice/SliceUtil.cpp +517 -113
  428. data/dist/ice/cpp/src/Slice/StringLiteralUtil.cpp +254 -269
  429. data/dist/ice/cpp/src/Slice/Util.h +126 -35
  430. data/dist/ice/cpp/src/slice2rb/Main.cpp +13 -15
  431. data/dist/ice/cpp/src/slice2rb/Ruby.cpp +250 -0
  432. data/dist/ice/cpp/src/slice2rb/RubyUtil.cpp +1197 -0
  433. data/dist/ice/cpp/src/slice2rb/RubyUtil.h +56 -0
  434. data/dist/ice/slice/Glacier2/Metrics.ice +34 -75
  435. data/dist/ice/slice/Glacier2/PermissionsVerifier.ice +42 -98
  436. data/dist/ice/slice/Glacier2/Router.ice +80 -173
  437. data/dist/ice/slice/Glacier2/SSLInfo.ice +23 -40
  438. data/dist/ice/slice/Glacier2/Session.ice +120 -261
  439. data/dist/ice/slice/Ice/BuiltinSequences.ice +33 -38
  440. data/dist/ice/slice/Ice/Context.ice +24 -0
  441. data/dist/ice/slice/Ice/EndpointTypes.ice +35 -33
  442. data/dist/ice/slice/Ice/Identity.ice +24 -63
  443. data/dist/ice/slice/Ice/Locator.ice +61 -226
  444. data/dist/ice/slice/Ice/LocatorRegistry.ice +77 -0
  445. data/dist/ice/slice/Ice/Metrics.ice +189 -424
  446. data/dist/ice/slice/Ice/OperationMode.ice +38 -0
  447. data/dist/ice/slice/Ice/Process.ice +16 -52
  448. data/dist/ice/slice/Ice/PropertiesAdmin.ice +25 -75
  449. data/dist/ice/slice/Ice/PropertyDict.ice +23 -0
  450. data/dist/ice/slice/Ice/RemoteLogger.ice +113 -213
  451. data/dist/ice/slice/Ice/ReplyStatus.ice +65 -0
  452. data/dist/ice/slice/Ice/Router.ice +42 -91
  453. data/dist/ice/slice/Ice/SliceChecksumDict.ice +7 -25
  454. data/dist/ice/slice/Ice/Version.ice +31 -39
  455. data/dist/ice/slice/IceBox/ServiceManager.ice +79 -0
  456. data/dist/ice/slice/IceGrid/Admin.ice +942 -1918
  457. data/dist/ice/slice/IceGrid/Descriptor.ice +476 -1051
  458. data/dist/ice/slice/IceGrid/Exception.ice +86 -384
  459. data/dist/ice/slice/IceGrid/FileParser.ice +23 -59
  460. data/dist/ice/slice/IceGrid/Registry.ice +117 -256
  461. data/dist/ice/slice/IceGrid/Session.ice +46 -110
  462. data/dist/ice/slice/IceGrid/UserAccountMapper.ice +22 -57
  463. data/dist/ice/slice/IceStorm/IceStorm.ice +173 -401
  464. data/dist/ice/slice/IceStorm/Metrics.ice +28 -70
  465. data/dist/lib/Glacier2/Metrics.rb +16 -31
  466. data/dist/lib/Glacier2/PermissionsVerifier.rb +18 -50
  467. data/dist/lib/Glacier2/Router.rb +20 -42
  468. data/dist/lib/Glacier2/SSLInfo.rb +14 -22
  469. data/dist/lib/Glacier2/Session.rb +53 -113
  470. data/dist/lib/Glacier2.rb +6 -6
  471. data/dist/lib/Ice/BuiltinSequences.rb +14 -26
  472. data/dist/lib/Ice/CompressBatch.rb +50 -0
  473. data/dist/lib/Ice/Context.rb +12 -0
  474. data/dist/lib/Ice/EndpointSelectionType.rb +49 -0
  475. data/dist/lib/Ice/EndpointTypes.rb +14 -55
  476. data/dist/lib/Ice/Exception.rb +20 -0
  477. data/dist/lib/Ice/Identity.rb +10 -26
  478. data/dist/lib/Ice/IdentitySpaceship.rb +16 -0
  479. data/dist/lib/Ice/InitializationData.rb +12 -0
  480. data/dist/lib/Ice/LocalExceptions.rb +168 -0
  481. data/dist/lib/Ice/Locator.rb +21 -134
  482. data/dist/lib/Ice/LocatorRegistry.rb +73 -0
  483. data/dist/lib/Ice/Metrics.rb +85 -132
  484. data/dist/lib/Ice/OperationMode.rb +58 -0
  485. data/dist/lib/Ice/Process.rb +12 -31
  486. data/dist/lib/Ice/PropertiesAdmin.rb +12 -36
  487. data/dist/lib/Ice/PropertyDict.rb +12 -0
  488. data/dist/lib/Ice/Proxy.rb +85 -0
  489. data/dist/lib/Ice/ProxyFunctions.rb +69 -0
  490. data/dist/lib/Ice/RemoteLogger.rb +29 -60
  491. data/dist/lib/Ice/ReplyStatus.rb +65 -0
  492. data/dist/lib/Ice/Router.rb +19 -47
  493. data/dist/lib/Ice/SliceChecksumDict.rb +5 -17
  494. data/dist/lib/Ice/SliceUtil.rb +41 -0
  495. data/dist/lib/Ice/Struct.rb +11 -0
  496. data/dist/lib/Ice/ToStringMode.rb +50 -0
  497. data/dist/lib/Ice/Value.rb +93 -0
  498. data/dist/lib/Ice/Version.rb +12 -24
  499. data/dist/lib/Ice.rb +29 -665
  500. data/dist/lib/IceBox/ServiceManager.rb +104 -0
  501. data/dist/lib/IceBox.rb +2 -4
  502. data/dist/lib/IceGrid/Admin.rb +303 -291
  503. data/dist/lib/IceGrid/Descriptor.rb +147 -192
  504. data/dist/lib/IceGrid/Exception.rb +26 -257
  505. data/dist/lib/IceGrid/FileParser.rb +12 -36
  506. data/dist/lib/IceGrid/Registry.rb +35 -76
  507. data/dist/lib/IceGrid/Session.rb +19 -34
  508. data/dist/lib/IceGrid/UserAccountMapper.rb +11 -34
  509. data/dist/lib/IceGrid.rb +3 -3
  510. data/dist/lib/IceStorm/IceStorm.rb +51 -132
  511. data/dist/lib/IceStorm/Metrics.rb +19 -37
  512. data/dist/lib/IceStorm.rb +3 -5
  513. data/extconf.rb +6 -8
  514. data/ice.gemspec +3 -3
  515. data/scripts/slice2rb +1 -3
  516. metadata +206 -386
  517. data/dist/IceRuby/ValueFactoryManager.cpp +0 -445
  518. data/dist/IceRuby/ValueFactoryManager.h +0 -95
  519. data/dist/ice/cpp/include/Ice/Application.h +0 -326
  520. data/dist/ice/cpp/include/Ice/AsyncResult.h +0 -155
  521. data/dist/ice/cpp/include/Ice/AsyncResultF.h +0 -23
  522. data/dist/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -75
  523. data/dist/ice/cpp/include/Ice/CommunicatorAsync.h +0 -154
  524. data/dist/ice/cpp/include/Ice/Comparable.h +0 -205
  525. data/dist/ice/cpp/include/Ice/ConnectionAsync.h +0 -302
  526. data/dist/ice/cpp/include/Ice/ConsoleUtil.h +0 -23
  527. data/dist/ice/cpp/include/Ice/DefaultValueFactory.h +0 -57
  528. data/dist/ice/cpp/include/Ice/DispatchInterceptor.h +0 -41
  529. data/dist/ice/cpp/include/Ice/Dispatcher.h +0 -67
  530. data/dist/ice/cpp/include/Ice/DynamicLibrary.h +0 -102
  531. data/dist/ice/cpp/include/Ice/DynamicLibraryF.h +0 -24
  532. data/dist/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  533. data/dist/ice/cpp/include/Ice/FactoryTable.h +0 -73
  534. data/dist/ice/cpp/include/Ice/FactoryTableInit.h +0 -84
  535. data/dist/ice/cpp/include/Ice/Functional.h +0 -140
  536. data/dist/ice/cpp/include/Ice/GCObject.h +0 -76
  537. data/dist/ice/cpp/include/Ice/Handle.h +0 -182
  538. data/dist/ice/cpp/include/Ice/Incoming.h +0 -225
  539. data/dist/ice/cpp/include/Ice/IncomingAsync.h +0 -186
  540. data/dist/ice/cpp/include/Ice/IncomingAsyncF.h +0 -36
  541. data/dist/ice/cpp/include/Ice/InterfaceByValue.h +0 -57
  542. data/dist/ice/cpp/include/Ice/LocalObject.h +0 -35
  543. data/dist/ice/cpp/include/Ice/LocalObjectF.h +0 -21
  544. data/dist/ice/cpp/include/Ice/MetricsAdminI.h +0 -715
  545. data/dist/ice/cpp/include/Ice/MetricsFunctional.h +0 -159
  546. data/dist/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  547. data/dist/ice/cpp/include/Ice/Optional.h +0 -1114
  548. data/dist/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -39
  549. data/dist/ice/cpp/include/Ice/Protocol.h +0 -274
  550. data/dist/ice/cpp/include/Ice/ProxyFactoryF.h +0 -21
  551. data/dist/ice/cpp/include/Ice/ProxyHandle.h +0 -318
  552. data/dist/ice/cpp/include/Ice/RegisterPlugins.h +0 -127
  553. data/dist/ice/cpp/include/Ice/ResponseHandlerF.h +0 -25
  554. data/dist/ice/cpp/include/Ice/SHA1.h +0 -40
  555. data/dist/ice/cpp/include/Ice/ServantManagerF.h +0 -21
  556. data/dist/ice/cpp/include/Ice/SliceChecksums.h +0 -33
  557. data/dist/ice/cpp/include/Ice/ThreadPoolF.h +0 -23
  558. data/dist/ice/cpp/include/Ice/UniquePtr.h +0 -95
  559. data/dist/ice/cpp/include/Ice/UniqueRef.h +0 -97
  560. data/dist/ice/cpp/include/IceSSL/Config.h +0 -21
  561. data/dist/ice/cpp/include/IceSSL/IceSSL.h +0 -24
  562. data/dist/ice/cpp/include/IceSSL/OpenSSL.h +0 -147
  563. data/dist/ice/cpp/include/IceSSL/Plugin.h +0 -712
  564. data/dist/ice/cpp/include/IceSSL/SChannel.h +0 -72
  565. data/dist/ice/cpp/include/IceSSL/SecureTransport.h +0 -72
  566. data/dist/ice/cpp/include/IceUtil/Atomic.h +0 -179
  567. data/dist/ice/cpp/include/IceUtil/Cond.h +0 -317
  568. data/dist/ice/cpp/include/IceUtil/Config.h +0 -392
  569. data/dist/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -92
  570. data/dist/ice/cpp/include/IceUtil/CountDownLatch.h +0 -45
  571. data/dist/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -96
  572. data/dist/ice/cpp/include/IceUtil/DisableWarnings.h +0 -44
  573. data/dist/ice/cpp/include/IceUtil/Exception.h +0 -394
  574. data/dist/ice/cpp/include/IceUtil/FileUtil.h +0 -140
  575. data/dist/ice/cpp/include/IceUtil/Functional.h +0 -389
  576. data/dist/ice/cpp/include/IceUtil/Handle.h +0 -261
  577. data/dist/ice/cpp/include/IceUtil/IceUtil.h +0 -40
  578. data/dist/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  579. data/dist/ice/cpp/include/IceUtil/Iterator.h +0 -31
  580. data/dist/ice/cpp/include/IceUtil/Lock.h +0 -128
  581. data/dist/ice/cpp/include/IceUtil/Monitor.h +0 -243
  582. data/dist/ice/cpp/include/IceUtil/Mutex.h +0 -349
  583. data/dist/ice/cpp/include/IceUtil/MutexProtocol.h +0 -23
  584. data/dist/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -78
  585. data/dist/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -77
  586. data/dist/ice/cpp/include/IceUtil/Optional.h +0 -433
  587. data/dist/ice/cpp/include/IceUtil/Options.h +0 -135
  588. data/dist/ice/cpp/include/IceUtil/OutputUtil.h +0 -383
  589. data/dist/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -33
  590. data/dist/ice/cpp/include/IceUtil/Random.h +0 -55
  591. data/dist/ice/cpp/include/IceUtil/RecMutex.h +0 -107
  592. data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
  593. data/dist/ice/cpp/include/IceUtil/ScannerConfig.h +0 -40
  594. data/dist/ice/cpp/include/IceUtil/ScopedArray.h +0 -98
  595. data/dist/ice/cpp/include/IceUtil/Shared.h +0 -127
  596. data/dist/ice/cpp/include/IceUtil/StopWatch.h +0 -49
  597. data/dist/ice/cpp/include/IceUtil/StringConverter.h +0 -195
  598. data/dist/ice/cpp/include/IceUtil/StringUtil.h +0 -97
  599. data/dist/ice/cpp/include/IceUtil/Thread.h +0 -160
  600. data/dist/ice/cpp/include/IceUtil/ThreadException.h +0 -94
  601. data/dist/ice/cpp/include/IceUtil/Time.h +0 -205
  602. data/dist/ice/cpp/include/IceUtil/Timer.h +0 -153
  603. data/dist/ice/cpp/include/IceUtil/UUID.h +0 -21
  604. data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +0 -475
  605. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +0 -1430
  606. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +0 -147
  607. data/dist/ice/cpp/include/generated/Glacier2/Router.h +0 -3260
  608. data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +0 -125
  609. data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +0 -223
  610. data/dist/ice/cpp/include/generated/Glacier2/Session.h +0 -5894
  611. data/dist/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  612. data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  613. data/dist/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  614. data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  615. data/dist/ice/cpp/include/generated/Ice/Current.h +0 -322
  616. data/dist/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  617. data/dist/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  618. data/dist/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  619. data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  620. data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  621. data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  622. data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  623. data/dist/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  624. data/dist/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  625. data/dist/ice/cpp/include/generated/Ice/Logger.h +0 -237
  626. data/dist/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  627. data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  628. data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  629. data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  630. data/dist/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  631. data/dist/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  632. data/dist/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  633. data/dist/ice/cpp/include/generated/Ice/Properties.h +0 -452
  634. data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  635. data/dist/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  636. data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  637. data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  638. data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  639. data/dist/ice/cpp/include/generated/IceBox/IceBox.h +0 -3269
  640. data/dist/ice/cpp/include/generated/IceGrid/Admin.h +0 -33773
  641. data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +0 -5254
  642. data/dist/ice/cpp/include/generated/IceGrid/Exception.h +0 -2834
  643. data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +0 -824
  644. data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +0 -635
  645. data/dist/ice/cpp/include/generated/IceGrid/Registry.h +0 -5089
  646. data/dist/ice/cpp/include/generated/IceGrid/Session.h +0 -2240
  647. data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +0 -800
  648. data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +0 -325
  649. data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +0 -2891
  650. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  651. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  652. data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  653. data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +0 -6627
  654. data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +0 -665
  655. data/dist/ice/cpp/src/Ice/ACM.cpp +0 -380
  656. data/dist/ice/cpp/src/Ice/ACM.h +0 -119
  657. data/dist/ice/cpp/src/Ice/ACMF.h +0 -30
  658. data/dist/ice/cpp/src/Ice/Acceptor.cpp +0 -16
  659. data/dist/ice/cpp/src/Ice/Application.cpp +0 -661
  660. data/dist/ice/cpp/src/Ice/AsyncResult.cpp +0 -70
  661. data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  662. data/dist/ice/cpp/src/Ice/CommunicatorI.h +0 -167
  663. data/dist/ice/cpp/src/Ice/Cond.cpp +0 -381
  664. data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -73
  665. data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -41
  666. data/dist/ice/cpp/src/Ice/Connector.cpp +0 -16
  667. data/dist/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
  668. data/dist/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -37
  669. data/dist/ice/cpp/src/Ice/FactoryTable.cpp +0 -162
  670. data/dist/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -88
  671. data/dist/ice/cpp/src/Ice/GCObject.cpp +0 -442
  672. data/dist/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -51
  673. data/dist/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -655
  674. data/dist/ice/cpp/src/Ice/ImplicitContextI.h +0 -48
  675. data/dist/ice/cpp/src/Ice/Incoming.cpp +0 -795
  676. data/dist/ice/cpp/src/Ice/IncomingAsync.cpp +0 -230
  677. data/dist/ice/cpp/src/Ice/IncomingRequest.h +0 -33
  678. data/dist/ice/cpp/src/Ice/LocalObject.cpp +0 -23
  679. data/dist/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -8
  680. data/dist/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -265
  681. data/dist/ice/cpp/src/Ice/PropertiesAdminI.h +0 -64
  682. data/dist/ice/cpp/src/Ice/PropertiesI.cpp +0 -739
  683. data/dist/ice/cpp/src/Ice/PropertiesI.h +0 -70
  684. data/dist/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -21
  685. data/dist/ice/cpp/src/Ice/ProxyFactory.cpp +0 -300
  686. data/dist/ice/cpp/src/Ice/ProxyFactory.h +0 -57
  687. data/dist/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -38
  688. data/dist/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -20
  689. data/dist/ice/cpp/src/Ice/ReplyStatus.h +0 -24
  690. data/dist/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -77
  691. data/dist/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -37
  692. data/dist/ice/cpp/src/Ice/ResponseHandler.cpp +0 -12
  693. data/dist/ice/cpp/src/Ice/ResponseHandler.h +0 -43
  694. data/dist/ice/cpp/src/Ice/SliceChecksums.cpp +0 -75
  695. data/dist/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -192
  696. data/dist/ice/cpp/src/Ice/StringUtil.h +0 -30
  697. data/dist/ice/cpp/src/Ice/Thread.cpp +0 -569
  698. data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -61
  699. data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -37
  700. data/dist/ice/cpp/src/Ice/VirtualShared.h +0 -38
  701. data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +0 -79
  702. data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +0 -61
  703. data/dist/ice/cpp/src/Ice/generated/Connection.cpp +0 -155
  704. data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +0 -61
  705. data/dist/ice/cpp/src/Ice/generated/Current.cpp +0 -62
  706. data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +0 -147
  707. data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +0 -61
  708. data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +0 -49
  709. data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +0 -75
  710. data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +0 -61
  711. data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +0 -188
  712. data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +0 -66
  713. data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +0 -3262
  714. data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +0 -63
  715. data/dist/ice/cpp/src/Ice/generated/Logger.cpp +0 -73
  716. data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +0 -61
  717. data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +0 -79
  718. data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +0 -61
  719. data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +0 -75
  720. data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +0 -87
  721. data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +0 -61
  722. data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +0 -63
  723. data/dist/ice/cpp/src/Ice/generated/Properties.cpp +0 -78
  724. data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +0 -63
  725. data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +0 -63
  726. data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +0 -75
  727. data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +0 -61
  728. data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +0 -83
  729. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.cpp +0 -154
  730. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.h +0 -49
  731. data/dist/ice/cpp/src/Ice/ios/StreamConnector.cpp +0 -146
  732. data/dist/ice/cpp/src/Ice/ios/StreamConnector.h +0 -52
  733. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.cpp +0 -477
  734. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.h +0 -156
  735. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.cpp +0 -570
  736. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.h +0 -93
  737. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +0 -1889
  738. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +0 -915
  739. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  740. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +0 -730
  741. data/dist/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -105
  742. data/dist/ice/cpp/src/IceSSL/AcceptorI.h +0 -52
  743. data/dist/ice/cpp/src/IceSSL/CertificateI.cpp +0 -301
  744. data/dist/ice/cpp/src/IceSSL/CertificateI.h +0 -64
  745. data/dist/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -102
  746. data/dist/ice/cpp/src/IceSSL/ConnectorI.h +0 -44
  747. data/dist/ice/cpp/src/IceSSL/EndpointI.cpp +0 -372
  748. data/dist/ice/cpp/src/IceSSL/EndpointI.h +0 -100
  749. data/dist/ice/cpp/src/IceSSL/Instance.cpp +0 -28
  750. data/dist/ice/cpp/src/IceSSL/Instance.h +0 -37
  751. data/dist/ice/cpp/src/IceSSL/InstanceF.h +0 -33
  752. data/dist/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -688
  753. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  754. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -59
  755. data/dist/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -27
  756. data/dist/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -127
  757. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  758. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -90
  759. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  760. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -58
  761. data/dist/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  762. data/dist/ice/cpp/src/IceSSL/PluginI.h +0 -67
  763. data/dist/ice/cpp/src/IceSSL/RFC2253.h +0 -62
  764. data/dist/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -721
  765. data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  766. data/dist/ice/cpp/src/IceSSL/SChannelEngine.h +0 -123
  767. data/dist/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -31
  768. data/dist/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -73
  769. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  770. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -133
  771. data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  772. data/dist/ice/cpp/src/IceSSL/SSLEngine.h +0 -100
  773. data/dist/ice/cpp/src/IceSSL/SSLEngineF.h +0 -21
  774. data/dist/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -999
  775. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  776. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  777. data/dist/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -29
  778. data/dist/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -75
  779. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  780. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -92
  781. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  782. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -45
  783. data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  784. data/dist/ice/cpp/src/IceSSL/TrustManager.h +0 -46
  785. data/dist/ice/cpp/src/IceSSL/TrustManagerF.h +0 -21
  786. data/dist/ice/cpp/src/IceSSL/Util.cpp +0 -192
  787. data/dist/ice/cpp/src/IceSSL/Util.h +0 -99
  788. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +0 -75
  789. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +0 -61
  790. data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +0 -75
  791. data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  792. data/dist/ice/cpp/src/IceUtil/ConvertUTF.h +0 -147
  793. data/dist/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -259
  794. data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
  795. data/dist/ice/cpp/src/IceUtil/InputUtil.cpp +0 -36
  796. data/dist/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -19
  797. data/dist/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -609
  798. data/dist/ice/cpp/src/IceUtil/Random.cpp +0 -180
  799. data/dist/ice/cpp/src/IceUtil/RecMutex.cpp +0 -238
  800. data/dist/ice/cpp/src/IceUtil/Shared.cpp +0 -71
  801. data/dist/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  802. data/dist/ice/cpp/src/IceUtil/StringUtil.cpp +0 -1135
  803. data/dist/ice/cpp/src/IceUtil/ThreadException.cpp +0 -130
  804. data/dist/ice/cpp/src/IceUtil/Time.cpp +0 -307
  805. data/dist/ice/cpp/src/IceUtil/UUID.cpp +0 -165
  806. data/dist/ice/cpp/src/IceUtil/Unicode.cpp +0 -183
  807. data/dist/ice/cpp/src/IceUtil/Unicode.h +0 -43
  808. data/dist/ice/cpp/src/IceUtil/UtilException.cpp +0 -839
  809. data/dist/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -1810
  810. data/dist/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -72
  811. data/dist/ice/cpp/src/Slice/Checksum.cpp +0 -447
  812. data/dist/ice/cpp/src/Slice/Checksum.h +0 -21
  813. data/dist/ice/cpp/src/Slice/JavaUtil.cpp +0 -5183
  814. data/dist/ice/cpp/src/Slice/JavaUtil.h +0 -407
  815. data/dist/ice/cpp/src/Slice/MD5.cpp +0 -52
  816. data/dist/ice/cpp/src/Slice/MD5.h +0 -39
  817. data/dist/ice/cpp/src/Slice/MD5I.cpp +0 -393
  818. data/dist/ice/cpp/src/Slice/MD5I.h +0 -91
  819. data/dist/ice/cpp/src/Slice/PHPUtil.cpp +0 -157
  820. data/dist/ice/cpp/src/Slice/PHPUtil.h +0 -36
  821. data/dist/ice/cpp/src/Slice/Python.cpp +0 -830
  822. data/dist/ice/cpp/src/Slice/PythonUtil.cpp +0 -3439
  823. data/dist/ice/cpp/src/Slice/PythonUtil.h +0 -70
  824. data/dist/ice/cpp/src/Slice/Ruby.cpp +0 -350
  825. data/dist/ice/cpp/src/Slice/RubyUtil.cpp +0 -1571
  826. data/dist/ice/cpp/src/Slice/RubyUtil.h +0 -49
  827. data/dist/ice/slice/Glacier2/PermissionsVerifierF.ice +0 -30
  828. data/dist/ice/slice/Glacier2/RouterF.ice +0 -29
  829. data/dist/ice/slice/Ice/Communicator.ice +0 -676
  830. data/dist/ice/slice/Ice/CommunicatorF.ice +0 -31
  831. data/dist/ice/slice/Ice/Connection.ice +0 -516
  832. data/dist/ice/slice/Ice/ConnectionF.ice +0 -33
  833. data/dist/ice/slice/Ice/Current.ice +0 -170
  834. data/dist/ice/slice/Ice/Endpoint.ice +0 -291
  835. data/dist/ice/slice/Ice/EndpointF.ice +0 -43
  836. data/dist/ice/slice/Ice/FacetMap.ice +0 -36
  837. data/dist/ice/slice/Ice/ImplicitContext.ice +0 -119
  838. data/dist/ice/slice/Ice/ImplicitContextF.ice +0 -30
  839. data/dist/ice/slice/Ice/Instrumentation.ice +0 -509
  840. data/dist/ice/slice/Ice/InstrumentationF.ice +0 -38
  841. data/dist/ice/slice/Ice/LocalException.ice +0 -1040
  842. data/dist/ice/slice/Ice/LocatorF.ice +0 -32
  843. data/dist/ice/slice/Ice/Logger.ice +0 -99
  844. data/dist/ice/slice/Ice/LoggerF.ice +0 -31
  845. data/dist/ice/slice/Ice/ObjectAdapter.ice +0 -710
  846. data/dist/ice/slice/Ice/ObjectAdapterF.ice +0 -31
  847. data/dist/ice/slice/Ice/ObjectFactory.ice +0 -71
  848. data/dist/ice/slice/Ice/Plugin.ice +0 -131
  849. data/dist/ice/slice/Ice/PluginF.ice +0 -36
  850. data/dist/ice/slice/Ice/ProcessF.ice +0 -31
  851. data/dist/ice/slice/Ice/Properties.ice +0 -244
  852. data/dist/ice/slice/Ice/PropertiesF.ice +0 -32
  853. data/dist/ice/slice/Ice/RouterF.ice +0 -31
  854. data/dist/ice/slice/Ice/ServantLocator.ice +0 -136
  855. data/dist/ice/slice/Ice/ServantLocatorF.ice +0 -31
  856. data/dist/ice/slice/Ice/ValueFactory.ice +0 -133
  857. data/dist/ice/slice/IceBox/IceBox.ice +0 -216
  858. data/dist/ice/slice/IceGrid/PluginFacade.ice +0 -329
  859. data/dist/ice/slice/IcePatch2/FileInfo.ice +0 -85
  860. data/dist/ice/slice/IcePatch2/FileServer.ice +0 -191
  861. data/dist/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  862. data/dist/lib/Glacier2/RouterF.rb +0 -25
  863. data/dist/lib/Ice/Communicator.rb +0 -87
  864. data/dist/lib/Ice/CommunicatorF.rb +0 -24
  865. data/dist/lib/Ice/Connection.rb +0 -413
  866. data/dist/lib/Ice/ConnectionF.rb +0 -32
  867. data/dist/lib/Ice/Current.rb +0 -141
  868. data/dist/lib/Ice/Endpoint.rb +0 -187
  869. data/dist/lib/Ice/EndpointF.rb +0 -48
  870. data/dist/lib/Ice/FacetMap.rb +0 -24
  871. data/dist/lib/Ice/ImplicitContext.rb +0 -26
  872. data/dist/lib/Ice/ImplicitContextF.rb +0 -24
  873. data/dist/lib/Ice/Instrumentation.rb +0 -169
  874. data/dist/lib/Ice/InstrumentationF.rb +0 -31
  875. data/dist/lib/Ice/LocalException.rb +0 -1031
  876. data/dist/lib/Ice/LocatorF.rb +0 -30
  877. data/dist/lib/Ice/Logger.rb +0 -24
  878. data/dist/lib/Ice/LoggerF.rb +0 -24
  879. data/dist/lib/Ice/ObjectAdapter.rb +0 -29
  880. data/dist/lib/Ice/ObjectAdapterF.rb +0 -24
  881. data/dist/lib/Ice/ObjectFactory.rb +0 -24
  882. data/dist/lib/Ice/Plugin.rb +0 -30
  883. data/dist/lib/Ice/PluginF.rb +0 -28
  884. data/dist/lib/Ice/ProcessF.rb +0 -25
  885. data/dist/lib/Ice/Properties.rb +0 -25
  886. data/dist/lib/Ice/PropertiesF.rb +0 -29
  887. data/dist/lib/Ice/RouterF.rb +0 -25
  888. data/dist/lib/Ice/ServantLocator.rb +0 -26
  889. data/dist/lib/Ice/ServantLocatorF.rb +0 -24
  890. data/dist/lib/Ice/ValueFactory.rb +0 -28
  891. data/dist/lib/IceBox/IceBox.rb +0 -164
  892. data/dist/lib/IceGrid/PluginFacade.rb +0 -35
  893. data/dist/lib/IcePatch2/FileInfo.rb +0 -115
  894. data/dist/lib/IcePatch2/FileServer.rb +0 -123
  895. data/dist/lib/IcePatch2.rb +0 -5
@@ -1,18 +1,16 @@
1
- //
2
- // Copyright (c) ZeroC, Inc. All rights reserved.
3
- //
4
-
5
- #include <IceUtil/DisableWarnings.h>
6
- #include <Proxy.h>
7
- #include <Communicator.h>
8
- #include <Connection.h>
9
- #include <Endpoint.h>
10
- #include <Util.h>
11
- #include <Types.h>
12
- #include <Ice/LocalException.h>
13
- #include <Ice/Locator.h>
14
- #include <Ice/Proxy.h>
15
- #include <Ice/Router.h>
1
+ // Copyright (c) ZeroC, Inc.
2
+
3
+ #include "Proxy.h"
4
+ #include "Communicator.h"
5
+ #include "Connection.h"
6
+ #include "Endpoint.h"
7
+ #include "Ice/DisableWarnings.h"
8
+ #include "Ice/LocalExceptions.h"
9
+ #include "Ice/Locator.h"
10
+ #include "Ice/Proxy.h"
11
+ #include "Ice/Router.h"
12
+ #include "Types.h"
13
+ #include "Util.h"
16
14
 
17
15
  using namespace std;
18
16
  using namespace IceRuby;
@@ -21,66 +19,45 @@ static VALUE _proxyClass;
21
19
 
22
20
  // ObjectPrx
23
21
 
24
- extern "C"
25
- void
26
- IceRuby_ObjectPrx_mark(Ice::ObjectPrx* p)
22
+ extern "C" void
23
+ IceRuby_ObjectPrx_mark(void* p)
27
24
  {
28
- //
29
25
  // We need to mark the communicator associated with this proxy.
30
- //
31
- assert(p);
32
- volatile VALUE communicator = lookupCommunicator((*p)->ice_getCommunicator());
26
+ auto proxy = static_cast<Ice::ObjectPrx*>(p);
27
+ volatile VALUE communicator = lookupCommunicator((*proxy)->ice_getCommunicator());
33
28
  assert(!NIL_P(communicator));
34
29
  rb_gc_mark(communicator);
35
30
  }
36
31
 
37
- extern "C"
38
- void
39
- IceRuby_ObjectPrx_free(Ice::ObjectPrx* p)
32
+ extern "C" void
33
+ IceRuby_ObjectPrx_free(void* p)
40
34
  {
41
- assert(p);
42
- delete p;
35
+ delete static_cast<Ice::ObjectPrx*>(p);
43
36
  }
44
37
 
45
- //
46
- // If a context was provided set it to ::Ice::noExplicitContext.
47
- //
48
- static void
49
- checkArgs(const char* name, int numArgs, int argc, VALUE* argv, Ice::Context& ctx)
50
- {
51
- if(argc < numArgs || argc > numArgs + 1)
52
- {
53
- throw RubyException(rb_eArgError, "%s expects %d argument%s including an optional context hash", name,
54
- numArgs + 1, numArgs + 1 == 1 ? "" : "s");
55
- }
56
- if(argc == numArgs + 1)
57
- {
58
- if(!hashToContext(argv[numArgs], ctx))
38
+ static const rb_data_type_t IceRuby_ObjectPrxType = {
39
+ .wrap_struct_name = "Ice::ObjectPrx",
40
+ .function =
59
41
  {
60
- throw RubyException(rb_eArgError, "%s: invalid context hash", name);
61
- }
62
- }
63
- else
64
- {
65
- ctx = ::Ice::noExplicitContext;
66
- }
67
- }
42
+ .dmark = IceRuby_ObjectPrx_mark,
43
+ .dfree = IceRuby_ObjectPrx_free,
44
+ },
45
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY,
46
+ };
68
47
 
69
- extern "C"
70
- VALUE
48
+ extern "C" VALUE
71
49
  IceRuby_ObjectPrx_hash(VALUE self)
72
50
  {
73
51
  ICE_RUBY_TRY
74
52
  {
75
53
  Ice::ObjectPrx p = getProxy(self);
76
- return INT2FIX(p->_hash());
54
+ return INT2FIX(std::hash<Ice::ObjectPrx>{}(p));
77
55
  }
78
56
  ICE_RUBY_CATCH
79
57
  return Qnil;
80
58
  }
81
59
 
82
- extern "C"
83
- VALUE
60
+ extern "C" VALUE
84
61
  IceRuby_ObjectPrx_ice_getCommunicator(VALUE self)
85
62
  {
86
63
  ICE_RUBY_TRY
@@ -93,8 +70,7 @@ IceRuby_ObjectPrx_ice_getCommunicator(VALUE self)
93
70
  return Qnil;
94
71
  }
95
72
 
96
- extern "C"
97
- VALUE
73
+ extern "C" VALUE
98
74
  IceRuby_ObjectPrx_ice_toString(VALUE self)
99
75
  {
100
76
  ICE_RUBY_TRY
@@ -107,111 +83,43 @@ IceRuby_ObjectPrx_ice_toString(VALUE self)
107
83
  return Qnil;
108
84
  }
109
85
 
110
- extern "C"
111
- VALUE
112
- IceRuby_ObjectPrx_ice_isA(int argc, VALUE* argv, VALUE self)
113
- {
114
- ICE_RUBY_TRY
115
- {
116
- Ice::ObjectPrx p = getProxy(self);
117
-
118
- Ice::Context ctx;
119
- checkArgs("ice_isA", 1, argc, argv, ctx);
120
- string id = getString(argv[0]);
121
-
122
- return p->ice_isA(id, ctx) ? Qtrue : Qfalse;
123
- }
124
- ICE_RUBY_CATCH
125
- return Qnil;
126
- }
127
-
128
- extern "C"
129
- VALUE
130
- IceRuby_ObjectPrx_ice_ping(int argc, VALUE* argv, VALUE self)
86
+ extern "C" VALUE
87
+ IceRuby_ObjectPrx_ice_getIdentity(VALUE self)
131
88
  {
132
89
  ICE_RUBY_TRY
133
90
  {
134
91
  Ice::ObjectPrx p = getProxy(self);
135
-
136
- Ice::Context ctx;
137
- checkArgs("ice_ping", 0, argc, argv, ctx);
138
- p->ice_ping(ctx);
92
+ return createIdentity(p->ice_getIdentity());
139
93
  }
140
94
  ICE_RUBY_CATCH
141
95
  return Qnil;
142
96
  }
143
97
 
144
- extern "C"
145
- VALUE
146
- IceRuby_ObjectPrx_ice_ids(int argc, VALUE* argv, VALUE self)
98
+ extern "C" VALUE
99
+ IceRuby_ObjectPrx_ice_identity(VALUE self, VALUE args)
147
100
  {
148
101
  ICE_RUBY_TRY
149
102
  {
150
- Ice::ObjectPrx p = getProxy(self);
151
-
152
- Ice::Context ctx;
153
- checkArgs("ice_ids", 0, argc, argv, ctx);
154
-
155
- vector<string> ids = p->ice_ids(ctx);
156
- volatile VALUE result = createArray(static_cast<long>(ids.size()));
157
- long i = 0;
158
- for(vector<string>::iterator q = ids.begin(); q != ids.end(); ++q, ++i)
103
+ VALUE cls = Qnil;
104
+ long len = RARRAY_LEN(args);
105
+ if (len > 2 || len == 0)
159
106
  {
160
- RARRAY_ASET(result, i, createString(*q));
107
+ throw RubyException(rb_eArgError, "ice_identity requires one or two arguments");
108
+ }
109
+ if (len == 2)
110
+ {
111
+ cls = rb_ary_entry(args, 1);
161
112
  }
162
113
 
163
- return result;
164
- }
165
- ICE_RUBY_CATCH
166
- return Qnil;
167
- }
168
-
169
- extern "C"
170
- VALUE
171
- IceRuby_ObjectPrx_ice_id(int argc, VALUE* argv, VALUE self)
172
- {
173
- ICE_RUBY_TRY
174
- {
175
- Ice::ObjectPrx p = getProxy(self);
176
-
177
- Ice::Context ctx;
178
- checkArgs("ice_id", 0, argc, argv, ctx);
179
- string id = p->ice_id(ctx);
180
- return createString(id);
181
- }
182
- ICE_RUBY_CATCH
183
- return Qnil;
184
- }
185
-
186
- extern "C"
187
- VALUE
188
- IceRuby_ObjectPrx_ice_getIdentity(VALUE self)
189
- {
190
- ICE_RUBY_TRY
191
- {
192
- Ice::ObjectPrx p = getProxy(self);
193
- return createIdentity(p->ice_getIdentity());
194
- }
195
- ICE_RUBY_CATCH
196
- return Qnil;
197
- }
198
-
199
- extern "C"
200
- VALUE
201
- IceRuby_ObjectPrx_ice_identity(VALUE self, VALUE id)
202
- {
203
- ICE_RUBY_TRY
204
- {
205
114
  Ice::ObjectPrx p = getProxy(self);
206
- Ice::Identity ident = getIdentity(id);
207
- return createProxy(p->ice_identity(ident));
115
+ Ice::Identity ident = getIdentity(rb_ary_entry(args, 0));
116
+ return createProxy(p->ice_identity(ident), cls);
208
117
  }
209
118
  ICE_RUBY_CATCH
210
119
  return Qnil;
211
120
  }
212
121
 
213
- extern "C"
214
- VALUE
122
+ extern "C" VALUE
215
123
  IceRuby_ObjectPrx_ice_getContext(VALUE self)
216
124
  {
217
125
  ICE_RUBY_TRY
@@ -223,8 +131,7 @@ IceRuby_ObjectPrx_ice_getContext(VALUE self)
223
131
  return Qnil;
224
132
  }
225
133
 
226
- extern "C"
227
- VALUE
134
+ extern "C" VALUE
228
135
  IceRuby_ObjectPrx_ice_context(VALUE self, VALUE ctx)
229
136
  {
230
137
  ICE_RUBY_TRY
@@ -232,7 +139,7 @@ IceRuby_ObjectPrx_ice_context(VALUE self, VALUE ctx)
232
139
  Ice::ObjectPrx p = getProxy(self);
233
140
 
234
141
  Ice::Context context;
235
- if(!NIL_P(ctx) && !hashToContext(ctx, context))
142
+ if (!NIL_P(ctx) && !hashToContext(ctx, context))
236
143
  {
237
144
  throw RubyException(rb_eTypeError, "argument is not a context hash");
238
145
  }
@@ -242,8 +149,7 @@ IceRuby_ObjectPrx_ice_context(VALUE self, VALUE ctx)
242
149
  return Qnil;
243
150
  }
244
151
 
245
- extern "C"
246
- VALUE
152
+ extern "C" VALUE
247
153
  IceRuby_ObjectPrx_ice_getFacet(VALUE self)
248
154
  {
249
155
  ICE_RUBY_TRY
@@ -256,22 +162,31 @@ IceRuby_ObjectPrx_ice_getFacet(VALUE self)
256
162
  return Qnil;
257
163
  }
258
164
 
259
- extern "C"
260
- VALUE
261
- IceRuby_ObjectPrx_ice_facet(VALUE self, VALUE facet)
165
+ extern "C" VALUE
166
+ IceRuby_ObjectPrx_ice_facet(VALUE self, VALUE args)
262
167
  {
263
168
  ICE_RUBY_TRY
264
169
  {
170
+ VALUE cls = Qnil;
171
+ long len = RARRAY_LEN(args);
172
+ if (len > 2 || len == 0)
173
+ {
174
+ throw RubyException(rb_eArgError, "ice_facet requires one or two arguments");
175
+ }
176
+ if (len == 2)
177
+ {
178
+ cls = rb_ary_entry(args, 1);
179
+ }
180
+
265
181
  Ice::ObjectPrx p = getProxy(self);
266
- string f = getString(facet);
267
- return createProxy(p->ice_facet(f));
182
+ string f = getString(rb_ary_entry(args, 0));
183
+ return createProxy(p->ice_facet(f), cls);
268
184
  }
269
185
  ICE_RUBY_CATCH
270
186
  return Qnil;
271
187
  }
272
188
 
273
- extern "C"
274
- VALUE
189
+ extern "C" VALUE
275
190
  IceRuby_ObjectPrx_ice_getAdapterId(VALUE self)
276
191
  {
277
192
  ICE_RUBY_TRY
@@ -284,8 +199,7 @@ IceRuby_ObjectPrx_ice_getAdapterId(VALUE self)
284
199
  return Qnil;
285
200
  }
286
201
 
287
- extern "C"
288
- VALUE
202
+ extern "C" VALUE
289
203
  IceRuby_ObjectPrx_ice_adapterId(VALUE self, VALUE id)
290
204
  {
291
205
  ICE_RUBY_TRY
@@ -298,8 +212,7 @@ IceRuby_ObjectPrx_ice_adapterId(VALUE self, VALUE id)
298
212
  return Qnil;
299
213
  }
300
214
 
301
- extern "C"
302
- VALUE
215
+ extern "C" VALUE
303
216
  IceRuby_ObjectPrx_ice_getEndpoints(VALUE self)
304
217
  {
305
218
  ICE_RUBY_TRY
@@ -309,7 +222,7 @@ IceRuby_ObjectPrx_ice_getEndpoints(VALUE self)
309
222
  Ice::EndpointSeq seq = p->ice_getEndpoints();
310
223
  volatile VALUE result = createArray(static_cast<long>(seq.size()));
311
224
  long i = 0;
312
- for(Ice::EndpointSeq::iterator q = seq.begin(); q != seq.end(); ++q, ++i)
225
+ for (Ice::EndpointSeq::iterator q = seq.begin(); q != seq.end(); ++q, ++i)
313
226
  {
314
227
  RARRAY_ASET(result, i, createEndpoint(*q));
315
228
  }
@@ -319,30 +232,29 @@ IceRuby_ObjectPrx_ice_getEndpoints(VALUE self)
319
232
  return Qnil;
320
233
  }
321
234
 
322
- extern "C"
323
- VALUE
235
+ extern "C" VALUE
324
236
  IceRuby_ObjectPrx_ice_endpoints(VALUE self, VALUE seq)
325
237
  {
326
238
  ICE_RUBY_TRY
327
239
  {
328
240
  Ice::ObjectPrx p = getProxy(self);
329
241
 
330
- if(!NIL_P(seq) && !isArray(seq))
242
+ if (!NIL_P(seq) && !isArray(seq))
331
243
  {
332
244
  throw RubyException(rb_eTypeError, "ice_endpoints requires an array of endpoints");
333
245
  }
334
246
 
335
247
  Ice::EndpointSeq endpoints;
336
- if(!NIL_P(seq))
248
+ if (!NIL_P(seq))
337
249
  {
338
250
  volatile VALUE arr = callRuby(rb_check_array_type, seq);
339
- if(NIL_P(seq))
251
+ if (NIL_P(seq))
340
252
  {
341
253
  throw RubyException(rb_eTypeError, "unable to convert value to an array of endpoints");
342
254
  }
343
- for(long i = 0; i < RARRAY_LEN(arr); ++i)
255
+ for (long i = 0; i < RARRAY_LEN(arr); ++i)
344
256
  {
345
- if(!checkEndpoint(RARRAY_AREF(arr, i)))
257
+ if (!checkEndpoint(RARRAY_AREF(arr, i)))
346
258
  {
347
259
  throw RubyException(rb_eTypeError, "array element is not an Ice::Endpoint");
348
260
  }
@@ -357,36 +269,33 @@ IceRuby_ObjectPrx_ice_endpoints(VALUE self, VALUE seq)
357
269
  return Qnil;
358
270
  }
359
271
 
360
- extern "C"
361
- VALUE
272
+ extern "C" VALUE
362
273
  IceRuby_ObjectPrx_ice_getLocatorCacheTimeout(VALUE self)
363
274
  {
364
275
  ICE_RUBY_TRY
365
276
  {
366
277
  Ice::ObjectPrx p = getProxy(self);
367
- Ice::Int t = p->ice_getLocatorCacheTimeout();
368
- return INT2FIX(t);
278
+ chrono::seconds timeout = chrono::duration_cast<chrono::seconds>(p->ice_getLocatorCacheTimeout());
279
+ return INT2FIX(static_cast<int32_t>(timeout.count()));
369
280
  }
370
281
  ICE_RUBY_CATCH
371
282
  return Qnil;
372
283
  }
373
284
 
374
- extern "C"
375
- VALUE
285
+ extern "C" VALUE
376
286
  IceRuby_ObjectPrx_ice_getInvocationTimeout(VALUE self)
377
287
  {
378
288
  ICE_RUBY_TRY
379
289
  {
380
290
  Ice::ObjectPrx p = getProxy(self);
381
- Ice::Int t = p->ice_getInvocationTimeout();
382
- return INT2FIX(t);
291
+ chrono::milliseconds timeout = p->ice_getInvocationTimeout();
292
+ return INT2FIX(static_cast<int32_t>(timeout.count()));
383
293
  }
384
294
  ICE_RUBY_CATCH
385
295
  return Qnil;
386
296
  }
387
297
 
388
- extern "C"
389
- VALUE
298
+ extern "C" VALUE
390
299
  IceRuby_ObjectPrx_ice_getConnectionId(VALUE self)
391
300
  {
392
301
  ICE_RUBY_TRY
@@ -399,8 +308,7 @@ IceRuby_ObjectPrx_ice_getConnectionId(VALUE self)
399
308
  return Qnil;
400
309
  }
401
310
 
402
- extern "C"
403
- VALUE
311
+ extern "C" VALUE
404
312
  IceRuby_ObjectPrx_ice_locatorCacheTimeout(VALUE self, VALUE timeout)
405
313
  {
406
314
  ICE_RUBY_TRY
@@ -409,19 +317,18 @@ IceRuby_ObjectPrx_ice_locatorCacheTimeout(VALUE self, VALUE timeout)
409
317
  {
410
318
  Ice::ObjectPrx p = getProxy(self);
411
319
  long t = getInteger(timeout);
412
- return createProxy(p->ice_locatorCacheTimeout(static_cast<Ice::Int>(t)), rb_class_of(self));
320
+ return createProxy(p->ice_locatorCacheTimeout(static_cast<int32_t>(t)), rb_class_of(self));
413
321
  }
414
- catch(const IceUtil::IllegalArgumentException& ex)
322
+ catch (const invalid_argument& ex)
415
323
  {
416
- throw RubyException(rb_eArgError, ex.reason().c_str());
324
+ throw RubyException(rb_eArgError, ex.what());
417
325
  }
418
326
  }
419
327
  ICE_RUBY_CATCH
420
328
  return Qnil;
421
329
  }
422
330
 
423
- extern "C"
424
- VALUE
331
+ extern "C" VALUE
425
332
  IceRuby_ObjectPrx_ice_invocationTimeout(VALUE self, VALUE timeout)
426
333
  {
427
334
  ICE_RUBY_TRY
@@ -430,19 +337,18 @@ IceRuby_ObjectPrx_ice_invocationTimeout(VALUE self, VALUE timeout)
430
337
  {
431
338
  Ice::ObjectPrx p = getProxy(self);
432
339
  long t = getInteger(timeout);
433
- return createProxy(p->ice_invocationTimeout(static_cast<Ice::Int>(t)), rb_class_of(self));
340
+ return createProxy(p->ice_invocationTimeout(static_cast<int32_t>(t)), rb_class_of(self));
434
341
  }
435
- catch(const IceUtil::IllegalArgumentException& ex)
342
+ catch (const invalid_argument& ex)
436
343
  {
437
- throw RubyException(rb_eArgError, ex.reason().c_str());
344
+ throw RubyException(rb_eArgError, ex.what());
438
345
  }
439
346
  }
440
347
  ICE_RUBY_CATCH
441
348
  return Qnil;
442
349
  }
443
350
 
444
- extern "C"
445
- VALUE
351
+ extern "C" VALUE
446
352
  IceRuby_ObjectPrx_ice_isConnectionCached(VALUE self)
447
353
  {
448
354
  ICE_RUBY_TRY
@@ -454,8 +360,7 @@ IceRuby_ObjectPrx_ice_isConnectionCached(VALUE self)
454
360
  return Qnil;
455
361
  }
456
362
 
457
- extern "C"
458
- VALUE
363
+ extern "C" VALUE
459
364
  IceRuby_ObjectPrx_ice_connectionCached(VALUE self, VALUE b)
460
365
  {
461
366
  ICE_RUBY_TRY
@@ -467,8 +372,7 @@ IceRuby_ObjectPrx_ice_connectionCached(VALUE self, VALUE b)
467
372
  return Qnil;
468
373
  }
469
374
 
470
- extern "C"
471
- VALUE
375
+ extern "C" VALUE
472
376
  IceRuby_ObjectPrx_ice_getEndpointSelection(VALUE self)
473
377
  {
474
378
  ICE_RUBY_TRY
@@ -484,8 +388,7 @@ IceRuby_ObjectPrx_ice_getEndpointSelection(VALUE self)
484
388
  return Qnil;
485
389
  }
486
390
 
487
- extern "C"
488
- VALUE
391
+ extern "C" VALUE
489
392
  IceRuby_ObjectPrx_ice_endpointSelection(VALUE self, VALUE type)
490
393
  {
491
394
  ICE_RUBY_TRY
@@ -494,7 +397,7 @@ IceRuby_ObjectPrx_ice_endpointSelection(VALUE self, VALUE type)
494
397
 
495
398
  volatile VALUE cls = callRuby(rb_path2class, "Ice::EndpointSelectionType");
496
399
  assert(!NIL_P(cls));
497
- if(callRuby(rb_obj_is_instance_of, type, cls) == Qfalse)
400
+ if (callRuby(rb_obj_is_instance_of, type, cls) == Qfalse)
498
401
  {
499
402
  throw RubyException(rb_eTypeError, "argument must be an Ice::EndpointSelectionType enumerator");
500
403
  }
@@ -507,34 +410,7 @@ IceRuby_ObjectPrx_ice_endpointSelection(VALUE self, VALUE type)
507
410
  return Qnil;
508
411
  }
509
412
 
510
- extern "C"
511
- VALUE
512
- IceRuby_ObjectPrx_ice_isSecure(VALUE self)
513
- {
514
- ICE_RUBY_TRY
515
- {
516
- Ice::ObjectPrx p = getProxy(self);
517
- return p->ice_isSecure() ? Qtrue : Qfalse;
518
- }
519
- ICE_RUBY_CATCH
520
- return Qnil;
521
- }
522
-
523
- extern "C"
524
- VALUE
525
- IceRuby_ObjectPrx_ice_secure(VALUE self, VALUE b)
526
- {
527
- ICE_RUBY_TRY
528
- {
529
- Ice::ObjectPrx p = getProxy(self);
530
- return createProxy(p->ice_secure(RTEST(b)), rb_class_of(self));
531
- }
532
- ICE_RUBY_CATCH
533
- return Qnil;
534
- }
535
-
536
- extern "C"
537
- VALUE
413
+ extern "C" VALUE
538
414
  IceRuby_ObjectPrx_ice_getEncodingVersion(VALUE self)
539
415
  {
540
416
  ICE_RUBY_TRY
@@ -546,12 +422,11 @@ IceRuby_ObjectPrx_ice_getEncodingVersion(VALUE self)
546
422
  return Qnil;
547
423
  }
548
424
 
549
- extern "C"
550
- VALUE
425
+ extern "C" VALUE
551
426
  IceRuby_ObjectPrx_ice_encodingVersion(VALUE self, VALUE v)
552
427
  {
553
428
  Ice::EncodingVersion val;
554
- if(getEncodingVersion(v, val))
429
+ if (getEncodingVersion(v, val))
555
430
  {
556
431
  ICE_RUBY_TRY
557
432
  {
@@ -564,68 +439,40 @@ IceRuby_ObjectPrx_ice_encodingVersion(VALUE self, VALUE v)
564
439
  return Qnil;
565
440
  }
566
441
 
567
- extern "C"
568
- VALUE
569
- IceRuby_ObjectPrx_ice_isPreferSecure(VALUE self)
570
- {
571
- ICE_RUBY_TRY
572
- {
573
- Ice::ObjectPrx p = getProxy(self);
574
- return p->ice_isPreferSecure() ? Qtrue : Qfalse;
575
- }
576
- ICE_RUBY_CATCH
577
- return Qnil;
578
- }
579
-
580
- extern "C"
581
- VALUE
582
- IceRuby_ObjectPrx_ice_preferSecure(VALUE self, VALUE b)
583
- {
584
- ICE_RUBY_TRY
585
- {
586
- Ice::ObjectPrx p = getProxy(self);
587
- return createProxy(p->ice_preferSecure(RTEST(b)), rb_class_of(self));
588
- }
589
- ICE_RUBY_CATCH
590
- return Qnil;
591
- }
592
-
593
- extern "C"
594
- VALUE
442
+ extern "C" VALUE
595
443
  IceRuby_ObjectPrx_ice_getRouter(VALUE self)
596
444
  {
597
445
  ICE_RUBY_TRY
598
446
  {
599
447
  Ice::ObjectPrx p = getProxy(self);
600
448
 
601
- Ice::RouterPrx router = p->ice_getRouter();
602
- if(router)
449
+ optional<Ice::RouterPrx> router = p->ice_getRouter();
450
+ if (router)
603
451
  {
604
452
  volatile VALUE cls = callRuby(rb_path2class, "Ice::RouterPrx");
605
453
  assert(!NIL_P(cls));
606
- return createProxy(router, cls);
454
+ return createProxy(router.value(), cls);
607
455
  }
608
456
  }
609
457
  ICE_RUBY_CATCH
610
458
  return Qnil;
611
459
  }
612
460
 
613
- extern "C"
614
- VALUE
461
+ extern "C" VALUE
615
462
  IceRuby_ObjectPrx_ice_router(VALUE self, VALUE router)
616
463
  {
617
464
  ICE_RUBY_TRY
618
465
  {
619
466
  Ice::ObjectPrx p = getProxy(self);
620
467
 
621
- Ice::RouterPrx proxy;
622
- if(!NIL_P(router))
468
+ optional<Ice::RouterPrx> proxy;
469
+ if (!NIL_P(router))
623
470
  {
624
- if(!checkProxy(router))
471
+ if (!checkProxy(router))
625
472
  {
626
473
  throw RubyException(rb_eTypeError, "argument must be a proxy");
627
474
  }
628
- proxy = Ice::RouterPrx::uncheckedCast(getProxy(router));
475
+ proxy = Ice::uncheckedCast<Ice::RouterPrx>(getProxy(router));
629
476
  }
630
477
  return createProxy(p->ice_router(proxy), rb_class_of(self));
631
478
  }
@@ -633,42 +480,40 @@ IceRuby_ObjectPrx_ice_router(VALUE self, VALUE router)
633
480
  return Qnil;
634
481
  }
635
482
 
636
- extern "C"
637
- VALUE
483
+ extern "C" VALUE
638
484
  IceRuby_ObjectPrx_ice_getLocator(VALUE self)
639
485
  {
640
486
  ICE_RUBY_TRY
641
487
  {
642
488
  Ice::ObjectPrx p = getProxy(self);
643
489
 
644
- Ice::LocatorPrx locator = p->ice_getLocator();
645
- if(locator)
490
+ optional<Ice::LocatorPrx> locator = p->ice_getLocator();
491
+ if (locator)
646
492
  {
647
493
  volatile VALUE cls = callRuby(rb_path2class, "Ice::LocatorPrx");
648
494
  assert(!NIL_P(cls));
649
- return createProxy(locator, cls);
495
+ return createProxy(locator.value(), cls);
650
496
  }
651
497
  }
652
498
  ICE_RUBY_CATCH
653
499
  return Qnil;
654
500
  }
655
501
 
656
- extern "C"
657
- VALUE
502
+ extern "C" VALUE
658
503
  IceRuby_ObjectPrx_ice_locator(VALUE self, VALUE locator)
659
504
  {
660
505
  ICE_RUBY_TRY
661
506
  {
662
507
  Ice::ObjectPrx p = getProxy(self);
663
508
 
664
- Ice::LocatorPrx proxy;
665
- if(!NIL_P(locator))
509
+ optional<Ice::LocatorPrx> proxy;
510
+ if (!NIL_P(locator))
666
511
  {
667
- if(!checkProxy(locator))
512
+ if (!checkProxy(locator))
668
513
  {
669
514
  throw RubyException(rb_eTypeError, "argument must be a proxy");
670
515
  }
671
- proxy = Ice::LocatorPrx::uncheckedCast(getProxy(locator));
516
+ proxy = Ice::uncheckedCast<Ice::LocatorPrx>(getProxy(locator));
672
517
  }
673
518
  return createProxy(p->ice_locator(proxy), rb_class_of(self));
674
519
  }
@@ -676,8 +521,7 @@ IceRuby_ObjectPrx_ice_locator(VALUE self, VALUE locator)
676
521
  return Qnil;
677
522
  }
678
523
 
679
- extern "C"
680
- VALUE
524
+ extern "C" VALUE
681
525
  IceRuby_ObjectPrx_ice_twoway(VALUE self)
682
526
  {
683
527
  ICE_RUBY_TRY
@@ -689,8 +533,7 @@ IceRuby_ObjectPrx_ice_twoway(VALUE self)
689
533
  return Qnil;
690
534
  }
691
535
 
692
- extern "C"
693
- VALUE
536
+ extern "C" VALUE
694
537
  IceRuby_ObjectPrx_ice_isTwoway(VALUE self)
695
538
  {
696
539
  ICE_RUBY_TRY
@@ -702,8 +545,7 @@ IceRuby_ObjectPrx_ice_isTwoway(VALUE self)
702
545
  return Qnil;
703
546
  }
704
547
 
705
- extern "C"
706
- VALUE
548
+ extern "C" VALUE
707
549
  IceRuby_ObjectPrx_ice_oneway(VALUE self)
708
550
  {
709
551
  ICE_RUBY_TRY
@@ -715,8 +557,7 @@ IceRuby_ObjectPrx_ice_oneway(VALUE self)
715
557
  return Qnil;
716
558
  }
717
559
 
718
- extern "C"
719
- VALUE
560
+ extern "C" VALUE
720
561
  IceRuby_ObjectPrx_ice_isOneway(VALUE self)
721
562
  {
722
563
  ICE_RUBY_TRY
@@ -728,8 +569,7 @@ IceRuby_ObjectPrx_ice_isOneway(VALUE self)
728
569
  return Qnil;
729
570
  }
730
571
 
731
- extern "C"
732
- VALUE
572
+ extern "C" VALUE
733
573
  IceRuby_ObjectPrx_ice_batchOneway(VALUE self)
734
574
  {
735
575
  ICE_RUBY_TRY
@@ -741,8 +581,7 @@ IceRuby_ObjectPrx_ice_batchOneway(VALUE self)
741
581
  return Qnil;
742
582
  }
743
583
 
744
- extern "C"
745
- VALUE
584
+ extern "C" VALUE
746
585
  IceRuby_ObjectPrx_ice_isBatchOneway(VALUE self)
747
586
  {
748
587
  ICE_RUBY_TRY
@@ -754,8 +593,7 @@ IceRuby_ObjectPrx_ice_isBatchOneway(VALUE self)
754
593
  return Qnil;
755
594
  }
756
595
 
757
- extern "C"
758
- VALUE
596
+ extern "C" VALUE
759
597
  IceRuby_ObjectPrx_ice_datagram(VALUE self)
760
598
  {
761
599
  ICE_RUBY_TRY
@@ -767,8 +605,7 @@ IceRuby_ObjectPrx_ice_datagram(VALUE self)
767
605
  return Qnil;
768
606
  }
769
607
 
770
- extern "C"
771
- VALUE
608
+ extern "C" VALUE
772
609
  IceRuby_ObjectPrx_ice_isDatagram(VALUE self)
773
610
  {
774
611
  ICE_RUBY_TRY
@@ -780,8 +617,7 @@ IceRuby_ObjectPrx_ice_isDatagram(VALUE self)
780
617
  return Qnil;
781
618
  }
782
619
 
783
- extern "C"
784
- VALUE
620
+ extern "C" VALUE
785
621
  IceRuby_ObjectPrx_ice_batchDatagram(VALUE self)
786
622
  {
787
623
  ICE_RUBY_TRY
@@ -793,8 +629,7 @@ IceRuby_ObjectPrx_ice_batchDatagram(VALUE self)
793
629
  return Qnil;
794
630
  }
795
631
 
796
- extern "C"
797
- VALUE
632
+ extern "C" VALUE
798
633
  IceRuby_ObjectPrx_ice_isBatchDatagram(VALUE self)
799
634
  {
800
635
  ICE_RUBY_TRY
@@ -806,8 +641,7 @@ IceRuby_ObjectPrx_ice_isBatchDatagram(VALUE self)
806
641
  return Qnil;
807
642
  }
808
643
 
809
- extern "C"
810
- VALUE
644
+ extern "C" VALUE
811
645
  IceRuby_ObjectPrx_ice_compress(VALUE self, VALUE b)
812
646
  {
813
647
  ICE_RUBY_TRY
@@ -819,71 +653,27 @@ IceRuby_ObjectPrx_ice_compress(VALUE self, VALUE b)
819
653
  return Qnil;
820
654
  }
821
655
 
822
- extern "C"
823
- VALUE
656
+ extern "C" VALUE
824
657
  IceRuby_ObjectPrx_ice_getCompress(VALUE self)
825
658
  {
826
659
  ICE_RUBY_TRY
827
660
  {
828
661
  Ice::ObjectPrx p = getProxy(self);
829
- IceUtil::Optional<bool> c = p->ice_getCompress();
830
- if(c)
662
+ optional<bool> c = p->ice_getCompress();
663
+ if (c)
831
664
  {
832
665
  return *c ? Qtrue : Qfalse;
833
666
  }
834
667
  else
835
668
  {
836
- return Unset;
837
- }
838
- }
839
- ICE_RUBY_CATCH
840
- return Qnil;
841
- }
842
-
843
- extern "C"
844
- VALUE
845
- IceRuby_ObjectPrx_ice_timeout(VALUE self, VALUE t)
846
- {
847
- ICE_RUBY_TRY
848
- {
849
- try
850
- {
851
- Ice::ObjectPrx p = getProxy(self);
852
- Ice::Int timeout = static_cast<Ice::Int>(getInteger(t));
853
- return createProxy(p->ice_timeout(timeout), rb_class_of(self));
854
- }
855
- catch(const IceUtil::IllegalArgumentException& ex)
856
- {
857
- throw RubyException(rb_eArgError, ex.reason().c_str());
858
- }
859
- }
860
- ICE_RUBY_CATCH
861
- return Qnil;
862
- }
863
-
864
- extern "C"
865
- VALUE
866
- IceRuby_ObjectPrx_ice_getTimeout(VALUE self)
867
- {
868
- ICE_RUBY_TRY
869
- {
870
- Ice::ObjectPrx p = getProxy(self);
871
- IceUtil::Optional<int> t = p->ice_getTimeout();
872
- if(t)
873
- {
874
- return INT2FIX(*t);
875
- }
876
- else
877
- {
878
- return Unset;
669
+ return Qnil;
879
670
  }
880
671
  }
881
672
  ICE_RUBY_CATCH
882
673
  return Qnil;
883
674
  }
884
675
 
885
- extern "C"
886
- VALUE
676
+ extern "C" VALUE
887
677
  IceRuby_ObjectPrx_ice_connectionId(VALUE self, VALUE id)
888
678
  {
889
679
  ICE_RUBY_TRY
@@ -896,8 +686,7 @@ IceRuby_ObjectPrx_ice_connectionId(VALUE self, VALUE id)
896
686
  return Qnil;
897
687
  }
898
688
 
899
- extern "C"
900
- VALUE
689
+ extern "C" VALUE
901
690
  IceRuby_ObjectPrx_ice_fixed(VALUE self, VALUE con)
902
691
  {
903
692
  ICE_RUBY_TRY
@@ -905,9 +694,9 @@ IceRuby_ObjectPrx_ice_fixed(VALUE self, VALUE con)
905
694
  Ice::ObjectPrx p = getProxy(self);
906
695
 
907
696
  Ice::ConnectionPtr connection;
908
- if(!NIL_P(con))
697
+ if (!NIL_P(con))
909
698
  {
910
- if(!checkConnection(con))
699
+ if (!checkConnection(con))
911
700
  {
912
701
  throw RubyException(rb_eTypeError, "argument must be an Ice.Connection");
913
702
  }
@@ -919,8 +708,7 @@ IceRuby_ObjectPrx_ice_fixed(VALUE self, VALUE con)
919
708
  return Qnil;
920
709
  }
921
710
 
922
- extern "C"
923
- VALUE
711
+ extern "C" VALUE
924
712
  IceRuby_ObjectPrx_ice_isFixed(VALUE self)
925
713
  {
926
714
  ICE_RUBY_TRY
@@ -932,8 +720,7 @@ IceRuby_ObjectPrx_ice_isFixed(VALUE self)
932
720
  return Qnil;
933
721
  }
934
722
 
935
- extern "C"
936
- VALUE
723
+ extern "C" VALUE
937
724
  IceRuby_ObjectPrx_ice_getConnection(VALUE self)
938
725
  {
939
726
  ICE_RUBY_TRY
@@ -946,15 +733,14 @@ IceRuby_ObjectPrx_ice_getConnection(VALUE self)
946
733
  return Qnil;
947
734
  }
948
735
 
949
- extern "C"
950
- VALUE
736
+ extern "C" VALUE
951
737
  IceRuby_ObjectPrx_ice_getCachedConnection(VALUE self)
952
738
  {
953
739
  ICE_RUBY_TRY
954
740
  {
955
741
  Ice::ObjectPrx p = getProxy(self);
956
742
  Ice::ConnectionPtr conn = p->ice_getCachedConnection();
957
- if(conn)
743
+ if (conn)
958
744
  {
959
745
  return createConnection(conn);
960
746
  }
@@ -963,8 +749,7 @@ IceRuby_ObjectPrx_ice_getCachedConnection(VALUE self)
963
749
  return Qnil;
964
750
  }
965
751
 
966
- extern "C"
967
- VALUE
752
+ extern "C" VALUE
968
753
  IceRuby_ObjectPrx_ice_flushBatchRequests(VALUE self)
969
754
  {
970
755
  ICE_RUBY_TRY
@@ -976,27 +761,26 @@ IceRuby_ObjectPrx_ice_flushBatchRequests(VALUE self)
976
761
  return Qnil;
977
762
  }
978
763
 
979
- extern "C"
980
- VALUE
764
+ extern "C" VALUE
981
765
  IceRuby_ObjectPrx_cmp(VALUE self, VALUE other)
982
766
  {
983
767
  ICE_RUBY_TRY
984
768
  {
985
- if(NIL_P(other))
769
+ if (NIL_P(other))
986
770
  {
987
771
  return INT2NUM(1);
988
772
  }
989
- if(!checkProxy(other))
773
+ if (!checkProxy(other))
990
774
  {
991
775
  throw RubyException(rb_eTypeError, "argument must be a proxy");
992
776
  }
993
777
  Ice::ObjectPrx p1 = getProxy(self);
994
778
  Ice::ObjectPrx p2 = getProxy(other);
995
- if(p1 < p2)
779
+ if (p1 < p2)
996
780
  {
997
781
  return INT2NUM(-1);
998
782
  }
999
- else if(p1 == p2)
783
+ else if (p1 == p2)
1000
784
  {
1001
785
  return INT2NUM(0);
1002
786
  }
@@ -1009,270 +793,28 @@ IceRuby_ObjectPrx_cmp(VALUE self, VALUE other)
1009
793
  return Qnil;
1010
794
  }
1011
795
 
1012
- extern "C"
1013
- VALUE
796
+ extern "C" VALUE
1014
797
  IceRuby_ObjectPrx_equals(VALUE self, VALUE other)
1015
798
  {
1016
799
  return IceRuby_ObjectPrx_cmp(self, other) == INT2NUM(0) ? Qtrue : Qfalse;
1017
800
  }
1018
801
 
1019
- static VALUE
1020
- checkedCastImpl(const Ice::ObjectPrx& p, const string& id, VALUE facet, VALUE ctx, VALUE type)
1021
- {
1022
- Ice::ObjectPrx target;
1023
- if(NIL_P(facet))
1024
- {
1025
- target = p;
1026
- }
1027
- else
1028
- {
1029
- target = p->ice_facet(getString(facet));
1030
- }
1031
-
1032
- try
1033
- {
1034
- if(NIL_P(ctx))
1035
- {
1036
- if(target->ice_isA(id))
1037
- {
1038
- return createProxy(target, type);
1039
- }
1040
- }
1041
- else
1042
- {
1043
- Ice::Context c;
1044
- #ifndef NDEBUG
1045
- bool b =
1046
- #endif
1047
- hashToContext(ctx, c);
1048
- assert(b);
1049
-
1050
- if(target->ice_isA(id, c))
1051
- {
1052
- return createProxy(target, type);
1053
- }
1054
- }
1055
- }
1056
- catch(const Ice::FacetNotExistException&)
1057
- {
1058
- // Ignore.
1059
- }
1060
-
1061
- return Qnil;
1062
- }
1063
-
1064
- extern "C"
1065
- VALUE
1066
- IceRuby_ObjectPrx_checkedCast(int argc, VALUE* args, VALUE /*self*/)
1067
- {
1068
- //
1069
- // ice_checkedCast is called from generated code, therefore we always expect
1070
- // to receive all four arguments.
1071
- //
1072
- ICE_RUBY_TRY
1073
- {
1074
- if(argc < 1 || argc > 3)
1075
- {
1076
- throw RubyException(rb_eArgError, "checkedCast requires a proxy argument and optional facet and context");
1077
- }
1078
-
1079
- if(NIL_P(args[0]))
1080
- {
1081
- return Qnil;
1082
- }
1083
-
1084
- if(!checkProxy(args[0]))
1085
- {
1086
- throw RubyException(rb_eArgError, "checkedCast requires a proxy argument");
1087
- }
1088
-
1089
- Ice::ObjectPrx p = getProxy(args[0]);
1090
-
1091
- volatile VALUE facet = Qnil;
1092
- volatile VALUE ctx = Qnil;
1093
-
1094
- if(argc == 3)
1095
- {
1096
- if(!NIL_P(args[1]) && !isString(args[1]))
1097
- {
1098
- throw RubyException(rb_eArgError, "facet argument to checkedCast must be a string");
1099
- }
1100
- facet = args[1];
1101
-
1102
- if(!NIL_P(args[2]) && !isHash(args[2]))
1103
- {
1104
- throw RubyException(rb_eArgError, "context argument to checkedCast must be a hash");
1105
- }
1106
- ctx = args[2];
1107
- }
1108
- else if(argc == 2)
1109
- {
1110
- if(isString(args[1]))
1111
- {
1112
- facet = args[1];
1113
- }
1114
- else if(isHash(args[1]))
1115
- {
1116
- ctx = args[1];
1117
- }
1118
- else
1119
- {
1120
- throw RubyException(rb_eArgError, "second argument to checkedCast must be a facet or context");
1121
- }
1122
- }
1123
-
1124
- return checkedCastImpl(p, "::Ice::Object", facet, ctx, Qnil);
1125
- }
1126
- ICE_RUBY_CATCH
1127
- return Qnil;
1128
- }
1129
-
1130
- extern "C"
1131
- VALUE
1132
- IceRuby_ObjectPrx_uncheckedCast(int argc, VALUE* args, VALUE /*self*/)
1133
- {
1134
- ICE_RUBY_TRY
1135
- {
1136
- if(argc < 1 || argc > 2)
1137
- {
1138
- throw RubyException(rb_eArgError, "uncheckedCast requires a proxy argument and an optional facet");
1139
- }
1140
-
1141
- if(NIL_P(args[0]))
1142
- {
1143
- return Qnil;
1144
- }
1145
-
1146
- if(!checkProxy(args[0]))
1147
- {
1148
- throw RubyException(rb_eArgError, "uncheckedCast requires a proxy argument");
1149
- }
1150
-
1151
- volatile VALUE facet = Qnil;
1152
- if(argc == 2)
1153
- {
1154
- facet = args[1];
1155
- }
1156
-
1157
- Ice::ObjectPrx p = getProxy(args[0]);
1158
-
1159
- if(!NIL_P(facet))
1160
- {
1161
- return createProxy(p->ice_facet(getString(facet)));
1162
- }
1163
- else
1164
- {
1165
- return createProxy(p);
1166
- }
1167
- }
1168
- ICE_RUBY_CATCH
1169
- return Qnil;
1170
- }
1171
-
1172
- extern "C"
1173
- VALUE
1174
- IceRuby_ObjectPrx_ice_checkedCast(VALUE self, VALUE obj, VALUE id, VALUE facetOrContext, VALUE ctx)
802
+ extern "C" VALUE
803
+ IceRuby_ObjectPrx_new(VALUE self, VALUE communicator, VALUE proxyString)
1175
804
  {
1176
- //
1177
- // ice_checkedCast is called from generated code, therefore we always expect
1178
- // to receive all four arguments.
1179
- //
1180
805
  ICE_RUBY_TRY
1181
806
  {
1182
- if(NIL_P(obj))
1183
- {
1184
- return Qnil;
1185
- }
1186
-
1187
- if(!checkProxy(obj))
1188
- {
1189
- throw RubyException(rb_eArgError, "checkedCast requires a proxy argument");
1190
- }
1191
-
1192
- Ice::ObjectPrx p = getProxy(obj);
1193
-
1194
- string idstr = getString(id);
1195
-
1196
- volatile VALUE facet = Qnil;
1197
- if(isString(facetOrContext))
1198
- {
1199
- facet = facetOrContext;
1200
- }
1201
- else if(isHash(facetOrContext))
1202
- {
1203
- if(!NIL_P(ctx))
1204
- {
1205
- throw RubyException(rb_eArgError, "facet argument to checkedCast must be a string");
1206
- }
1207
- ctx = facetOrContext;
1208
- }
1209
- else if(!NIL_P(facetOrContext))
1210
- {
1211
- throw RubyException(rb_eArgError, "second argument to checkedCast must be a facet or context");
1212
- }
1213
-
1214
- if(!NIL_P(ctx) && !isHash(ctx))
1215
- {
1216
- throw RubyException(rb_eArgError, "context argument to checkedCast must be a hash");
1217
- }
1218
-
1219
- return checkedCastImpl(p, idstr, facet, ctx, self);
807
+ Ice::ObjectPrx proxy{getCommunicator(communicator), getString(proxyString)};
808
+ return createProxy(proxy, self);
1220
809
  }
1221
810
  ICE_RUBY_CATCH
1222
811
  return Qnil;
1223
812
  }
1224
813
 
1225
- extern "C"
1226
- VALUE
1227
- IceRuby_ObjectPrx_ice_uncheckedCast(VALUE self, VALUE obj, VALUE facet)
814
+ extern "C" VALUE
815
+ IceRuby_ObjectPrx_create(VALUE self, VALUE proxy)
1228
816
  {
1229
- ICE_RUBY_TRY
1230
- {
1231
- if(NIL_P(obj))
1232
- {
1233
- return Qnil;
1234
- }
1235
-
1236
- if(!checkProxy(obj))
1237
- {
1238
- throw RubyException(rb_eArgError, "uncheckedCast requires a proxy argument");
1239
- }
1240
-
1241
- Ice::ObjectPrx p = getProxy(obj);
1242
-
1243
- if(!NIL_P(facet))
1244
- {
1245
- return createProxy(p->ice_facet(getString(facet)), self);
1246
- }
1247
- else
1248
- {
1249
- return createProxy(p, self);
1250
- }
1251
- }
1252
- ICE_RUBY_CATCH
1253
- return Qnil;
1254
- }
1255
-
1256
- extern "C"
1257
- VALUE
1258
- IceRuby_ObjectPrx_ice_staticId(VALUE /*self*/)
1259
- {
1260
- ICE_RUBY_TRY
1261
- {
1262
- return createString(Ice::Object::ice_staticId());
1263
- }
1264
- ICE_RUBY_CATCH
1265
- return Qnil;
1266
- }
1267
-
1268
- extern "C"
1269
- VALUE
1270
- IceRuby_ObjectPrx_new(int /*argc*/, VALUE* /*args*/, VALUE /*self*/)
1271
- {
1272
- ICE_RUBY_TRY
1273
- {
1274
- throw RubyException(rb_eRuntimeError, "a proxy cannot be created via new");
1275
- }
817
+ ICE_RUBY_TRY { return createProxy(getProxy(proxy), self); }
1276
818
  ICE_RUBY_CATCH
1277
819
  return Qnil;
1278
820
  }
@@ -1291,38 +833,39 @@ IceRuby::initProxy(VALUE iceModule)
1291
833
  //
1292
834
  rb_define_method(_proxyClass, "ice_getCommunicator", CAST_METHOD(IceRuby_ObjectPrx_ice_getCommunicator), 0);
1293
835
  rb_define_method(_proxyClass, "ice_toString", CAST_METHOD(IceRuby_ObjectPrx_ice_toString), 0);
1294
- rb_define_method(_proxyClass, "ice_isA", CAST_METHOD(IceRuby_ObjectPrx_ice_isA), -1);
1295
- rb_define_method(_proxyClass, "ice_ping", CAST_METHOD(IceRuby_ObjectPrx_ice_ping), -1);
1296
- rb_define_method(_proxyClass, "ice_ids", CAST_METHOD(IceRuby_ObjectPrx_ice_ids), -1);
1297
- rb_define_method(_proxyClass, "ice_id", CAST_METHOD(IceRuby_ObjectPrx_ice_id), -1);
1298
836
  rb_define_method(_proxyClass, "ice_getIdentity", CAST_METHOD(IceRuby_ObjectPrx_ice_getIdentity), 0);
1299
- rb_define_method(_proxyClass, "ice_identity", CAST_METHOD(IceRuby_ObjectPrx_ice_identity), 1);
837
+ rb_define_method(_proxyClass, "ice_identity", CAST_METHOD(IceRuby_ObjectPrx_ice_identity), -2);
1300
838
  rb_define_method(_proxyClass, "ice_getContext", CAST_METHOD(IceRuby_ObjectPrx_ice_getContext), 0);
1301
839
  rb_define_method(_proxyClass, "ice_context", CAST_METHOD(IceRuby_ObjectPrx_ice_context), 1);
1302
840
  rb_define_method(_proxyClass, "ice_getFacet", CAST_METHOD(IceRuby_ObjectPrx_ice_getFacet), 0);
1303
- rb_define_method(_proxyClass, "ice_facet", CAST_METHOD(IceRuby_ObjectPrx_ice_facet), 1);
841
+ rb_define_method(_proxyClass, "ice_facet", CAST_METHOD(IceRuby_ObjectPrx_ice_facet), -2);
1304
842
  rb_define_method(_proxyClass, "ice_getAdapterId", CAST_METHOD(IceRuby_ObjectPrx_ice_getAdapterId), 0);
1305
843
  rb_define_method(_proxyClass, "ice_adapterId", CAST_METHOD(IceRuby_ObjectPrx_ice_adapterId), 1);
1306
844
  rb_define_method(_proxyClass, "ice_getEndpoints", CAST_METHOD(IceRuby_ObjectPrx_ice_getEndpoints), 0);
1307
845
  rb_define_method(_proxyClass, "ice_endpoints", CAST_METHOD(IceRuby_ObjectPrx_ice_endpoints), 1);
1308
- rb_define_method(_proxyClass, "ice_getLocatorCacheTimeout",
1309
- CAST_METHOD(IceRuby_ObjectPrx_ice_getLocatorCacheTimeout), 0);
1310
- rb_define_method(_proxyClass, "ice_getInvocationTimeout",
1311
- CAST_METHOD(IceRuby_ObjectPrx_ice_getInvocationTimeout), 0);
846
+ rb_define_method(
847
+ _proxyClass,
848
+ "ice_getLocatorCacheTimeout",
849
+ CAST_METHOD(IceRuby_ObjectPrx_ice_getLocatorCacheTimeout),
850
+ 0);
851
+ rb_define_method(
852
+ _proxyClass,
853
+ "ice_getInvocationTimeout",
854
+ CAST_METHOD(IceRuby_ObjectPrx_ice_getInvocationTimeout),
855
+ 0);
1312
856
  rb_define_method(_proxyClass, "ice_getConnectionId", CAST_METHOD(IceRuby_ObjectPrx_ice_getConnectionId), 0);
1313
857
  rb_define_method(_proxyClass, "ice_locatorCacheTimeout", CAST_METHOD(IceRuby_ObjectPrx_ice_locatorCacheTimeout), 1);
1314
858
  rb_define_method(_proxyClass, "ice_invocationTimeout", CAST_METHOD(IceRuby_ObjectPrx_ice_invocationTimeout), 1);
1315
859
  rb_define_method(_proxyClass, "ice_isConnectionCached", CAST_METHOD(IceRuby_ObjectPrx_ice_isConnectionCached), 0);
1316
860
  rb_define_method(_proxyClass, "ice_connectionCached", CAST_METHOD(IceRuby_ObjectPrx_ice_connectionCached), 1);
1317
- rb_define_method(_proxyClass, "ice_getEndpointSelection",
1318
- CAST_METHOD(IceRuby_ObjectPrx_ice_getEndpointSelection), 0);
861
+ rb_define_method(
862
+ _proxyClass,
863
+ "ice_getEndpointSelection",
864
+ CAST_METHOD(IceRuby_ObjectPrx_ice_getEndpointSelection),
865
+ 0);
1319
866
  rb_define_method(_proxyClass, "ice_endpointSelection", CAST_METHOD(IceRuby_ObjectPrx_ice_endpointSelection), 1);
1320
- rb_define_method(_proxyClass, "ice_isSecure", CAST_METHOD(IceRuby_ObjectPrx_ice_isSecure), 0);
1321
- rb_define_method(_proxyClass, "ice_secure", CAST_METHOD(IceRuby_ObjectPrx_ice_secure), 1);
1322
867
  rb_define_method(_proxyClass, "ice_getEncodingVersion", CAST_METHOD(IceRuby_ObjectPrx_ice_getEncodingVersion), 0);
1323
868
  rb_define_method(_proxyClass, "ice_encodingVersion", CAST_METHOD(IceRuby_ObjectPrx_ice_encodingVersion), 1);
1324
- rb_define_method(_proxyClass, "ice_isPreferSecure", CAST_METHOD(IceRuby_ObjectPrx_ice_isPreferSecure), 0);
1325
- rb_define_method(_proxyClass, "ice_preferSecure", CAST_METHOD(IceRuby_ObjectPrx_ice_preferSecure), 1);
1326
869
  rb_define_method(_proxyClass, "ice_getRouter", CAST_METHOD(IceRuby_ObjectPrx_ice_getRouter), 0);
1327
870
  rb_define_method(_proxyClass, "ice_router", CAST_METHOD(IceRuby_ObjectPrx_ice_router), 1);
1328
871
  rb_define_method(_proxyClass, "ice_getLocator", CAST_METHOD(IceRuby_ObjectPrx_ice_getLocator), 0);
@@ -1339,8 +882,6 @@ IceRuby::initProxy(VALUE iceModule)
1339
882
  rb_define_method(_proxyClass, "ice_isBatchDatagram", CAST_METHOD(IceRuby_ObjectPrx_ice_isBatchDatagram), 0);
1340
883
  rb_define_method(_proxyClass, "ice_compress", CAST_METHOD(IceRuby_ObjectPrx_ice_compress), 1);
1341
884
  rb_define_method(_proxyClass, "ice_getCompress", CAST_METHOD(IceRuby_ObjectPrx_ice_getCompress), 0);
1342
- rb_define_method(_proxyClass, "ice_timeout", CAST_METHOD(IceRuby_ObjectPrx_ice_timeout), 1);
1343
- rb_define_method(_proxyClass, "ice_getTimeout", CAST_METHOD(IceRuby_ObjectPrx_ice_getTimeout), 0);
1344
885
  rb_define_method(_proxyClass, "ice_connectionId", CAST_METHOD(IceRuby_ObjectPrx_ice_connectionId), 1);
1345
886
  rb_define_method(_proxyClass, "ice_fixed", CAST_METHOD(IceRuby_ObjectPrx_ice_fixed), 1);
1346
887
  rb_define_method(_proxyClass, "ice_isFixed", CAST_METHOD(IceRuby_ObjectPrx_ice_isFixed), 0);
@@ -1358,35 +899,24 @@ IceRuby::initProxy(VALUE iceModule)
1358
899
  //
1359
900
  // Static methods.
1360
901
  //
1361
- rb_define_singleton_method(_proxyClass, "checkedCast", CAST_METHOD(IceRuby_ObjectPrx_checkedCast), -1);
1362
- rb_define_singleton_method(_proxyClass, "uncheckedCast", CAST_METHOD(IceRuby_ObjectPrx_uncheckedCast), -1);
1363
- rb_define_singleton_method(_proxyClass, "ice_checkedCast", CAST_METHOD(IceRuby_ObjectPrx_ice_checkedCast), 4);
1364
- rb_define_singleton_method(_proxyClass, "ice_uncheckedCast", CAST_METHOD(IceRuby_ObjectPrx_ice_uncheckedCast), 2);
1365
- rb_define_singleton_method(_proxyClass, "ice_staticId", CAST_METHOD(IceRuby_ObjectPrx_ice_staticId), 0);
1366
- rb_define_singleton_method(_proxyClass, "new", CAST_METHOD(IceRuby_ObjectPrx_new), -1);
902
+ rb_define_singleton_method(_proxyClass, "new", CAST_METHOD(IceRuby_ObjectPrx_new), 2);
903
+ rb_define_singleton_method(_proxyClass, "create", CAST_METHOD(IceRuby_ObjectPrx_create), 1);
1367
904
  }
1368
905
 
1369
906
  VALUE
1370
- IceRuby::createProxy(const Ice::ObjectPrx& p, VALUE cls)
907
+ IceRuby::createProxy(Ice::ObjectPrx p, VALUE cls)
1371
908
  {
1372
- //
1373
909
  // If cls is nil then the proxy has the base type Ice::ObjectPrx.
1374
- //
1375
- if(NIL_P(cls))
1376
- {
1377
- return Data_Wrap_Struct(_proxyClass, IceRuby_ObjectPrx_mark, IceRuby_ObjectPrx_free, new Ice::ObjectPrx(p));
1378
- }
1379
- else
1380
- {
1381
- return Data_Wrap_Struct(cls, IceRuby_ObjectPrx_mark, IceRuby_ObjectPrx_free, new Ice::ObjectPrx(p));
1382
- }
910
+ return TypedData_Wrap_Struct(
911
+ NIL_P(cls) ? _proxyClass : cls,
912
+ &IceRuby_ObjectPrxType,
913
+ new Ice::ObjectPrx(std::move(p)));
1383
914
  }
1384
915
 
1385
916
  Ice::ObjectPrx
1386
917
  IceRuby::getProxy(VALUE v)
1387
918
  {
1388
- Ice::ObjectPrx* p = reinterpret_cast<Ice::ObjectPrx*>(DATA_PTR(v));
1389
- return *p;
919
+ return *static_cast<Ice::ObjectPrx*>(DATA_PTR(v));
1390
920
  }
1391
921
 
1392
922
  bool