zeroc-ice 3.6.5 → 3.7.0
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.
- checksums.yaml +4 -4
- data/BZIP2_LICENSE +42 -0
- data/ICE_LICENSE +17 -17
- data/LICENSE +12 -12
- data/bin/slice2rb +1 -1
- data/ext/Communicator.cpp +150 -53
- data/ext/Communicator.h +1 -1
- data/ext/Config.h +2 -12
- data/ext/Connection.cpp +89 -68
- data/ext/Connection.h +1 -1
- data/ext/Endpoint.cpp +16 -45
- data/ext/Endpoint.h +1 -1
- data/ext/ImplicitContext.cpp +1 -5
- data/ext/ImplicitContext.h +1 -1
- data/ext/Init.cpp +4 -1
- data/ext/Logger.cpp +1 -1
- data/ext/Logger.h +1 -1
- data/ext/Operation.cpp +33 -44
- data/ext/Operation.h +1 -1
- data/ext/Properties.cpp +1 -1
- data/ext/Properties.h +1 -1
- data/ext/Proxy.cpp +22 -57
- data/ext/Proxy.h +1 -1
- data/ext/Slice.cpp +5 -5
- data/ext/Slice.h +1 -1
- data/ext/Types.cpp +244 -171
- data/ext/Types.h +118 -66
- data/ext/Util.cpp +13 -9
- data/ext/Util.h +10 -10
- data/ext/ValueFactoryManager.cpp +445 -0
- data/ext/ValueFactoryManager.h +100 -0
- data/ext/extconf.rb +47 -45
- data/ext/ice/bzip2/blocksort.c +1094 -0
- data/ext/ice/bzip2/bzlib.c +1572 -0
- data/ext/ice/bzip2/bzlib.h +282 -0
- data/ext/ice/bzip2/bzlib_private.h +509 -0
- data/ext/ice/bzip2/compress.c +672 -0
- data/ext/ice/bzip2/crctable.c +104 -0
- data/ext/ice/bzip2/decompress.c +646 -0
- data/ext/ice/bzip2/huffman.c +205 -0
- data/ext/ice/bzip2/randtable.c +84 -0
- data/ext/ice/cpp/include/Ice/Application.h +77 -60
- data/ext/ice/cpp/include/Ice/AsyncResult.h +34 -318
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +4 -2
- data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +5 -10
- data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -1
- data/ext/ice/cpp/include/Ice/Buffer.h +10 -10
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +14 -12
- data/ext/ice/cpp/include/Ice/Comparable.h +130 -0
- data/ext/ice/cpp/include/Ice/Config.h +7 -36
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +107 -11
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +5 -1
- data/ext/ice/cpp/include/Ice/ConsoleUtil.h +28 -0
- data/ext/ice/cpp/include/Ice/{DefaultObjectFactory.h → DefaultValueFactory.h} +28 -14
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +4 -6
- data/ext/ice/cpp/include/Ice/Dispatcher.h +14 -13
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +7 -5
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -1
- data/ext/ice/cpp/include/Ice/Exception.h +66 -56
- data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +69 -0
- data/ext/ice/cpp/include/Ice/FactoryTable.h +11 -12
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +27 -25
- data/ext/ice/cpp/include/Ice/Format.h +6 -1
- data/ext/ice/cpp/include/Ice/Functional.h +33 -33
- data/ext/ice/cpp/include/Ice/GCObject.h +9 -5
- data/ext/ice/cpp/include/Ice/Handle.h +6 -11
- data/ext/ice/cpp/include/Ice/Ice.h +9 -5
- data/ext/ice/cpp/include/{IceUtil → Ice}/IconvStringConverter.h +108 -62
- data/ext/ice/cpp/include/Ice/Incoming.h +109 -33
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +63 -23
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +7 -1
- data/ext/ice/cpp/include/Ice/Initialize.h +178 -38
- data/ext/ice/cpp/include/Ice/InputStream.h +994 -0
- data/ext/ice/cpp/include/Ice/InstanceF.h +1 -2
- data/ext/ice/cpp/include/Ice/InterfaceByValue.h +46 -0
- data/ext/ice/cpp/include/Ice/LocalObject.h +9 -9
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -1
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +20 -14
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +114 -65
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +23 -5
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +99 -26
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +17 -4
- data/ext/ice/cpp/include/Ice/Object.h +105 -56
- data/ext/ice/cpp/include/Ice/ObjectF.h +8 -3
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +18 -8
- data/ext/ice/cpp/include/Ice/Optional.h +1084 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +655 -84
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +12 -6
- data/ext/ice/cpp/include/Ice/OutputStream.h +753 -0
- data/ext/ice/cpp/include/Ice/Protocol.h +19 -12
- data/ext/ice/cpp/include/Ice/Proxy.h +1329 -717
- data/ext/ice/cpp/include/Ice/ProxyF.h +11 -33
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -1
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +34 -50
- data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -1
- data/ext/ice/cpp/include/Ice/RegisterPlugins.h +22 -3
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +10 -4
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +6 -1
- data/ext/ice/cpp/include/{IceUtil → Ice}/SHA1.h +16 -16
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -1
- data/ext/ice/cpp/include/Ice/Service.h +13 -18
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +1 -1
- data/ext/ice/cpp/include/Ice/SlicedData.h +46 -20
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +14 -6
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +159 -49
- data/ext/ice/cpp/include/Ice/StringConverter.h +52 -0
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -1
- data/{slice/Ice/ObjectFactoryF.ice → ext/ice/cpp/include/Ice/UUID.h} +9 -7
- data/ext/ice/cpp/include/{IceUtil → Ice}/UniquePtr.h +21 -22
- data/ext/ice/cpp/include/Ice/UniqueRef.h +98 -0
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +40 -8
- data/ext/ice/cpp/include/Ice/Value.h +104 -0
- data/{slice/Freeze/ConnectionF.ice → ext/ice/cpp/include/Ice/ValueF.h} +11 -7
- data/ext/ice/cpp/include/IceSSL/Config.h +8 -23
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +17 -6
- data/ext/ice/cpp/include/IceSSL/OpenSSL.h +130 -0
- data/ext/ice/cpp/include/IceSSL/Plugin.h +172 -259
- data/ext/ice/cpp/include/IceSSL/SChannel.h +66 -0
- data/ext/ice/cpp/include/IceSSL/SecureTransport.h +66 -0
- data/ext/ice/cpp/include/IceSSL/UWP.h +58 -0
- data/ext/ice/cpp/include/IceUtil/Atomic.h +8 -10
- data/ext/ice/cpp/include/IceUtil/Cond.h +17 -18
- data/ext/ice/cpp/include/IceUtil/Config.h +138 -39
- data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +97 -0
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +5 -5
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +23 -17
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +1 -3
- data/ext/ice/cpp/include/IceUtil/Exception.h +157 -67
- data/ext/ice/cpp/include/IceUtil/FileUtil.h +148 -0
- data/ext/ice/cpp/include/IceUtil/Functional.h +1 -2
- data/ext/ice/cpp/include/IceUtil/Handle.h +11 -11
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +4 -10
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +3 -3
- data/ext/ice/cpp/include/IceUtil/Iterator.h +2 -2
- data/ext/ice/cpp/include/IceUtil/Lock.h +8 -10
- data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -2
- data/ext/ice/cpp/include/IceUtil/Mutex.h +17 -11
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +2 -2
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +4 -4
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +4 -4
- data/ext/ice/cpp/include/IceUtil/Optional.h +32 -18
- data/ext/ice/cpp/include/IceUtil/Options.h +17 -18
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +55 -29
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +6 -6
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +11 -10
- data/ext/ice/cpp/include/IceUtil/Random.h +3 -3
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +7 -8
- data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +58 -0
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +1 -9
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +8 -2
- data/ext/ice/cpp/include/IceUtil/Shared.h +5 -7
- data/ext/ice/cpp/{src → include}/IceUtil/StopWatch.h +2 -2
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +77 -72
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +32 -21
- data/ext/ice/cpp/include/IceUtil/Thread.h +10 -12
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +33 -42
- data/ext/ice/cpp/include/IceUtil/Time.h +3 -3
- data/ext/ice/cpp/include/IceUtil/Timer.h +14 -13
- data/ext/ice/cpp/include/IceUtil/UUID.h +2 -2
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -1
- data/ext/ice/cpp/include/{Ice → generated/Ice}/BuiltinSequences.h +41 -8
- data/ext/ice/cpp/include/generated/Ice/Communicator.h +364 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/CommunicatorF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Connection.h +872 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ConnectionF.h +46 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Current.h +71 -8
- data/ext/ice/cpp/include/generated/Ice/Endpoint.h +582 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointF.h +62 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointTypes.h +31 -16
- data/ext/ice/cpp/include/{Ice → generated/Ice}/FacetMap.h +23 -8
- data/ext/ice/cpp/include/generated/Ice/Identity.h +221 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContext.h +72 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContextF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +602 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/InstrumentationF.h +54 -8
- data/ext/ice/cpp/include/generated/Ice/LocalException.h +2802 -0
- data/ext/ice/cpp/include/generated/Ice/Locator.h +2036 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/LocatorF.h +53 -12
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Logger.h +71 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/LoggerF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/Metrics.h +2649 -0
- data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +302 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ObjectAdapterF.h +40 -8
- data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +142 -0
- data/ext/ice/cpp/include/generated/Ice/Plugin.h +197 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/PluginF.h +43 -8
- data/ext/ice/cpp/include/generated/Ice/Process.h +536 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ProcessF.h +45 -10
- data/ext/ice/cpp/include/{Ice → generated/Ice}/Properties.h +88 -21
- data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +749 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/PropertiesF.h +48 -10
- data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +1449 -0
- data/ext/ice/cpp/include/generated/Ice/Router.h +1032 -0
- data/ext/ice/cpp/include/{Ice → generated/Ice}/RouterF.h +45 -10
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocator.h +65 -13
- data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocatorF.h +40 -8
- data/ext/ice/cpp/include/{Ice → generated/Ice}/SliceChecksumDict.h +23 -8
- data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +169 -0
- data/ext/ice/cpp/include/generated/Ice/Version.h +334 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +172 -0
- data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +98 -0
- data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +156 -0
- data/ext/ice/cpp/src/Ice/ACM.cpp +18 -14
- data/ext/ice/cpp/src/Ice/ACM.h +9 -2
- data/ext/ice/cpp/{include → src}/Ice/ACMF.h +10 -5
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +6 -1
- data/ext/ice/cpp/src/Ice/Acceptor.h +4 -3
- data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.cpp +9 -9
- data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.h +7 -7
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +15 -538
- data/ext/ice/cpp/src/Ice/Base64.cpp +11 -11
- data/ext/ice/cpp/src/Ice/Base64.h +1 -1
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +40 -12
- data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +15 -10
- data/ext/ice/cpp/src/Ice/Buffer.cpp +74 -12
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +20 -6
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +85 -190
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +17 -18
- data/ext/ice/cpp/src/Ice/Communicator.cpp +39 -8
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +271 -104
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +84 -28
- data/ext/ice/cpp/src/{IceUtil → Ice}/Cond.cpp +3 -3
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +58 -125
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +11 -22
- data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +6 -2
- data/ext/ice/cpp/src/Ice/Connection.cpp +88 -8
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +158 -80
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +41 -23
- data/ext/ice/cpp/{include → src}/Ice/ConnectionFactoryF.h +8 -3
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +707 -653
- data/ext/ice/cpp/src/Ice/ConnectionI.h +97 -69
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +2 -15
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +4 -3
- data/ext/ice/cpp/src/Ice/Connector.cpp +6 -1
- data/ext/ice/cpp/src/Ice/Connector.h +4 -3
- data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/CountDownLatch.cpp +4 -4
- data/ext/ice/cpp/src/Ice/Current.cpp +29 -6
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +6 -5
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -1
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -1
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +5 -25
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +29 -19
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +85 -6
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +152 -1
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +72 -6
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -1
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +35 -19
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +10 -4
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -1
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +17 -1
- data/ext/ice/cpp/src/Ice/EndpointI.h +35 -9
- data/ext/ice/cpp/src/Ice/EndpointIF.h +18 -5
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +18 -6
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +6 -4
- data/ext/ice/cpp/src/Ice/EventHandler.h +13 -8
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +5 -2
- data/ext/ice/cpp/src/Ice/Exception.cpp +95 -86
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +20 -6
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +37 -28
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +2 -4
- data/ext/ice/cpp/src/Ice/GCObject.cpp +28 -25
- data/ext/ice/cpp/src/Ice/HashUtil.h +2 -3
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -2
- data/ext/ice/cpp/src/Ice/HttpParser.h +1 -1
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +92 -53
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +19 -10
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +6 -2
- data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +56 -0
- data/ext/ice/cpp/src/Ice/Identity.cpp +24 -10
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +14 -14
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +7 -5
- data/ext/ice/cpp/src/Ice/Incoming.cpp +276 -245
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +104 -209
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +5 -4
- data/ext/ice/cpp/src/Ice/Initialize.cpp +299 -172
- data/ext/ice/cpp/src/Ice/InputStream.cpp +2773 -0
- data/ext/ice/cpp/src/Ice/Instance.cpp +191 -231
- data/ext/ice/cpp/src/Ice/Instance.h +30 -18
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +106 -7
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +117 -99
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +30 -31
- data/ext/ice/cpp/src/Ice/LocalException.cpp +1190 -416
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Locator.cpp +1167 -1215
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +129 -163
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +29 -29
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -1
- data/ext/ice/cpp/src/Ice/Logger.cpp +35 -5
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +178 -73
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +4 -4
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +14 -44
- data/ext/ice/cpp/src/Ice/LoggerI.h +7 -13
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +10 -12
- data/ext/ice/cpp/src/Ice/Metrics.cpp +1059 -1069
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +49 -19
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Network.cpp +534 -170
- data/ext/ice/cpp/src/Ice/Network.h +100 -23
- data/ext/ice/cpp/src/Ice/NetworkF.h +2 -2
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +21 -14
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +5 -2
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -1
- data/ext/ice/cpp/src/Ice/Object.cpp +217 -221
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -6
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +35 -14
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +13 -7
- data/ext/ice/cpp/{include → src}/Ice/ObjectAdapterFactoryF.h +5 -1
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +184 -58
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +32 -26
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +9 -32
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +40 -18
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +14 -5
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +803 -365
- data/ext/ice/cpp/src/Ice/OutputStream.cpp +1399 -0
- data/ext/ice/cpp/src/Ice/Plugin.cpp +45 -6
- data/ext/ice/cpp/src/Ice/PluginF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +13 -13
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +5 -6
- data/ext/ice/cpp/src/Ice/Process.cpp +256 -114
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/Properties.cpp +38 -8
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +340 -328
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +81 -17
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +29 -5
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +25 -26
- data/ext/ice/cpp/src/Ice/PropertiesI.h +8 -11
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +107 -50
- data/ext/ice/cpp/src/Ice/PropertyNames.h +4 -2
- data/ext/ice/cpp/src/Ice/Protocol.cpp +2 -2
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +37 -2
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +9 -20
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +6 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +3 -1
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -1
- data/ext/ice/cpp/src/Ice/Proxy.cpp +690 -964
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +23 -32
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +16 -11
- data/ext/ice/cpp/src/Ice/Reference.cpp +75 -69
- data/ext/ice/cpp/src/Ice/Reference.h +27 -22
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +18 -21
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +12 -12
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -1
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +18 -4
- data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -1
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +672 -552
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -1
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +5 -3
- data/ext/ice/cpp/src/Ice/RequestHandler.h +10 -13
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +10 -6
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +2 -2
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +3 -6
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +16 -7
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +6 -12
- data/ext/ice/cpp/src/Ice/RetryQueue.h +7 -6
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -1
- data/ext/ice/cpp/src/Ice/Router.cpp +523 -474
- data/ext/ice/cpp/src/Ice/RouterF.cpp +29 -6
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +91 -70
- data/ext/ice/cpp/src/Ice/RouterInfo.h +43 -32
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -1
- data/ext/ice/cpp/src/{IceUtil → Ice}/SHA1.cpp +21 -21
- data/ext/ice/cpp/src/Ice/Selector.cpp +989 -923
- data/ext/ice/cpp/src/Ice/Selector.h +100 -147
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +37 -6
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +27 -5
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +9 -9
- data/ext/ice/cpp/src/Ice/ServantManager.h +1 -1
- data/ext/ice/cpp/src/Ice/SharedContext.h +2 -2
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +20 -6
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +2 -2
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +72 -20
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +173 -18
- data/ext/ice/cpp/src/Ice/StreamSocket.h +13 -4
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +48 -17
- data/ext/ice/cpp/src/Ice/StringUtil.h +35 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +8 -4
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +2 -3
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +158 -32
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +12 -5
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +1 -7
- data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -2
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +40 -32
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +11 -8
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +12 -27
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +7 -10
- data/ext/ice/cpp/src/{IceUtil → Ice}/Thread.cpp +24 -41
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +175 -267
- data/ext/ice/cpp/src/Ice/ThreadPool.h +38 -43
- data/ext/ice/cpp/src/{IceUtil → Ice}/Timer.cpp +28 -21
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +2 -2
- data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -1
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +2 -2
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +53 -31
- data/ext/ice/cpp/src/Ice/TraceUtil.h +13 -6
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -2
- data/ext/ice/cpp/src/Ice/Transceiver.h +8 -7
- data/ext/ice/cpp/src/Ice/TransceiverF.h +1 -1
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +2 -8
- data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -2
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +92 -31
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +12 -4
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +150 -179
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +15 -17
- data/ext/ice/cpp/src/Ice/Value.cpp +81 -0
- data/ext/ice/cpp/src/Ice/ValueFactory.cpp +84 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +70 -0
- data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +42 -0
- data/ext/ice/cpp/src/Ice/Version.cpp +24 -14
- data/ext/ice/cpp/src/Ice/VirtualShared.h +43 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +3 -9
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +3 -7
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +5 -11
- data/ext/ice/cpp/src/Ice/WSConnector.h +3 -6
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +185 -80
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +21 -31
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +41 -37
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +7 -21
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +526 -264
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +341 -455
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +86 -26
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +59 -23
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +315 -61
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +83 -36
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +57 -59
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +3 -3
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +396 -159
- data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +251 -355
- data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +52 -0
- data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +526 -131
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +19 -165
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +8 -17
- data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +284 -0
- data/ext/ice/cpp/src/IceSSL/CertificateI.h +69 -0
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +39 -11
- data/ext/ice/cpp/src/{Ice/ObjectFactoryF.cpp → IceSSL/ConnectionInfoF.cpp} +31 -9
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +14 -56
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +6 -13
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +205 -197
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +41 -33
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +39 -10
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -6
- data/ext/ice/cpp/src/IceSSL/Instance.h +7 -7
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +11 -7
- data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +588 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +117 -152
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +64 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +32 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +132 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +400 -89
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +36 -21
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +291 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +63 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +71 -41
- data/ext/ice/cpp/src/IceSSL/PluginI.h +13 -18
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +9 -54
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +7 -7
- data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +585 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +491 -75
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +126 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +32 -0
- data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +78 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +126 -169
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +19 -22
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +79 -74
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +24 -187
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +4 -19
- data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +862 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +56 -214
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +60 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +31 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +80 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +137 -144
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +25 -28
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +857 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +46 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +9 -13
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +4 -4
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +3 -3
- data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +271 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +343 -0
- data/ext/ice/cpp/src/IceSSL/UWPEngine.h +46 -0
- data/ext/ice/cpp/{include/Ice/ObjectFactoryManagerF.h → src/IceSSL/UWPEngineF.h} +13 -8
- data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +94 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +388 -0
- data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +76 -0
- data/ext/ice/cpp/src/IceSSL/Util.cpp +66 -1256
- data/ext/ice/cpp/src/IceSSL/Util.h +48 -137
- data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +162 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +22 -22
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +34 -26
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +20 -31
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +25 -116
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/Options.cpp +23 -46
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +7 -6
- data/ext/ice/cpp/src/IceUtil/Random.cpp +13 -13
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +3 -9
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +8 -3
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +501 -264
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +540 -235
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +37 -74
- data/ext/ice/cpp/src/IceUtil/Time.cpp +1 -1
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +10 -10
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +98 -97
- data/ext/ice/cpp/src/IceUtil/Unicode.h +21 -35
- data/ext/ice/cpp/src/IceUtil/UtilException.cpp +838 -0
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +815 -163
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +76 -0
- data/ext/ice/cpp/src/Slice/Checksum.cpp +2 -2
- data/ext/ice/cpp/{include → src}/Slice/Checksum.h +2 -2
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +25 -78
- data/ext/ice/cpp/{include → src}/Slice/FileTracker.h +9 -9
- data/ext/ice/cpp/src/Slice/Grammar.cpp +1994 -1943
- data/ext/ice/cpp/src/Slice/Grammar.h +44 -24
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +14 -14
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +2658 -1927
- data/ext/ice/cpp/{include → src}/Slice/JavaUtil.h +178 -59
- data/ext/ice/cpp/src/Slice/MD5.cpp +1 -1
- data/ext/ice/cpp/src/Slice/MD5.h +1 -1
- data/ext/ice/cpp/src/Slice/MD5I.cpp +0 -1
- data/ext/ice/cpp/src/Slice/MD5I.h +1 -1
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +12 -15
- data/ext/ice/cpp/{include → src}/Slice/PHPUtil.h +6 -15
- data/ext/ice/cpp/src/Slice/Parser.cpp +802 -307
- data/ext/ice/cpp/{include → src}/Slice/Parser.h +76 -84
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +43 -21
- data/ext/ice/cpp/{include → src}/Slice/Preprocessor.h +7 -12
- data/ext/ice/cpp/src/Slice/Python.cpp +207 -86
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +683 -679
- data/ext/ice/cpp/{include → src}/Slice/PythonUtil.h +19 -8
- data/ext/ice/cpp/src/Slice/Ruby.cpp +38 -34
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +177 -445
- data/ext/ice/cpp/{include → src}/Slice/RubyUtil.h +6 -6
- data/ext/ice/cpp/src/Slice/Scanner.cpp +218 -306
- data/ext/ice/cpp/src/Slice/{Util.cpp → SliceUtil.cpp} +37 -64
- data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +374 -0
- data/ext/ice/cpp/src/Slice/Util.h +54 -0
- data/ext/ice/mcpp/Makefile +5 -2
- data/ice.gemspec +2 -7
- data/lib/Glacier2.rb +1 -1
- data/lib/Glacier2/Metrics.rb +7 -46
- data/lib/Glacier2/PermissionsVerifier.rb +24 -95
- data/lib/Glacier2/PermissionsVerifierF.rb +3 -3
- data/lib/Glacier2/Router.rb +32 -74
- data/lib/Glacier2/RouterF.rb +3 -3
- data/lib/Glacier2/SSLInfo.rb +4 -7
- data/lib/Glacier2/Session.rb +88 -307
- data/lib/Ice.rb +83 -52
- data/lib/Ice/BuiltinSequences.rb +4 -4
- data/lib/Ice/Communicator.rb +56 -58
- data/lib/Ice/CommunicatorF.rb +3 -3
- data/lib/Ice/Connection.rb +153 -162
- data/lib/Ice/ConnectionF.rb +3 -3
- data/lib/Ice/Current.rb +4 -11
- data/lib/Ice/Endpoint.rb +57 -133
- data/lib/Ice/EndpointF.rb +3 -3
- data/lib/Ice/EndpointTypes.rb +3 -7
- data/lib/Ice/FacetMap.rb +4 -4
- data/lib/Ice/Identity.rb +5 -8
- data/lib/Ice/ImplicitContext.rb +5 -34
- data/lib/Ice/ImplicitContextF.rb +3 -3
- data/lib/Ice/Instrumentation.rb +23 -275
- data/lib/Ice/InstrumentationF.rb +3 -3
- data/lib/Ice/LocalException.rb +95 -141
- data/lib/Ice/Locator.rb +51 -165
- data/lib/Ice/LocatorF.rb +3 -3
- data/lib/Ice/Logger.rb +5 -34
- data/lib/Ice/LoggerF.rb +3 -3
- data/lib/Ice/Metrics.rb +61 -416
- data/lib/Ice/ObjectAdapter.rb +34 -0
- data/lib/Ice/ObjectAdapterF.rb +3 -3
- data/lib/Ice/ObjectFactory.rb +5 -30
- data/lib/Ice/Plugin.rb +7 -60
- data/lib/Ice/PluginF.rb +3 -3
- data/lib/Ice/Process.rb +16 -52
- data/lib/Ice/ProcessF.rb +3 -3
- data/lib/Ice/Properties.rb +5 -41
- data/lib/Ice/PropertiesAdmin.rb +19 -56
- data/lib/Ice/PropertiesF.rb +3 -3
- data/lib/Ice/RemoteLogger.rb +34 -115
- data/lib/Ice/Router.rb +29 -101
- data/lib/Ice/RouterF.rb +3 -3
- data/lib/Ice/ServantLocator.rb +31 -0
- data/lib/Ice/{ObjectFactoryF.rb → ServantLocatorF.rb} +6 -6
- data/lib/Ice/SliceChecksumDict.rb +3 -3
- data/lib/Ice/ValueFactory.rb +33 -0
- data/lib/Ice/Version.rb +5 -11
- data/lib/IceBox.rb +1 -1
- data/lib/IceBox/IceBox.rb +44 -148
- data/lib/IceGrid.rb +1 -4
- data/lib/IceGrid/Admin.rb +551 -427
- data/lib/IceGrid/Descriptor.rb +62 -529
- data/lib/IceGrid/Exception.rb +24 -45
- data/lib/IceGrid/FileParser.rb +14 -50
- data/lib/IceGrid/PluginFacade.rb +40 -0
- data/lib/IceGrid/Registry.rb +151 -58
- data/lib/IceGrid/Session.rb +25 -64
- data/lib/IceGrid/UserAccountMapper.rb +14 -50
- data/lib/IcePatch2.rb +1 -1
- data/lib/IcePatch2/FileInfo.rb +5 -11
- data/lib/IcePatch2/FileServer.rb +33 -76
- data/lib/IceStorm.rb +1 -1
- data/lib/IceStorm/IceStorm.rb +79 -206
- data/lib/IceStorm/Metrics.rb +11 -89
- data/slice/Glacier2/Metrics.ice +8 -4
- data/slice/Glacier2/PermissionsVerifier.ice +10 -7
- data/slice/Glacier2/PermissionsVerifierF.ice +7 -4
- data/slice/Glacier2/Router.ice +10 -8
- data/slice/Glacier2/RouterF.ice +7 -4
- data/slice/Glacier2/SSLInfo.ice +8 -5
- data/slice/Glacier2/Session.ice +15 -13
- data/slice/Ice/BuiltinSequences.ice +7 -4
- data/slice/Ice/Communicator.ice +141 -66
- data/slice/Ice/CommunicatorF.ice +7 -4
- data/slice/Ice/Connection.ice +183 -86
- data/slice/Ice/ConnectionF.ice +7 -4
- data/slice/Ice/Current.ice +13 -9
- data/slice/Ice/Endpoint.ice +63 -14
- data/slice/Ice/EndpointF.ice +7 -4
- data/slice/Ice/EndpointTypes.ice +8 -6
- data/slice/Ice/FacetMap.ice +7 -4
- data/slice/Ice/Identity.ice +13 -5
- data/slice/Ice/ImplicitContext.ice +20 -18
- data/slice/Ice/ImplicitContextF.ice +7 -4
- data/slice/Ice/Instrumentation.ice +20 -19
- data/slice/Ice/InstrumentationF.ice +8 -5
- data/slice/Ice/LocalException.ice +87 -87
- data/slice/Ice/Locator.ice +19 -18
- data/slice/Ice/LocatorF.ice +7 -4
- data/slice/Ice/Logger.ice +9 -7
- data/slice/Ice/LoggerF.ice +7 -4
- data/slice/Ice/Metrics.ice +18 -14
- data/slice/Ice/ObjectAdapter.ice +30 -13
- data/slice/Ice/ObjectAdapterF.ice +7 -4
- data/slice/Ice/ObjectFactory.ice +15 -12
- data/slice/Ice/Plugin.ice +9 -6
- data/slice/Ice/PluginF.ice +8 -5
- data/slice/Ice/Process.ice +9 -6
- data/slice/Ice/ProcessF.ice +7 -4
- data/slice/Ice/Properties.ice +15 -12
- data/slice/Ice/PropertiesAdmin.ice +9 -5
- data/slice/Ice/PropertiesF.ice +7 -4
- data/slice/Ice/RemoteLogger.ice +33 -24
- data/slice/Ice/Router.ice +16 -7
- data/slice/Ice/RouterF.ice +7 -4
- data/slice/Ice/ServantLocator.ice +13 -10
- data/slice/Ice/ServantLocatorF.ice +7 -4
- data/slice/Ice/SliceChecksumDict.ice +7 -4
- data/slice/Ice/ValueFactory.ice +127 -0
- data/slice/Ice/Version.ice +9 -5
- data/slice/IceBT/ConnectionInfo.ice +53 -0
- data/slice/IceBT/EndpointInfo.ice +51 -0
- data/slice/IceBT/Types.ice +39 -0
- data/slice/IceBox/IceBox.ice +20 -21
- data/slice/IceDiscovery/IceDiscovery.ice +9 -5
- data/slice/IceGrid/Admin.ice +390 -30
- data/slice/IceGrid/Descriptor.ice +37 -29
- data/slice/IceGrid/Exception.ice +33 -27
- data/slice/IceGrid/FileParser.ice +9 -6
- data/slice/IceGrid/PluginFacade.ice +11 -9
- data/slice/IceGrid/Registry.ice +139 -16
- data/slice/IceGrid/Session.ice +10 -8
- data/slice/IceGrid/UserAccountMapper.ice +9 -6
- data/slice/IceIAP/ConnectionInfo.ice +70 -0
- data/slice/IceIAP/EndpointInfo.ice +64 -0
- data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +9 -7
- data/slice/IcePatch2/FileInfo.ice +9 -8
- data/slice/IcePatch2/FileServer.ice +17 -13
- data/slice/IceSSL/ConnectionInfo.ice +14 -17
- data/slice/IceSSL/ConnectionInfoF.ice +24 -0
- data/slice/IceSSL/EndpointInfo.ice +9 -30
- data/slice/IceStorm/IceStorm.ice +22 -18
- data/slice/IceStorm/Metrics.ice +9 -5
- metadata +154 -120
- data/ext/ObjectFactory.cpp +0 -140
- data/ext/ObjectFactory.h +0 -50
- data/ext/ice/cpp/include/Ice/BasicStream.h +0 -1335
- data/ext/ice/cpp/include/Ice/Communicator.h +0 -200
- data/ext/ice/cpp/include/Ice/Connection.h +0 -497
- data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +0 -62
- data/ext/ice/cpp/include/Ice/Endpoint.h +0 -341
- data/ext/ice/cpp/include/Ice/Identity.h +0 -168
- data/ext/ice/cpp/include/Ice/Instrumentation.h +0 -365
- data/ext/ice/cpp/include/Ice/LocalException.h +0 -1030
- data/ext/ice/cpp/include/Ice/Locator.h +0 -2193
- data/ext/ice/cpp/include/Ice/Metrics.h +0 -2974
- data/ext/ice/cpp/include/Ice/ObjectAdapter.h +0 -168
- data/ext/ice/cpp/include/Ice/ObjectFactory.h +0 -92
- data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +0 -66
- data/ext/ice/cpp/include/Ice/Outgoing.h +0 -225
- data/ext/ice/cpp/include/Ice/Plugin.h +0 -125
- data/ext/ice/cpp/include/Ice/Process.h +0 -574
- data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +0 -830
- data/ext/ice/cpp/include/Ice/RemoteLogger.h +0 -1500
- data/ext/ice/cpp/include/Ice/Router.h +0 -1159
- data/ext/ice/cpp/include/Ice/Stream.h +0 -447
- data/ext/ice/cpp/include/Ice/StreamF.h +0 -30
- data/ext/ice/cpp/include/Ice/Version.h +0 -262
- data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +0 -158
- data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +0 -142
- data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +0 -119
- data/ext/ice/cpp/include/IceUtil/Cache.h +0 -362
- data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +0 -65
- data/ext/ice/cpp/include/Slice/CsUtil.h +0 -92
- data/ext/ice/cpp/include/Slice/DotNetNames.h +0 -34
- data/ext/ice/cpp/include/Slice/ObjCUtil.h +0 -127
- data/ext/ice/cpp/include/Slice/Util.h +0 -56
- data/ext/ice/cpp/src/Ice/BasicStream.cpp +0 -3428
- data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +0 -62
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +0 -139
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +0 -43
- data/ext/ice/cpp/src/Ice/Outgoing.cpp +0 -694
- data/ext/ice/cpp/src/Ice/Stream.cpp +0 -53
- data/ext/ice/cpp/src/Ice/StreamI.cpp +0 -832
- data/ext/ice/cpp/src/Ice/StreamI.h +0 -198
- data/ext/ice/cpp/src/IceSSL/Certificate.cpp +0 -1336
- data/ext/ice/cpp/src/IceUtil/Exception.cpp +0 -792
- data/ext/ice/cpp/src/IceUtil/FileUtil.h +0 -185
- data/ext/ice/cpp/src/Slice/CsUtil.cpp +0 -2660
- data/ext/ice/cpp/src/Slice/DotNetNames.cpp +0 -146
- data/ext/ice/cpp/src/Slice/ObjCUtil.cpp +0 -1310
- data/lib/IceGrid/Locator.rb +0 -106
- data/lib/IceGrid/Observer.rb +0 -572
- data/lib/IceGrid/Query.rb +0 -169
- data/slice/Freeze/BackgroundSaveEvictor.ice +0 -111
- data/slice/Freeze/CatalogData.ice +0 -49
- data/slice/Freeze/Connection.ice +0 -121
- data/slice/Freeze/DB.ice +0 -37
- data/slice/Freeze/Evictor.ice +0 -346
- data/slice/Freeze/EvictorF.ice +0 -22
- data/slice/Freeze/EvictorStorage.ice +0 -72
- data/slice/Freeze/Exception.ice +0 -100
- data/slice/Freeze/Transaction.ice +0 -58
- data/slice/Freeze/TransactionalEvictor.ice +0 -50
- data/slice/IceGrid/Locator.ice +0 -57
- data/slice/IceGrid/Observer.ice +0 -395
- data/slice/IceGrid/Query.ice +0 -131
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
#include <Ice/PropertiesF.h>
|
|
16
16
|
#include <Ice/LoggerF.h>
|
|
17
17
|
#include <Ice/EndpointIF.h>
|
|
18
|
+
#include <Ice/EndpointFactory.h>
|
|
18
19
|
#include <Ice/ConnectorF.h>
|
|
19
20
|
#include <Ice/IPEndpointIF.h>
|
|
20
21
|
#include <Ice/NetworkF.h>
|
|
@@ -27,6 +28,8 @@ class ICE_API ProtocolInstance : public IceUtil::Shared
|
|
|
27
28
|
{
|
|
28
29
|
public:
|
|
29
30
|
|
|
31
|
+
virtual ~ProtocolInstance();
|
|
32
|
+
|
|
30
33
|
ProtocolInstance(const Ice::CommunicatorPtr&, Ice::Short, const std::string&, bool);
|
|
31
34
|
|
|
32
35
|
int traceLevel() const
|
|
@@ -39,10 +42,7 @@ public:
|
|
|
39
42
|
return _traceCategory;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
|
-
const Ice::LoggerPtr& logger() const
|
|
43
|
-
{
|
|
44
|
-
return _instance->initializationData().logger;
|
|
45
|
-
}
|
|
45
|
+
const Ice::LoggerPtr& logger() const;
|
|
46
46
|
|
|
47
47
|
const std::string& protocol() const
|
|
48
48
|
{
|
|
@@ -64,21 +64,10 @@ public:
|
|
|
64
64
|
return _secure;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
void setSndBufSizeWarn(Ice::Short type, int size)
|
|
73
|
-
{
|
|
74
|
-
_instance->setSndBufSizeWarn(type, size);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
void setRcvBufSizeWarn(Ice::Short type, int size)
|
|
78
|
-
{
|
|
79
|
-
_instance->setRcvBufSizeWarn(type, size);
|
|
80
|
-
}
|
|
81
|
-
|
|
67
|
+
IceInternal::EndpointFactoryPtr getEndpointFactory(Ice::Short) const;
|
|
68
|
+
BufSizeWarnInfo getBufSizeWarn(Ice::Short type);
|
|
69
|
+
void setSndBufSizeWarn(Ice::Short type, int size);
|
|
70
|
+
void setRcvBufSizeWarn(Ice::Short type, int size);
|
|
82
71
|
bool preferIPv6() const;
|
|
83
72
|
ProtocolSupport protocolSupport() const;
|
|
84
73
|
const std::string& defaultHost() const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -20,6 +20,11 @@ using namespace IceInternal;
|
|
|
20
20
|
|
|
21
21
|
IceUtil::Shared* IceInternal::upCast(ProtocolPluginFacade* p) { return p; }
|
|
22
22
|
|
|
23
|
+
IceInternal::ProtocolPluginFacade::~ProtocolPluginFacade()
|
|
24
|
+
{
|
|
25
|
+
// Out of line to avoid weak vtable
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
ProtocolPluginFacadePtr
|
|
24
29
|
IceInternal::getProtocolPluginFacade(const CommunicatorPtr& communicator)
|
|
25
30
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -36,6 +36,8 @@ class ICE_API ProtocolPluginFacade : public ::IceUtil::Shared
|
|
|
36
36
|
{
|
|
37
37
|
public:
|
|
38
38
|
|
|
39
|
+
virtual ~ProtocolPluginFacade();
|
|
40
|
+
|
|
39
41
|
//
|
|
40
42
|
// Get the Communicator instance with which this facade is
|
|
41
43
|
// associated.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// **********************************************************************
|
|
2
2
|
//
|
|
3
|
-
// Copyright (c) 2003-
|
|
3
|
+
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This copy of Ice is licensed to you under the terms described in the
|
|
6
6
|
// ICE_LICENSE file included in this distribution.
|
|
@@ -12,23 +12,48 @@
|
|
|
12
12
|
#include <Ice/ReferenceFactory.h>
|
|
13
13
|
#include <Ice/Object.h>
|
|
14
14
|
#include <Ice/ObjectAdapterFactory.h>
|
|
15
|
-
#include <Ice/Outgoing.h>
|
|
16
15
|
#include <Ice/OutgoingAsync.h>
|
|
17
16
|
#include <Ice/Reference.h>
|
|
17
|
+
#include <Ice/CollocatedRequestHandler.h>
|
|
18
18
|
#include <Ice/EndpointI.h>
|
|
19
19
|
#include <Ice/Instance.h>
|
|
20
20
|
#include <Ice/RouterInfo.h>
|
|
21
21
|
#include <Ice/LocatorInfo.h>
|
|
22
|
-
#include <Ice/
|
|
22
|
+
#include <Ice/OutputStream.h>
|
|
23
|
+
#include <Ice/InputStream.h>
|
|
23
24
|
#include <Ice/LocalException.h>
|
|
24
25
|
#include <Ice/ConnectionI.h> // To convert from ConnectionIPtr to ConnectionPtr in ice_getConnection().
|
|
25
|
-
#include <Ice/Stream.h>
|
|
26
26
|
#include <Ice/ImplicitContextI.h>
|
|
27
27
|
|
|
28
28
|
using namespace std;
|
|
29
29
|
using namespace Ice;
|
|
30
30
|
using namespace IceInternal;
|
|
31
31
|
|
|
32
|
+
namespace Ice
|
|
33
|
+
{
|
|
34
|
+
|
|
35
|
+
const Context noExplicitContext;
|
|
36
|
+
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#if defined(_MSC_VER) && (_MSC_VER <= 1600)
|
|
40
|
+
//
|
|
41
|
+
// COMPILERFIX VC90 and VC100 get confused with namespaces and complains that
|
|
42
|
+
// ::Ice::noExplicitContext isn't defined in IceProxy namespace.
|
|
43
|
+
//
|
|
44
|
+
namespace IceProxy
|
|
45
|
+
{
|
|
46
|
+
|
|
47
|
+
namespace Ice
|
|
48
|
+
{
|
|
49
|
+
|
|
50
|
+
const Context noExplicitContext;
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
#endif
|
|
56
|
+
|
|
32
57
|
namespace
|
|
33
58
|
{
|
|
34
59
|
|
|
@@ -42,681 +67,393 @@ const string ice_flushBatchRequests_name = "ice_flushBatchRequests";
|
|
|
42
67
|
|
|
43
68
|
}
|
|
44
69
|
|
|
45
|
-
::
|
|
46
|
-
|
|
70
|
+
ProxyFlushBatchAsync::ProxyFlushBatchAsync(const ObjectPrxPtr& proxy) : ProxyOutgoingAsyncBase(proxy)
|
|
71
|
+
{
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
AsyncStatus
|
|
75
|
+
ProxyFlushBatchAsync::invokeRemote(const ConnectionIPtr& connection, bool compress, bool)
|
|
47
76
|
{
|
|
48
|
-
if(
|
|
77
|
+
if(_batchRequestNum == 0)
|
|
49
78
|
{
|
|
50
|
-
|
|
51
|
-
try
|
|
79
|
+
if(sent())
|
|
52
80
|
{
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
return bb;
|
|
56
|
-
}
|
|
57
|
-
#ifndef NDEBUG
|
|
58
|
-
else
|
|
59
|
-
{
|
|
60
|
-
assert(typeId != "::Ice::Object");
|
|
61
|
-
}
|
|
62
|
-
#endif
|
|
81
|
+
return static_cast<AsyncStatus>(AsyncStatusSent | AsyncStatusInvokeSentCallback);
|
|
63
82
|
}
|
|
64
|
-
|
|
83
|
+
else
|
|
65
84
|
{
|
|
85
|
+
return AsyncStatusSent;
|
|
66
86
|
}
|
|
67
87
|
}
|
|
68
|
-
|
|
88
|
+
_cachedConnection = connection;
|
|
89
|
+
return connection->sendAsyncRequest(ICE_SHARED_FROM_THIS, compress, false, _batchRequestNum);
|
|
69
90
|
}
|
|
70
91
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
IceInternal::Cpp11FnCallbackNC::Cpp11FnCallbackNC(const ::std::function<void (const ::Ice::Exception&)>& excb,
|
|
74
|
-
const ::std::function<void (bool)>& sentcb) :
|
|
75
|
-
_exception(excb),
|
|
76
|
-
_sent(sentcb)
|
|
92
|
+
AsyncStatus
|
|
93
|
+
ProxyFlushBatchAsync::invokeCollocated(CollocatedRequestHandler* handler)
|
|
77
94
|
{
|
|
95
|
+
if(_batchRequestNum == 0)
|
|
96
|
+
{
|
|
97
|
+
if(sent())
|
|
98
|
+
{
|
|
99
|
+
return static_cast<AsyncStatus>(AsyncStatusSent | AsyncStatusInvokeSentCallback);
|
|
100
|
+
}
|
|
101
|
+
else
|
|
102
|
+
{
|
|
103
|
+
return AsyncStatusSent;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return handler->invokeAsyncRequest(this, _batchRequestNum, false);
|
|
78
107
|
}
|
|
79
108
|
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
void
|
|
110
|
+
ProxyFlushBatchAsync::invoke(const string& operation)
|
|
82
111
|
{
|
|
83
|
-
|
|
112
|
+
checkSupportedProtocol(getCompatibleProtocol(_proxy->_getReference()->getProtocol()));
|
|
113
|
+
_observer.attach(_proxy, operation, ::Ice::noExplicitContext);
|
|
114
|
+
bool compress; // Ignore for proxy flushBatchRequests
|
|
115
|
+
_batchRequestNum = _proxy->_getBatchRequestQueue()->swap(&_os, compress);
|
|
116
|
+
invokeImpl(true); // userThread = true
|
|
84
117
|
}
|
|
85
118
|
|
|
86
|
-
|
|
87
|
-
IceInternal::Cpp11FnCallbackNC::sent(const ::Ice::AsyncResultPtr& result) const
|
|
119
|
+
ProxyGetConnection::ProxyGetConnection(const ObjectPrxPtr& prx) : ProxyOutgoingAsyncBase(prx)
|
|
88
120
|
{
|
|
89
|
-
if(_sent != nullptr)
|
|
90
|
-
{
|
|
91
|
-
_sent(result->sentSynchronously());
|
|
92
|
-
}
|
|
93
121
|
}
|
|
94
122
|
|
|
95
|
-
|
|
96
|
-
|
|
123
|
+
AsyncStatus
|
|
124
|
+
ProxyGetConnection::invokeRemote(const ConnectionIPtr& connection, bool, bool)
|
|
97
125
|
{
|
|
98
|
-
|
|
126
|
+
_cachedConnection = connection;
|
|
127
|
+
if(responseImpl(true, true))
|
|
128
|
+
{
|
|
129
|
+
invokeResponseAsync();
|
|
130
|
+
}
|
|
131
|
+
return AsyncStatusSent;
|
|
99
132
|
}
|
|
100
133
|
|
|
101
|
-
|
|
102
|
-
|
|
134
|
+
AsyncStatus
|
|
135
|
+
ProxyGetConnection::invokeCollocated(CollocatedRequestHandler*)
|
|
103
136
|
{
|
|
104
|
-
if(
|
|
137
|
+
if(responseImpl(true, true))
|
|
105
138
|
{
|
|
106
|
-
|
|
139
|
+
invokeResponseAsync();
|
|
107
140
|
}
|
|
141
|
+
return AsyncStatusSent;
|
|
108
142
|
}
|
|
109
143
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const ::std::function<void (bool)>& sentcb) :
|
|
113
|
-
Cpp11FnCallbackNC(excb, sentcb),
|
|
114
|
-
_cb(cb)
|
|
144
|
+
Ice::ConnectionPtr
|
|
145
|
+
ProxyGetConnection::getConnection() const
|
|
115
146
|
{
|
|
116
|
-
|
|
147
|
+
return _cachedConnection;
|
|
117
148
|
}
|
|
118
149
|
|
|
119
150
|
void
|
|
120
|
-
|
|
151
|
+
ProxyGetConnection::invoke(const string& operation)
|
|
121
152
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
result->getProxy()->__end(result, result->getOperation());
|
|
125
|
-
}
|
|
126
|
-
catch(const ::Ice::Exception& ex)
|
|
127
|
-
{
|
|
128
|
-
Cpp11FnCallbackNC::exception(result, ex);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
if(_cb != nullptr)
|
|
132
|
-
{
|
|
133
|
-
_cb();
|
|
134
|
-
}
|
|
153
|
+
_observer.attach(_proxy, operation, ::Ice::noExplicitContext);
|
|
154
|
+
invokeImpl(true); // userThread = true
|
|
135
155
|
}
|
|
136
|
-
#endif
|
|
137
156
|
|
|
138
|
-
|
|
139
|
-
|
|
157
|
+
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
|
158
|
+
|
|
159
|
+
namespace Ice
|
|
140
160
|
{
|
|
141
|
-
return _reference == r._reference;
|
|
142
|
-
}
|
|
143
161
|
|
|
144
162
|
bool
|
|
145
|
-
|
|
163
|
+
operator<(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
146
164
|
{
|
|
147
|
-
return _reference
|
|
165
|
+
return lhs._reference < rhs._reference;
|
|
148
166
|
}
|
|
149
167
|
|
|
150
168
|
bool
|
|
151
|
-
|
|
169
|
+
operator==(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
152
170
|
{
|
|
153
|
-
return _reference
|
|
171
|
+
return lhs._reference == rhs._reference;
|
|
154
172
|
}
|
|
155
173
|
|
|
156
|
-
CommunicatorPtr
|
|
157
|
-
IceProxy::Ice::Object::ice_getCommunicator() const
|
|
158
|
-
{
|
|
159
|
-
return _reference->getCommunicator();
|
|
160
174
|
}
|
|
161
175
|
|
|
162
|
-
|
|
163
|
-
|
|
176
|
+
void
|
|
177
|
+
Ice::ObjectPrx::_iceI_isA(const shared_ptr<IceInternal::OutgoingAsyncT<bool>>& outAsync,
|
|
178
|
+
const string& typeId,
|
|
179
|
+
const Context& ctx)
|
|
164
180
|
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
181
|
+
_checkTwowayOnly(ice_isA_name);
|
|
182
|
+
outAsync->invoke(ice_isA_name, OperationMode::Nonmutating, ICE_ENUM(FormatType, DefaultFormat), ctx,
|
|
183
|
+
[&](Ice::OutputStream* os)
|
|
184
|
+
{
|
|
185
|
+
os->write(typeId, false);
|
|
186
|
+
},
|
|
187
|
+
nullptr);
|
|
171
188
|
}
|
|
172
189
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
IceProxy::Ice::Object::ice_isA(const string& typeId, const Context* context)
|
|
190
|
+
void
|
|
191
|
+
Ice::ObjectPrx::_iceI_ping(const shared_ptr<IceInternal::OutgoingAsyncT<void>>& outAsync, const Context& ctx)
|
|
176
192
|
{
|
|
177
|
-
|
|
178
|
-
Outgoing __og(this, ice_isA_name, ::Ice::Nonmutating, context);
|
|
179
|
-
try
|
|
180
|
-
{
|
|
181
|
-
BasicStream* __os = __og.startWriteParams(DefaultFormat);
|
|
182
|
-
__os->write(typeId, false);
|
|
183
|
-
__og.endWriteParams();
|
|
184
|
-
}
|
|
185
|
-
catch(const ::Ice::LocalException& __ex)
|
|
186
|
-
{
|
|
187
|
-
__og.abort(__ex);
|
|
188
|
-
}
|
|
189
|
-
if(!__og.invoke())
|
|
190
|
-
{
|
|
191
|
-
try
|
|
192
|
-
{
|
|
193
|
-
__og.throwUserException();
|
|
194
|
-
}
|
|
195
|
-
catch(const ::Ice::UserException& __ex)
|
|
196
|
-
{
|
|
197
|
-
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
bool __ret;
|
|
201
|
-
BasicStream* __is = __og.startReadParams();
|
|
202
|
-
__is->read(__ret);
|
|
203
|
-
__og.endReadParams();
|
|
204
|
-
return __ret;
|
|
193
|
+
outAsync->invoke(ice_ping_name, OperationMode::Nonmutating, ICE_ENUM(FormatType, DefaultFormat), ctx, nullptr, nullptr);
|
|
205
194
|
}
|
|
206
195
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
const Context* ctx,
|
|
210
|
-
const ::IceInternal::CallbackBasePtr& del,
|
|
211
|
-
const ::Ice::LocalObjectPtr& cookie)
|
|
196
|
+
void
|
|
197
|
+
Ice::ObjectPrx::_iceI_ids(const shared_ptr<IceInternal::OutgoingAsyncT<vector<string>>>& outAsync, const Context& ctx)
|
|
212
198
|
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
__result->invoke();
|
|
222
|
-
}
|
|
223
|
-
catch(const Exception& __ex)
|
|
224
|
-
{
|
|
225
|
-
__result->abort(__ex);
|
|
226
|
-
}
|
|
227
|
-
return __result;
|
|
199
|
+
_checkTwowayOnly(ice_ids_name);
|
|
200
|
+
outAsync->invoke(ice_ids_name, OperationMode::Nonmutating, ICE_ENUM(FormatType, DefaultFormat), ctx, nullptr, nullptr,
|
|
201
|
+
[](Ice::InputStream* stream)
|
|
202
|
+
{
|
|
203
|
+
vector<string> v;
|
|
204
|
+
stream->read(v, false); // no conversion
|
|
205
|
+
return v;
|
|
206
|
+
});
|
|
228
207
|
}
|
|
229
208
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
Ice::AsyncResultPtr
|
|
233
|
-
IceProxy::Ice::Object::__begin_ice_isA(const ::std::string& typeId,
|
|
234
|
-
const ::Ice::Context* ctx,
|
|
235
|
-
const ::IceInternal::Function<void (bool)>& response,
|
|
236
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
|
|
237
|
-
const ::IceInternal::Function<void (bool)>& sent)
|
|
209
|
+
void
|
|
210
|
+
Ice::ObjectPrx::_iceI_id(const shared_ptr<IceInternal::OutgoingAsyncT<string>>& outAsync, const Context& ctx)
|
|
238
211
|
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
_response(responseFunc)
|
|
248
|
-
{
|
|
249
|
-
CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
253
|
-
{
|
|
254
|
-
::Ice::ObjectPrx __proxy = ::Ice::ObjectPrx::uncheckedCast(__result->getProxy());
|
|
255
|
-
bool __ret;
|
|
256
|
-
try
|
|
257
|
-
{
|
|
258
|
-
__ret = __proxy->end_ice_isA(__result);
|
|
259
|
-
}
|
|
260
|
-
catch(const ::Ice::Exception& ex)
|
|
261
|
-
{
|
|
262
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
if(_response != nullptr)
|
|
266
|
-
{
|
|
267
|
-
_response(__ret);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
private:
|
|
272
|
-
|
|
273
|
-
::std::function<void (bool)> _response;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
return begin_ice_isA(typeId, ctx, new Cpp11CB(response, exception, sent), 0);
|
|
212
|
+
_checkTwowayOnly(ice_id_name);
|
|
213
|
+
outAsync->invoke(ice_id_name, OperationMode::Nonmutating, ICE_ENUM(FormatType, DefaultFormat), ctx, nullptr, nullptr,
|
|
214
|
+
[](Ice::InputStream* stream)
|
|
215
|
+
{
|
|
216
|
+
string v;
|
|
217
|
+
stream->read(v, false); // no conversion
|
|
218
|
+
return v;
|
|
219
|
+
});
|
|
277
220
|
}
|
|
278
221
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
const ::IceInternal::Function<void (const ::std::string&)>& response,
|
|
282
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
|
|
283
|
-
const ::IceInternal::Function<void (bool)>& sent)
|
|
222
|
+
void
|
|
223
|
+
Ice::ObjectPrx::_iceI_getConnection(const shared_ptr<IceInternal::ProxyGetConnection>& outAsync)
|
|
284
224
|
{
|
|
285
|
-
|
|
286
|
-
{
|
|
287
|
-
public:
|
|
288
|
-
|
|
289
|
-
Cpp11CB(const ::std::function<void (const ::std::string&)>& responseFunc,
|
|
290
|
-
const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc,
|
|
291
|
-
const ::std::function<void (bool)>& sentFunc) :
|
|
292
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
|
|
293
|
-
_response(responseFunc)
|
|
294
|
-
{
|
|
295
|
-
CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
299
|
-
{
|
|
300
|
-
::Ice::ObjectPrx __proxy = ::Ice::ObjectPrx::uncheckedCast(__result->getProxy());
|
|
301
|
-
::std::string __ret;
|
|
302
|
-
try
|
|
303
|
-
{
|
|
304
|
-
__ret = __proxy->end_ice_id(__result);
|
|
305
|
-
}
|
|
306
|
-
catch(const ::Ice::Exception& ex)
|
|
307
|
-
{
|
|
308
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
if(_response != nullptr)
|
|
312
|
-
{
|
|
313
|
-
_response(__ret);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
private:
|
|
318
|
-
|
|
319
|
-
::std::function<void (const ::std::string&)> _response;
|
|
320
|
-
};
|
|
321
|
-
return begin_ice_id(ctx, new Cpp11CB(response, exception, sent), 0);
|
|
225
|
+
outAsync->invoke(ice_getConnection_name);
|
|
322
226
|
}
|
|
323
227
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
const ::Ice::Context* ctx,
|
|
327
|
-
const ::IceInternal::Function<void (const ::std::vector< ::std::string>&)>& response,
|
|
328
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
|
|
329
|
-
const ::IceInternal::Function<void (bool)>& sent)
|
|
228
|
+
void
|
|
229
|
+
Ice::ObjectPrx::_iceI_flushBatchRequests(const shared_ptr<IceInternal::ProxyFlushBatchAsync>& outAsync)
|
|
330
230
|
{
|
|
331
|
-
|
|
332
|
-
{
|
|
333
|
-
public:
|
|
334
|
-
|
|
335
|
-
Cpp11CB(const ::std::function<void (const ::std::vector< ::std::string>&)>& responseFunc,
|
|
336
|
-
const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc,
|
|
337
|
-
const ::std::function<void (bool)>& sentFunc) :
|
|
338
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
|
|
339
|
-
_response(responseFunc)
|
|
340
|
-
{
|
|
341
|
-
CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
345
|
-
{
|
|
346
|
-
::Ice::ObjectPrx __proxy = ::Ice::ObjectPrx::uncheckedCast(__result->getProxy());
|
|
347
|
-
::std::vector< ::std::string> __ret;
|
|
348
|
-
try
|
|
349
|
-
{
|
|
350
|
-
__ret = __proxy->end_ice_ids(__result);
|
|
351
|
-
}
|
|
352
|
-
catch(const ::Ice::Exception& ex)
|
|
353
|
-
{
|
|
354
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
if(_response != nullptr)
|
|
358
|
-
{
|
|
359
|
-
_response(__ret);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
private:
|
|
364
|
-
|
|
365
|
-
::std::function<void (const ::std::vector< ::std::string>&)> _response;
|
|
366
|
-
};
|
|
367
|
-
return begin_ice_ids(ctx, new Cpp11CB(response, exception, sent), 0);
|
|
231
|
+
outAsync->invoke(ice_flushBatchRequests_name);
|
|
368
232
|
}
|
|
369
233
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
const ::std::string& operation,
|
|
373
|
-
::Ice::OperationMode mode,
|
|
374
|
-
const ::std::vector< ::Ice::Byte>& inParams,
|
|
375
|
-
const ::Ice::Context* ctx,
|
|
376
|
-
const ::IceInternal::Function<void (bool, const ::std::vector< ::Ice::Byte>&)>& response,
|
|
377
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
|
|
378
|
-
const ::IceInternal::Function<void (bool)>& sent)
|
|
234
|
+
void
|
|
235
|
+
Ice::ObjectPrx::_checkTwowayOnly(const string& name) const
|
|
379
236
|
{
|
|
380
|
-
|
|
237
|
+
//
|
|
238
|
+
// No mutex lock necessary, there is nothing mutable in this operation.
|
|
239
|
+
//
|
|
240
|
+
if(!ice_isTwoway())
|
|
381
241
|
{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
Cpp11CB(const ::std::function<void (bool, const ::std::vector< ::Ice::Byte>&)>& responseFunc,
|
|
385
|
-
const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc,
|
|
386
|
-
const ::std::function<void (bool)>& sentFunc) :
|
|
387
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
|
|
388
|
-
_response(responseFunc)
|
|
389
|
-
{
|
|
390
|
-
CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
394
|
-
{
|
|
395
|
-
::Ice::ObjectPrx __proxy = ::Ice::ObjectPrx::uncheckedCast(__result->getProxy());
|
|
396
|
-
bool __ret;
|
|
397
|
-
::std::vector< ::Ice::Byte> p1;
|
|
398
|
-
try
|
|
399
|
-
{
|
|
400
|
-
__ret = __proxy->end_ice_invoke(p1, __result);
|
|
401
|
-
}
|
|
402
|
-
catch(const ::Ice::Exception& ex)
|
|
403
|
-
{
|
|
404
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
if(_response != nullptr)
|
|
408
|
-
{
|
|
409
|
-
_response(__ret, p1);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
private:
|
|
414
|
-
|
|
415
|
-
::std::function<void (bool, const ::std::vector< ::Ice::Byte>&)> _response;
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
return begin_ice_invoke(operation, mode, inParams, ctx, new Cpp11CB(response, exception, sent), 0);
|
|
242
|
+
throw Ice::TwowayOnlyException(__FILE__, __LINE__, name);
|
|
243
|
+
}
|
|
419
244
|
}
|
|
420
245
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
const ::std::string& operation,
|
|
424
|
-
::Ice::OperationMode mode,
|
|
425
|
-
const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
|
|
426
|
-
const ::Ice::Context* ctx,
|
|
427
|
-
const ::IceInternal::Function<void (bool, const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&)>& response,
|
|
428
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
|
|
429
|
-
const ::IceInternal::Function<void (bool)>& sent)
|
|
246
|
+
shared_ptr<ObjectPrx>
|
|
247
|
+
Ice::ObjectPrx::_newInstance() const
|
|
430
248
|
{
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
public:
|
|
434
|
-
|
|
435
|
-
Cpp11CB(const ::std::function<void (bool, const ::std::pair<const ::Ice::Byte*,
|
|
436
|
-
const ::Ice::Byte*>&)>& responseFunc,
|
|
437
|
-
const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc,
|
|
438
|
-
const ::std::function<void (bool)>& sentFunc) :
|
|
439
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
|
|
440
|
-
_response(responseFunc)
|
|
441
|
-
{
|
|
442
|
-
CallbackBase::checkCallback(true, _response || _exception != nullptr);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
virtual void completed(const ::Ice::AsyncResultPtr& __result) const
|
|
446
|
-
{
|
|
447
|
-
bool __ret;
|
|
448
|
-
::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> p1;
|
|
449
|
-
try
|
|
450
|
-
{
|
|
451
|
-
__ret = __result->getProxy()->___end_ice_invoke(p1, __result);
|
|
452
|
-
}
|
|
453
|
-
catch(const ::Ice::Exception& ex)
|
|
454
|
-
{
|
|
455
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
if(_response != nullptr)
|
|
459
|
-
{
|
|
460
|
-
_response(__ret, p1);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
private:
|
|
465
|
-
|
|
466
|
-
::std::function<void (bool, const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&)> _response;
|
|
467
|
-
};
|
|
468
|
-
return begin_ice_invoke(operation, mode, inParams, ctx, new Cpp11CB(response, exception, sent), 0);
|
|
249
|
+
return createProxy<ObjectPrx>();
|
|
469
250
|
}
|
|
470
251
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
const ::IceInternal::Function<void (const ::Ice::ConnectionPtr&)>& response,
|
|
474
|
-
const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception)
|
|
252
|
+
ostream&
|
|
253
|
+
Ice::operator<<(ostream& os, const Ice::ObjectPrx& p)
|
|
475
254
|
{
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
public:
|
|
255
|
+
return os << p.ice_toString();
|
|
256
|
+
}
|
|
479
257
|
|
|
480
|
-
|
|
481
|
-
const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc) :
|
|
482
|
-
::IceInternal::Cpp11FnCallbackNC(exceptionFunc, nullptr),
|
|
483
|
-
_response(responseFunc)
|
|
484
|
-
{
|
|
485
|
-
CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
|
|
486
|
-
}
|
|
258
|
+
#else // C++98 mapping
|
|
487
259
|
|
|
488
|
-
|
|
260
|
+
::Ice::ObjectPrxPtr
|
|
261
|
+
IceInternal::checkedCastImpl(const ObjectPrxPtr& b, const string& f, const string& typeId, const Context& context)
|
|
262
|
+
{
|
|
263
|
+
if(b != ICE_NULLPTR)
|
|
264
|
+
{
|
|
265
|
+
ObjectPrxPtr bb = b->ice_facet(f);
|
|
266
|
+
try
|
|
489
267
|
{
|
|
490
|
-
|
|
491
|
-
::Ice::ConnectionPtr __ret;
|
|
492
|
-
try
|
|
268
|
+
if(bb->ice_isA(typeId, context))
|
|
493
269
|
{
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
catch(const ::Ice::Exception& ex)
|
|
497
|
-
{
|
|
498
|
-
Cpp11FnCallbackNC::exception(__result, ex);
|
|
499
|
-
return;
|
|
270
|
+
return bb;
|
|
500
271
|
}
|
|
501
|
-
|
|
272
|
+
#ifndef NDEBUG
|
|
273
|
+
else
|
|
502
274
|
{
|
|
503
|
-
|
|
275
|
+
assert(typeId != "::Ice::Object");
|
|
504
276
|
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
private:
|
|
508
|
-
|
|
509
|
-
::std::function<void (const ::Ice::ConnectionPtr&)> _response;
|
|
510
|
-
};
|
|
511
|
-
return begin_ice_getConnectionInternal(new Cpp11CB(response, exception), 0);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
277
|
#endif
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
bool
|
|
518
|
-
IceProxy::Ice::Object::end_ice_isA(const AsyncResultPtr& __result)
|
|
519
|
-
{
|
|
520
|
-
AsyncResult::__check(__result, this, ice_isA_name);
|
|
521
|
-
bool __ok = __result->__wait();
|
|
522
|
-
if(!__ok)
|
|
523
|
-
{
|
|
524
|
-
try
|
|
525
|
-
{
|
|
526
|
-
__result->__throwUserException();
|
|
527
278
|
}
|
|
528
|
-
catch(const
|
|
279
|
+
catch(const FacetNotExistException&)
|
|
529
280
|
{
|
|
530
|
-
throw UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
531
281
|
}
|
|
532
282
|
}
|
|
533
|
-
|
|
534
|
-
IceInternal::BasicStream* __is = __result->__startReadParams();
|
|
535
|
-
__is->read(__ret);
|
|
536
|
-
__result->__endReadParams();
|
|
537
|
-
return __ret;
|
|
283
|
+
return ICE_NULLPTR;
|
|
538
284
|
}
|
|
539
285
|
|
|
540
|
-
|
|
541
|
-
IceProxy::Ice::Object::
|
|
286
|
+
bool
|
|
287
|
+
IceProxy::Ice::Object::operator==(const Object& r) const
|
|
542
288
|
{
|
|
543
|
-
|
|
544
|
-
__og.writeEmptyParams();
|
|
545
|
-
bool __ok = __og.invoke();
|
|
546
|
-
if(__og.hasResponse())
|
|
547
|
-
{
|
|
548
|
-
if(!__ok)
|
|
549
|
-
{
|
|
550
|
-
try
|
|
551
|
-
{
|
|
552
|
-
__og.throwUserException();
|
|
553
|
-
}
|
|
554
|
-
catch(const ::Ice::UserException& __ex)
|
|
555
|
-
{
|
|
556
|
-
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
__og.readEmptyParams();
|
|
560
|
-
}
|
|
289
|
+
return _reference == r._reference;
|
|
561
290
|
}
|
|
562
291
|
|
|
563
|
-
|
|
564
|
-
IceProxy::Ice::Object::
|
|
565
|
-
const ::IceInternal::CallbackBasePtr& del,
|
|
566
|
-
const ::Ice::LocalObjectPtr& cookie)
|
|
292
|
+
bool
|
|
293
|
+
IceProxy::Ice::Object::operator<(const Object& r) const
|
|
567
294
|
{
|
|
568
|
-
|
|
295
|
+
return _reference < r._reference;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
Ice::AsyncResultPtr
|
|
299
|
+
IceProxy::Ice::Object::_iceI_begin_ice_isA(const string& typeId,
|
|
300
|
+
const Context& ctx,
|
|
301
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
302
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
303
|
+
bool sync)
|
|
304
|
+
{
|
|
305
|
+
_checkTwowayOnly(ice_isA_name, sync);
|
|
306
|
+
OutgoingAsyncPtr result = new CallbackOutgoing(this, ice_isA_name, del, cookie, sync);
|
|
569
307
|
try
|
|
570
308
|
{
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
309
|
+
result->prepare(ice_isA_name, Nonmutating, ctx);
|
|
310
|
+
::Ice::OutputStream* ostr = result->startWriteParams(ICE_ENUM(FormatType, DefaultFormat));
|
|
311
|
+
ostr->write(typeId, false);
|
|
312
|
+
result->endWriteParams();
|
|
313
|
+
result->invoke(ice_isA_name);
|
|
574
314
|
}
|
|
575
|
-
catch(const Exception&
|
|
315
|
+
catch(const Exception& ex)
|
|
576
316
|
{
|
|
577
|
-
|
|
317
|
+
result->abort(ex);
|
|
578
318
|
}
|
|
579
|
-
return
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
void
|
|
583
|
-
IceProxy::Ice::Object::end_ice_ping(const AsyncResultPtr& __result)
|
|
584
|
-
{
|
|
585
|
-
__end(__result, ice_ping_name);
|
|
319
|
+
return result;
|
|
586
320
|
}
|
|
587
321
|
|
|
588
|
-
|
|
589
|
-
IceProxy::Ice::Object::
|
|
322
|
+
bool
|
|
323
|
+
IceProxy::Ice::Object::end_ice_isA(const AsyncResultPtr& result)
|
|
590
324
|
{
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
if(!__og.invoke())
|
|
325
|
+
AsyncResult::_check(result, this, ice_isA_name);
|
|
326
|
+
bool ok = result->_waitForResponse();
|
|
327
|
+
if(!ok)
|
|
595
328
|
{
|
|
596
329
|
try
|
|
597
330
|
{
|
|
598
|
-
|
|
331
|
+
result->_throwUserException();
|
|
599
332
|
}
|
|
600
|
-
catch(const
|
|
333
|
+
catch(const UserException& ex)
|
|
601
334
|
{
|
|
602
|
-
throw
|
|
335
|
+
throw UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
603
336
|
}
|
|
604
337
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
return
|
|
338
|
+
bool ret;
|
|
339
|
+
::Ice::InputStream* istr = result->_startReadParams();
|
|
340
|
+
istr->read(ret);
|
|
341
|
+
result->_endReadParams();
|
|
342
|
+
return ret;
|
|
610
343
|
}
|
|
611
344
|
|
|
612
|
-
|
|
613
|
-
IceProxy::Ice::Object::
|
|
345
|
+
AsyncResultPtr
|
|
346
|
+
IceProxy::Ice::Object::_iceI_begin_ice_ping(const Context& ctx,
|
|
347
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
348
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
349
|
+
bool sync)
|
|
614
350
|
{
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
__og.writeEmptyParams();
|
|
618
|
-
if(!__og.invoke())
|
|
351
|
+
OutgoingAsyncPtr result = new CallbackOutgoing(this, ice_ping_name, del, cookie, sync);
|
|
352
|
+
try
|
|
619
353
|
{
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}
|
|
624
|
-
catch(const ::Ice::UserException& __ex)
|
|
625
|
-
{
|
|
626
|
-
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
627
|
-
}
|
|
354
|
+
result->prepare(ice_ping_name, Nonmutating, ctx);
|
|
355
|
+
result->writeEmptyParams();
|
|
356
|
+
result->invoke(ice_ping_name);
|
|
628
357
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
return
|
|
358
|
+
catch(const Exception& ex)
|
|
359
|
+
{
|
|
360
|
+
result->abort(ex);
|
|
361
|
+
}
|
|
362
|
+
return result;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
void
|
|
366
|
+
IceProxy::Ice::Object::end_ice_ping(const AsyncResultPtr& result)
|
|
367
|
+
{
|
|
368
|
+
_end(result, ice_ping_name);
|
|
634
369
|
}
|
|
635
370
|
|
|
636
371
|
AsyncResultPtr
|
|
637
|
-
IceProxy::Ice::Object::
|
|
638
|
-
|
|
639
|
-
|
|
372
|
+
IceProxy::Ice::Object::_iceI_begin_ice_ids(const Context& ctx,
|
|
373
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
374
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
375
|
+
bool sync)
|
|
640
376
|
{
|
|
641
|
-
|
|
642
|
-
OutgoingAsyncPtr
|
|
377
|
+
_checkTwowayOnly(ice_ids_name, sync);
|
|
378
|
+
OutgoingAsyncPtr result = new CallbackOutgoing(this, ice_ids_name, del, cookie, sync);
|
|
643
379
|
try
|
|
644
380
|
{
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
381
|
+
result->prepare(ice_ids_name, Nonmutating, ctx);
|
|
382
|
+
result->writeEmptyParams();
|
|
383
|
+
result->invoke(ice_ids_name);
|
|
648
384
|
}
|
|
649
|
-
catch(const Exception&
|
|
385
|
+
catch(const Exception& ex)
|
|
650
386
|
{
|
|
651
|
-
|
|
387
|
+
result->abort(ex);
|
|
652
388
|
}
|
|
653
|
-
return
|
|
389
|
+
return result;
|
|
654
390
|
}
|
|
655
391
|
|
|
656
392
|
vector<string>
|
|
657
|
-
IceProxy::Ice::Object::end_ice_ids(const AsyncResultPtr&
|
|
393
|
+
IceProxy::Ice::Object::end_ice_ids(const AsyncResultPtr& result)
|
|
658
394
|
{
|
|
659
|
-
AsyncResult::
|
|
660
|
-
bool
|
|
661
|
-
if(!
|
|
395
|
+
AsyncResult::_check(result, this, ice_ids_name);
|
|
396
|
+
bool ok = result->_waitForResponse();
|
|
397
|
+
if(!ok)
|
|
662
398
|
{
|
|
663
399
|
try
|
|
664
400
|
{
|
|
665
|
-
|
|
401
|
+
result->_throwUserException();
|
|
666
402
|
}
|
|
667
|
-
catch(const UserException&
|
|
403
|
+
catch(const UserException& ex)
|
|
668
404
|
{
|
|
669
|
-
throw UnknownUserException(__FILE__, __LINE__,
|
|
405
|
+
throw UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
670
406
|
}
|
|
671
407
|
}
|
|
672
|
-
vector<string>
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return
|
|
408
|
+
vector<string> ret;
|
|
409
|
+
::Ice::InputStream* istr = result->_startReadParams();
|
|
410
|
+
istr->read(ret, false);
|
|
411
|
+
result->_endReadParams();
|
|
412
|
+
return ret;
|
|
677
413
|
}
|
|
678
414
|
|
|
679
415
|
AsyncResultPtr
|
|
680
|
-
IceProxy::Ice::Object::
|
|
681
|
-
|
|
682
|
-
|
|
416
|
+
IceProxy::Ice::Object::_iceI_begin_ice_id(const Context& ctx,
|
|
417
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
418
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
419
|
+
bool sync)
|
|
683
420
|
{
|
|
684
|
-
|
|
685
|
-
OutgoingAsyncPtr
|
|
421
|
+
_checkTwowayOnly(ice_id_name, sync);
|
|
422
|
+
OutgoingAsyncPtr result = new CallbackOutgoing(this, ice_id_name, del, cookie, sync);
|
|
686
423
|
try
|
|
687
424
|
{
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
425
|
+
result->prepare(ice_id_name, Nonmutating, ctx);
|
|
426
|
+
result->writeEmptyParams();
|
|
427
|
+
result->invoke(ice_id_name);
|
|
691
428
|
}
|
|
692
|
-
catch(const Exception&
|
|
429
|
+
catch(const Exception& ex)
|
|
693
430
|
{
|
|
694
|
-
|
|
431
|
+
result->abort(ex);
|
|
695
432
|
}
|
|
696
|
-
return
|
|
433
|
+
return result;
|
|
697
434
|
}
|
|
698
435
|
|
|
699
436
|
string
|
|
700
|
-
IceProxy::Ice::Object::end_ice_id(const AsyncResultPtr&
|
|
437
|
+
IceProxy::Ice::Object::end_ice_id(const AsyncResultPtr& result)
|
|
701
438
|
{
|
|
702
|
-
AsyncResult::
|
|
703
|
-
bool
|
|
704
|
-
if(!
|
|
439
|
+
AsyncResult::_check(result, this, ice_id_name);
|
|
440
|
+
bool ok = result->_waitForResponse();
|
|
441
|
+
if(!ok)
|
|
705
442
|
{
|
|
706
443
|
try
|
|
707
444
|
{
|
|
708
|
-
|
|
445
|
+
result->_throwUserException();
|
|
709
446
|
}
|
|
710
|
-
catch(const UserException&
|
|
447
|
+
catch(const UserException& ex)
|
|
711
448
|
{
|
|
712
|
-
throw UnknownUserException(__FILE__, __LINE__,
|
|
449
|
+
throw UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
713
450
|
}
|
|
714
451
|
}
|
|
715
|
-
string
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
return
|
|
452
|
+
string ret;
|
|
453
|
+
::Ice::InputStream* istr = result->_startReadParams();
|
|
454
|
+
istr->read(ret, false);
|
|
455
|
+
result->_endReadParams();
|
|
456
|
+
return ret;
|
|
720
457
|
}
|
|
721
458
|
|
|
722
459
|
bool
|
|
@@ -724,7 +461,7 @@ IceProxy::Ice::Object::ice_invoke(const string& operation,
|
|
|
724
461
|
OperationMode mode,
|
|
725
462
|
const vector<Byte>& inEncaps,
|
|
726
463
|
vector<Byte>& outEncaps,
|
|
727
|
-
const Context
|
|
464
|
+
const Context& context)
|
|
728
465
|
{
|
|
729
466
|
pair<const Byte*, const Byte*> inPair;
|
|
730
467
|
if(inEncaps.empty())
|
|
@@ -739,113 +476,252 @@ IceProxy::Ice::Object::ice_invoke(const string& operation,
|
|
|
739
476
|
return ice_invoke(operation, mode, inPair, outEncaps, context);
|
|
740
477
|
}
|
|
741
478
|
|
|
742
|
-
AsyncResultPtr
|
|
743
|
-
IceProxy::Ice::Object::
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
inPair.
|
|
759
|
-
|
|
760
|
-
|
|
479
|
+
AsyncResultPtr
|
|
480
|
+
IceProxy::Ice::Object::_iceI_begin_ice_invoke(const string& operation,
|
|
481
|
+
OperationMode mode,
|
|
482
|
+
const vector<Byte>& inEncaps,
|
|
483
|
+
const Context& ctx,
|
|
484
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
485
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
486
|
+
bool sync)
|
|
487
|
+
{
|
|
488
|
+
pair<const Byte*, const Byte*> inPair;
|
|
489
|
+
if(inEncaps.empty())
|
|
490
|
+
{
|
|
491
|
+
inPair.first = inPair.second = 0;
|
|
492
|
+
}
|
|
493
|
+
else
|
|
494
|
+
{
|
|
495
|
+
inPair.first = &inEncaps[0];
|
|
496
|
+
inPair.second = inPair.first + inEncaps.size();
|
|
497
|
+
}
|
|
498
|
+
return _iceI_begin_ice_invoke(operation, mode, inPair, ctx, del, cookie);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
bool
|
|
502
|
+
IceProxy::Ice::Object::end_ice_invoke(vector<Byte>& outEncaps, const AsyncResultPtr& result)
|
|
503
|
+
{
|
|
504
|
+
AsyncResult::_check(result, this, ice_invoke_name);
|
|
505
|
+
bool ok = result->_waitForResponse();
|
|
506
|
+
if(_reference->getMode() == Reference::ModeTwoway)
|
|
507
|
+
{
|
|
508
|
+
const Byte* v;
|
|
509
|
+
Int sz;
|
|
510
|
+
result->_readParamEncaps(v, sz);
|
|
511
|
+
vector<Byte>(v, v + sz).swap(outEncaps);
|
|
512
|
+
}
|
|
513
|
+
return ok;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
AsyncResultPtr
|
|
517
|
+
IceProxy::Ice::Object::_iceI_begin_ice_invoke(const string& operation,
|
|
518
|
+
OperationMode mode,
|
|
519
|
+
const pair<const Byte*, const Byte*>& inEncaps,
|
|
520
|
+
const Context& ctx,
|
|
521
|
+
const ::IceInternal::CallbackBasePtr& del,
|
|
522
|
+
const ::Ice::LocalObjectPtr& cookie,
|
|
523
|
+
bool sync)
|
|
524
|
+
{
|
|
525
|
+
OutgoingAsyncPtr result = new CallbackOutgoing(this, ice_invoke_name, del, cookie, sync);
|
|
526
|
+
try
|
|
527
|
+
{
|
|
528
|
+
result->prepare(operation, mode, ctx);
|
|
529
|
+
result->writeParamEncaps(inEncaps.first, static_cast<Int>(inEncaps.second - inEncaps.first));
|
|
530
|
+
result->invoke(operation);
|
|
531
|
+
}
|
|
532
|
+
catch(const Exception& ex)
|
|
533
|
+
{
|
|
534
|
+
result->abort(ex);
|
|
535
|
+
}
|
|
536
|
+
return result;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
bool
|
|
540
|
+
IceProxy::Ice::Object::_iceI_end_ice_invoke(pair<const Byte*, const Byte*>& outEncaps, const AsyncResultPtr& result)
|
|
541
|
+
{
|
|
542
|
+
AsyncResult::_check(result, this, ice_invoke_name);
|
|
543
|
+
bool ok = result->_waitForResponse();
|
|
544
|
+
if(_reference->getMode() == Reference::ModeTwoway)
|
|
545
|
+
{
|
|
546
|
+
Int sz;
|
|
547
|
+
result->_readParamEncaps(outEncaps.first, sz);
|
|
548
|
+
outEncaps.second = outEncaps.first + sz;
|
|
549
|
+
}
|
|
550
|
+
return ok;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
::Ice::AsyncResultPtr
|
|
554
|
+
IceProxy::Ice::Object::_iceI_begin_ice_flushBatchRequests(const ::IceInternal::CallbackBasePtr& del,
|
|
555
|
+
const ::Ice::LocalObjectPtr& cookie)
|
|
556
|
+
{
|
|
557
|
+
class ProxyFlushBatchAsyncWithCallback : public ProxyFlushBatchAsync, public CallbackCompletion
|
|
558
|
+
{
|
|
559
|
+
public:
|
|
560
|
+
|
|
561
|
+
ProxyFlushBatchAsyncWithCallback(const ::Ice::ObjectPrx& proxy,
|
|
562
|
+
const CallbackBasePtr& cb,
|
|
563
|
+
const ::Ice::LocalObjectPtr& cookie) :
|
|
564
|
+
ProxyFlushBatchAsync(proxy), CallbackCompletion(cb, cookie)
|
|
565
|
+
{
|
|
566
|
+
_cookie = cookie;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
virtual const std::string&
|
|
570
|
+
getOperation() const
|
|
571
|
+
{
|
|
572
|
+
return ice_flushBatchRequests_name;
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
ProxyFlushBatchAsyncPtr result = new ProxyFlushBatchAsyncWithCallback(this, del, cookie);
|
|
577
|
+
try
|
|
578
|
+
{
|
|
579
|
+
result->invoke(ice_flushBatchRequests_name);
|
|
580
|
+
}
|
|
581
|
+
catch(const Exception& ex)
|
|
582
|
+
{
|
|
583
|
+
result->abort(ex);
|
|
584
|
+
}
|
|
585
|
+
return result;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
void
|
|
589
|
+
IceProxy::Ice::Object::end_ice_flushBatchRequests(const AsyncResultPtr& result)
|
|
590
|
+
{
|
|
591
|
+
AsyncResult::_check(result, this, ice_flushBatchRequests_name);
|
|
592
|
+
result->_waitForResponse();
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
void
|
|
596
|
+
IceProxy::Ice::Object::_end(const ::Ice::AsyncResultPtr& result, const std::string& operation) const
|
|
597
|
+
{
|
|
598
|
+
AsyncResult::_check(result, this, operation);
|
|
599
|
+
bool ok = result->_waitForResponse();
|
|
600
|
+
if(_reference->getMode() == Reference::ModeTwoway)
|
|
601
|
+
{
|
|
602
|
+
if(!ok)
|
|
603
|
+
{
|
|
604
|
+
try
|
|
605
|
+
{
|
|
606
|
+
result->_throwUserException();
|
|
607
|
+
}
|
|
608
|
+
catch(const UserException& ex)
|
|
609
|
+
{
|
|
610
|
+
throw UnknownUserException(__FILE__, __LINE__, ex.ice_id());
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
result->_readEmptyParams();
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
namespace IceProxy
|
|
618
|
+
{
|
|
619
|
+
|
|
620
|
+
namespace Ice
|
|
621
|
+
{
|
|
622
|
+
|
|
623
|
+
ostream&
|
|
624
|
+
operator<<(ostream& os, const ::IceProxy::Ice::Object& p)
|
|
625
|
+
{
|
|
626
|
+
return os << p.ice_toString();
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
}
|
|
630
|
+
|
|
761
631
|
}
|
|
762
632
|
|
|
763
|
-
|
|
764
|
-
IceProxy::Ice::Object::
|
|
633
|
+
IceProxy::Ice::Object*
|
|
634
|
+
IceProxy::Ice::Object::_newInstance() const
|
|
765
635
|
{
|
|
766
|
-
|
|
767
|
-
bool ok = __result->__wait();
|
|
768
|
-
if(_reference->getMode() == Reference::ModeTwoway)
|
|
769
|
-
{
|
|
770
|
-
const Byte* v;
|
|
771
|
-
Int sz;
|
|
772
|
-
__result->__readParamEncaps(v, sz);
|
|
773
|
-
vector<Byte>(v, v + sz).swap(outEncaps);
|
|
774
|
-
}
|
|
775
|
-
return ok;
|
|
636
|
+
return new Object;
|
|
776
637
|
}
|
|
777
638
|
|
|
778
|
-
|
|
779
|
-
IceProxy::Ice::Object::
|
|
780
|
-
|
|
781
|
-
const pair<const Byte*, const Byte*>& inEncaps,
|
|
782
|
-
vector<Byte>& outEncaps,
|
|
783
|
-
const Context* context)
|
|
639
|
+
AsyncResultPtr
|
|
640
|
+
IceProxy::Ice::Object::_iceI_begin_ice_getConnection(const ::IceInternal::CallbackBasePtr& del,
|
|
641
|
+
const ::Ice::LocalObjectPtr& cookie)
|
|
784
642
|
{
|
|
785
|
-
|
|
786
|
-
try
|
|
787
|
-
{
|
|
788
|
-
__og.writeParamEncaps(inEncaps.first, static_cast<Int>(inEncaps.second - inEncaps.first));
|
|
789
|
-
}
|
|
790
|
-
catch(const ::Ice::LocalException& __ex)
|
|
791
|
-
{
|
|
792
|
-
__og.abort(__ex);
|
|
793
|
-
}
|
|
794
|
-
bool ok = __og.invoke();
|
|
795
|
-
if(_reference->getMode() == Reference::ModeTwoway)
|
|
643
|
+
class ProxyGetConnectionWithCallback : public ProxyGetConnection, public CallbackCompletion
|
|
796
644
|
{
|
|
797
|
-
|
|
798
|
-
Int sz;
|
|
799
|
-
__og.readParamEncaps(v, sz);
|
|
800
|
-
vector<Byte>(v, v + sz).swap(outEncaps);
|
|
801
|
-
}
|
|
802
|
-
return ok;
|
|
803
|
-
}
|
|
645
|
+
public:
|
|
804
646
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
647
|
+
ProxyGetConnectionWithCallback(const ::Ice::ObjectPrx& proxy,
|
|
648
|
+
const ::IceInternal::CallbackBasePtr& cb,
|
|
649
|
+
const ::Ice::LocalObjectPtr& cookie) :
|
|
650
|
+
ProxyGetConnection(proxy), CallbackCompletion(cb, cookie)
|
|
651
|
+
{
|
|
652
|
+
_cookie = cookie;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
virtual const std::string&
|
|
656
|
+
getOperation() const
|
|
657
|
+
{
|
|
658
|
+
return ice_getConnection_name;
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
ProxyGetConnectionPtr result = new ProxyGetConnectionWithCallback(this, del, cookie);
|
|
814
663
|
try
|
|
815
664
|
{
|
|
816
|
-
|
|
817
|
-
__result->writeParamEncaps(inEncaps.first, static_cast<Int>(inEncaps.second - inEncaps.first));
|
|
818
|
-
__result->invoke();
|
|
665
|
+
result->invoke(ice_getConnection_name);
|
|
819
666
|
}
|
|
820
|
-
catch(const Exception&
|
|
667
|
+
catch(const Exception& ex)
|
|
821
668
|
{
|
|
822
|
-
|
|
669
|
+
result->abort(ex);
|
|
823
670
|
}
|
|
824
|
-
return
|
|
671
|
+
return result;
|
|
825
672
|
}
|
|
826
673
|
|
|
827
|
-
|
|
828
|
-
IceProxy::Ice::Object::
|
|
674
|
+
ConnectionPtr
|
|
675
|
+
IceProxy::Ice::Object::end_ice_getConnection(const AsyncResultPtr& result)
|
|
829
676
|
{
|
|
830
|
-
AsyncResult::
|
|
831
|
-
|
|
832
|
-
|
|
677
|
+
AsyncResult::_check(result, this, ice_getConnection_name);
|
|
678
|
+
result->_waitForResponse();
|
|
679
|
+
return result->getConnection();
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
void
|
|
683
|
+
IceProxy::Ice::Object::_checkTwowayOnly(const string& name, bool sync) const
|
|
684
|
+
{
|
|
685
|
+
//
|
|
686
|
+
// No mutex lock necessary, there is nothing mutable in this operation.
|
|
687
|
+
//
|
|
688
|
+
if(!ice_isTwoway())
|
|
833
689
|
{
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
690
|
+
if(sync)
|
|
691
|
+
{
|
|
692
|
+
throw TwowayOnlyException(__FILE__, __LINE__, name);
|
|
693
|
+
}
|
|
694
|
+
else
|
|
695
|
+
{
|
|
696
|
+
throw IceUtil::IllegalArgumentException(__FILE__,
|
|
697
|
+
__LINE__,
|
|
698
|
+
"`" + name + "' can only be called with a twoway proxy");
|
|
699
|
+
}
|
|
837
700
|
}
|
|
838
|
-
return ok;
|
|
839
701
|
}
|
|
840
702
|
|
|
703
|
+
#endif
|
|
704
|
+
|
|
705
|
+
#ifdef ICE_CPP11_MAPPING
|
|
706
|
+
# define ICE_OBJECT_PRX Ice::ObjectPrx
|
|
707
|
+
# define CONST_POINTER_CAST_OBJECT_PRX const_pointer_cast<ObjectPrx>(shared_from_this())
|
|
708
|
+
#else
|
|
709
|
+
# define ICE_OBJECT_PRX IceProxy::Ice::Object
|
|
710
|
+
# define CONST_POINTER_CAST_OBJECT_PRX ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this))
|
|
711
|
+
#endif
|
|
712
|
+
|
|
713
|
+
//
|
|
714
|
+
// methods common for both C++11/C++98 mappings
|
|
715
|
+
//
|
|
716
|
+
|
|
841
717
|
Identity
|
|
842
|
-
|
|
718
|
+
ICE_OBJECT_PRX::ice_getIdentity() const
|
|
843
719
|
{
|
|
844
720
|
return _reference->getIdentity();
|
|
845
721
|
}
|
|
846
722
|
|
|
847
|
-
|
|
848
|
-
|
|
723
|
+
ObjectPrxPtr
|
|
724
|
+
ICE_OBJECT_PRX::ice_identity(const Identity& newIdentity) const
|
|
849
725
|
{
|
|
850
726
|
if(newIdentity.name.empty())
|
|
851
727
|
{
|
|
@@ -853,571 +729,538 @@ IceProxy::Ice::Object::ice_identity(const Identity& newIdentity) const
|
|
|
853
729
|
}
|
|
854
730
|
if(newIdentity == _reference->getIdentity())
|
|
855
731
|
{
|
|
856
|
-
return
|
|
732
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
857
733
|
}
|
|
858
734
|
else
|
|
859
735
|
{
|
|
860
|
-
|
|
736
|
+
#ifdef ICE_CPP11_MAPPING
|
|
737
|
+
auto proxy = createProxy<ObjectPrx>();
|
|
738
|
+
#else
|
|
739
|
+
ObjectPrxPtr proxy = new IceProxy::Ice::Object;
|
|
740
|
+
#endif
|
|
861
741
|
proxy->setup(_reference->changeIdentity(newIdentity));
|
|
862
742
|
return proxy;
|
|
863
743
|
}
|
|
864
744
|
}
|
|
865
745
|
|
|
866
746
|
Context
|
|
867
|
-
|
|
747
|
+
ICE_OBJECT_PRX::ice_getContext() const
|
|
868
748
|
{
|
|
869
749
|
return _reference->getContext()->getValue();
|
|
870
750
|
}
|
|
871
751
|
|
|
872
|
-
|
|
873
|
-
|
|
752
|
+
ObjectPrxPtr
|
|
753
|
+
ICE_OBJECT_PRX::ice_context(const Context& newContext) const
|
|
874
754
|
{
|
|
875
|
-
|
|
755
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
876
756
|
proxy->setup(_reference->changeContext(newContext));
|
|
877
757
|
return proxy;
|
|
878
758
|
}
|
|
879
759
|
|
|
880
760
|
const string&
|
|
881
|
-
|
|
761
|
+
ICE_OBJECT_PRX::ice_getFacet() const
|
|
882
762
|
{
|
|
883
763
|
return _reference->getFacet();
|
|
884
764
|
}
|
|
885
765
|
|
|
886
|
-
|
|
887
|
-
|
|
766
|
+
ObjectPrxPtr
|
|
767
|
+
ICE_OBJECT_PRX::ice_facet(const string& newFacet) const
|
|
888
768
|
{
|
|
889
769
|
if(newFacet == _reference->getFacet())
|
|
890
770
|
{
|
|
891
|
-
return
|
|
771
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
892
772
|
}
|
|
893
773
|
else
|
|
894
774
|
{
|
|
895
|
-
|
|
775
|
+
#ifdef ICE_CPP11_MAPPING
|
|
776
|
+
auto proxy = createProxy<ObjectPrx>();
|
|
777
|
+
#else
|
|
778
|
+
ObjectPrx proxy = new IceProxy::Ice::Object;
|
|
779
|
+
#endif
|
|
896
780
|
proxy->setup(_reference->changeFacet(newFacet));
|
|
897
781
|
return proxy;
|
|
898
782
|
}
|
|
899
783
|
}
|
|
900
784
|
|
|
901
785
|
string
|
|
902
|
-
|
|
786
|
+
ICE_OBJECT_PRX::ice_getAdapterId() const
|
|
903
787
|
{
|
|
904
788
|
return _reference->getAdapterId();
|
|
905
789
|
}
|
|
906
790
|
|
|
907
|
-
|
|
908
|
-
|
|
791
|
+
ObjectPrxPtr
|
|
792
|
+
ICE_OBJECT_PRX::ice_adapterId(const string& newAdapterId) const
|
|
909
793
|
{
|
|
910
794
|
if(newAdapterId == _reference->getAdapterId())
|
|
911
795
|
{
|
|
912
|
-
return
|
|
796
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
913
797
|
}
|
|
914
798
|
else
|
|
915
799
|
{
|
|
916
|
-
|
|
800
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
917
801
|
proxy->setup(_reference->changeAdapterId(newAdapterId));
|
|
918
802
|
return proxy;
|
|
919
803
|
}
|
|
920
804
|
}
|
|
921
805
|
|
|
922
806
|
EndpointSeq
|
|
923
|
-
|
|
807
|
+
ICE_OBJECT_PRX::ice_getEndpoints() const
|
|
924
808
|
{
|
|
925
809
|
vector<EndpointIPtr> endpoints = _reference->getEndpoints();
|
|
926
810
|
EndpointSeq retSeq;
|
|
927
811
|
for(vector<EndpointIPtr>::const_iterator p = endpoints.begin(); p != endpoints.end(); ++p)
|
|
928
812
|
{
|
|
929
|
-
retSeq.push_back(
|
|
813
|
+
retSeq.push_back(ICE_DYNAMIC_CAST(Endpoint, *p));
|
|
930
814
|
}
|
|
931
815
|
return retSeq;
|
|
932
816
|
}
|
|
933
817
|
|
|
934
|
-
|
|
935
|
-
|
|
818
|
+
ObjectPrxPtr
|
|
819
|
+
ICE_OBJECT_PRX::ice_endpoints(const EndpointSeq& newEndpoints) const
|
|
936
820
|
{
|
|
937
821
|
vector<EndpointIPtr> endpoints;
|
|
938
822
|
for(EndpointSeq::const_iterator p = newEndpoints.begin(); p != newEndpoints.end(); ++p)
|
|
939
823
|
{
|
|
940
|
-
endpoints.push_back(
|
|
824
|
+
endpoints.push_back(ICE_DYNAMIC_CAST(EndpointI, *p));
|
|
941
825
|
}
|
|
942
826
|
|
|
943
827
|
if(endpoints == _reference->getEndpoints())
|
|
944
828
|
{
|
|
945
|
-
return
|
|
829
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
946
830
|
}
|
|
947
831
|
else
|
|
948
832
|
{
|
|
949
|
-
|
|
833
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
950
834
|
proxy->setup(_reference->changeEndpoints(endpoints));
|
|
951
835
|
return proxy;
|
|
952
836
|
}
|
|
953
837
|
}
|
|
954
838
|
|
|
955
839
|
Int
|
|
956
|
-
|
|
840
|
+
ICE_OBJECT_PRX::ice_getLocatorCacheTimeout() const
|
|
957
841
|
{
|
|
958
842
|
return _reference->getLocatorCacheTimeout();
|
|
959
843
|
}
|
|
960
844
|
|
|
961
|
-
|
|
962
|
-
|
|
845
|
+
ObjectPrxPtr
|
|
846
|
+
ICE_OBJECT_PRX::ice_locatorCacheTimeout(Int newTimeout) const
|
|
963
847
|
{
|
|
964
848
|
if(newTimeout < -1)
|
|
965
849
|
{
|
|
966
850
|
ostringstream s;
|
|
967
851
|
s << "invalid value passed to ice_locatorCacheTimeout: " << newTimeout;
|
|
852
|
+
#ifdef ICE_CPP11_MAPPING
|
|
853
|
+
throw invalid_argument(s.str());
|
|
854
|
+
#else
|
|
968
855
|
throw IceUtil::IllegalArgumentException(__FILE__, __LINE__, s.str());
|
|
856
|
+
#endif
|
|
969
857
|
}
|
|
970
858
|
if(newTimeout == _reference->getLocatorCacheTimeout())
|
|
971
859
|
{
|
|
972
|
-
return
|
|
860
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
973
861
|
}
|
|
974
862
|
else
|
|
975
863
|
{
|
|
976
|
-
|
|
864
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
977
865
|
proxy->setup(_reference->changeLocatorCacheTimeout(newTimeout));
|
|
978
866
|
return proxy;
|
|
979
867
|
}
|
|
980
868
|
}
|
|
981
869
|
|
|
982
870
|
bool
|
|
983
|
-
|
|
871
|
+
ICE_OBJECT_PRX::ice_isConnectionCached() const
|
|
984
872
|
{
|
|
985
873
|
return _reference->getCacheConnection();
|
|
986
874
|
}
|
|
987
875
|
|
|
988
|
-
|
|
989
|
-
|
|
876
|
+
ObjectPrxPtr
|
|
877
|
+
ICE_OBJECT_PRX::ice_connectionCached(bool newCache) const
|
|
990
878
|
{
|
|
991
879
|
if(newCache == _reference->getCacheConnection())
|
|
992
880
|
{
|
|
993
|
-
return
|
|
881
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
994
882
|
}
|
|
995
883
|
else
|
|
996
884
|
{
|
|
997
|
-
|
|
885
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
998
886
|
proxy->setup(_reference->changeCacheConnection(newCache));
|
|
999
887
|
return proxy;
|
|
1000
888
|
}
|
|
1001
889
|
}
|
|
1002
890
|
|
|
1003
891
|
EndpointSelectionType
|
|
1004
|
-
|
|
892
|
+
ICE_OBJECT_PRX::ice_getEndpointSelection() const
|
|
1005
893
|
{
|
|
1006
894
|
return _reference->getEndpointSelection();
|
|
1007
895
|
}
|
|
1008
896
|
|
|
1009
|
-
|
|
1010
|
-
|
|
897
|
+
ObjectPrxPtr
|
|
898
|
+
ICE_OBJECT_PRX::ice_endpointSelection(EndpointSelectionType newType) const
|
|
1011
899
|
{
|
|
1012
900
|
if(newType == _reference->getEndpointSelection())
|
|
1013
901
|
{
|
|
1014
|
-
return
|
|
902
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1015
903
|
}
|
|
1016
904
|
else
|
|
1017
905
|
{
|
|
1018
|
-
|
|
906
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1019
907
|
proxy->setup(_reference->changeEndpointSelection(newType));
|
|
1020
908
|
return proxy;
|
|
1021
909
|
}
|
|
1022
910
|
}
|
|
1023
911
|
|
|
1024
912
|
bool
|
|
1025
|
-
|
|
913
|
+
ICE_OBJECT_PRX::ice_isSecure() const
|
|
1026
914
|
{
|
|
1027
915
|
return _reference->getSecure();
|
|
1028
916
|
}
|
|
1029
917
|
|
|
1030
|
-
|
|
1031
|
-
|
|
918
|
+
ObjectPrxPtr
|
|
919
|
+
ICE_OBJECT_PRX::ice_secure(bool b) const
|
|
1032
920
|
{
|
|
1033
921
|
if(b == _reference->getSecure())
|
|
1034
922
|
{
|
|
1035
|
-
return
|
|
923
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1036
924
|
}
|
|
1037
925
|
else
|
|
1038
926
|
{
|
|
1039
|
-
|
|
927
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1040
928
|
proxy->setup(_reference->changeSecure(b));
|
|
1041
929
|
return proxy;
|
|
1042
930
|
}
|
|
1043
931
|
}
|
|
1044
932
|
|
|
1045
933
|
::Ice::EncodingVersion
|
|
1046
|
-
|
|
934
|
+
ICE_OBJECT_PRX::ice_getEncodingVersion() const
|
|
1047
935
|
{
|
|
1048
936
|
return _reference->getEncoding();
|
|
1049
937
|
}
|
|
1050
938
|
|
|
1051
|
-
|
|
1052
|
-
|
|
939
|
+
ObjectPrxPtr
|
|
940
|
+
ICE_OBJECT_PRX::ice_encodingVersion(const ::Ice::EncodingVersion& encoding) const
|
|
1053
941
|
{
|
|
1054
942
|
if(encoding == _reference->getEncoding())
|
|
1055
943
|
{
|
|
1056
|
-
return
|
|
944
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1057
945
|
}
|
|
1058
946
|
else
|
|
1059
947
|
{
|
|
1060
|
-
|
|
948
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1061
949
|
proxy->setup(_reference->changeEncoding(encoding));
|
|
1062
950
|
return proxy;
|
|
1063
951
|
}
|
|
1064
952
|
}
|
|
1065
953
|
|
|
1066
954
|
bool
|
|
1067
|
-
|
|
955
|
+
ICE_OBJECT_PRX::ice_isPreferSecure() const
|
|
1068
956
|
{
|
|
1069
957
|
return _reference->getPreferSecure();
|
|
1070
958
|
}
|
|
1071
959
|
|
|
1072
|
-
|
|
1073
|
-
|
|
960
|
+
ObjectPrxPtr
|
|
961
|
+
ICE_OBJECT_PRX::ice_preferSecure(bool b) const
|
|
1074
962
|
{
|
|
1075
963
|
if(b == _reference->getPreferSecure())
|
|
1076
964
|
{
|
|
1077
|
-
return
|
|
965
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1078
966
|
}
|
|
1079
967
|
else
|
|
1080
968
|
{
|
|
1081
|
-
|
|
969
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1082
970
|
proxy->setup(_reference->changePreferSecure(b));
|
|
1083
971
|
return proxy;
|
|
1084
972
|
}
|
|
1085
973
|
}
|
|
1086
974
|
|
|
1087
|
-
|
|
1088
|
-
|
|
975
|
+
RouterPrxPtr
|
|
976
|
+
ICE_OBJECT_PRX::ice_getRouter() const
|
|
1089
977
|
{
|
|
1090
978
|
RouterInfoPtr ri = _reference->getRouterInfo();
|
|
1091
|
-
|
|
979
|
+
#ifdef ICE_CPP11_MAPPING
|
|
980
|
+
return ri ? ri->getRouter() : nullptr;
|
|
981
|
+
#else
|
|
982
|
+
return ri ? ri->getRouter() : RouterPrxPtr();
|
|
983
|
+
#endif
|
|
1092
984
|
}
|
|
1093
985
|
|
|
1094
|
-
|
|
1095
|
-
|
|
986
|
+
ObjectPrxPtr
|
|
987
|
+
ICE_OBJECT_PRX::ice_router(const RouterPrxPtr& router) const
|
|
1096
988
|
{
|
|
1097
989
|
ReferencePtr ref = _reference->changeRouter(router);
|
|
1098
990
|
if(ref == _reference)
|
|
1099
991
|
{
|
|
1100
|
-
return
|
|
992
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1101
993
|
}
|
|
1102
994
|
else
|
|
1103
995
|
{
|
|
1104
|
-
|
|
996
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1105
997
|
proxy->setup(ref);
|
|
1106
998
|
return proxy;
|
|
1107
999
|
}
|
|
1108
1000
|
}
|
|
1109
1001
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1002
|
+
LocatorPrxPtr
|
|
1003
|
+
ICE_OBJECT_PRX::ice_getLocator() const
|
|
1112
1004
|
{
|
|
1113
1005
|
LocatorInfoPtr ri = _reference->getLocatorInfo();
|
|
1114
|
-
|
|
1006
|
+
#ifdef ICE_CPP11_MAPPING
|
|
1007
|
+
return ri ? ri->getLocator() : nullptr;
|
|
1008
|
+
#else
|
|
1009
|
+
return ri ? ri->getLocator() : LocatorPrxPtr();
|
|
1010
|
+
#endif
|
|
1115
1011
|
}
|
|
1116
1012
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1013
|
+
ObjectPrxPtr
|
|
1014
|
+
ICE_OBJECT_PRX::ice_locator(const LocatorPrxPtr& locator) const
|
|
1119
1015
|
{
|
|
1120
1016
|
ReferencePtr ref = _reference->changeLocator(locator);
|
|
1121
1017
|
if(ref == _reference)
|
|
1122
1018
|
{
|
|
1123
|
-
return
|
|
1019
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1124
1020
|
}
|
|
1125
1021
|
else
|
|
1126
1022
|
{
|
|
1127
|
-
|
|
1023
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1128
1024
|
proxy->setup(ref);
|
|
1129
1025
|
return proxy;
|
|
1130
1026
|
}
|
|
1131
1027
|
}
|
|
1132
1028
|
|
|
1133
1029
|
bool
|
|
1134
|
-
|
|
1030
|
+
ICE_OBJECT_PRX::ice_isCollocationOptimized() const
|
|
1135
1031
|
{
|
|
1136
1032
|
return _reference->getCollocationOptimized();
|
|
1137
1033
|
}
|
|
1138
1034
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1035
|
+
ObjectPrxPtr
|
|
1036
|
+
ICE_OBJECT_PRX::ice_collocationOptimized(bool b) const
|
|
1141
1037
|
{
|
|
1142
1038
|
if(b == _reference->getCollocationOptimized())
|
|
1143
1039
|
{
|
|
1144
|
-
return
|
|
1040
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1145
1041
|
}
|
|
1146
1042
|
else
|
|
1147
1043
|
{
|
|
1148
|
-
|
|
1044
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1149
1045
|
proxy->setup(_reference->changeCollocationOptimized(b));
|
|
1150
1046
|
return proxy;
|
|
1151
1047
|
}
|
|
1152
1048
|
}
|
|
1153
1049
|
|
|
1154
1050
|
Int
|
|
1155
|
-
|
|
1051
|
+
ICE_OBJECT_PRX::ice_getInvocationTimeout() const
|
|
1156
1052
|
{
|
|
1157
1053
|
return _reference->getInvocationTimeout();
|
|
1158
1054
|
}
|
|
1159
1055
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1056
|
+
ObjectPrxPtr
|
|
1057
|
+
ICE_OBJECT_PRX::ice_invocationTimeout(Int newTimeout) const
|
|
1162
1058
|
{
|
|
1163
1059
|
if(newTimeout < 1 && newTimeout != -1 && newTimeout != -2)
|
|
1164
1060
|
{
|
|
1165
1061
|
ostringstream s;
|
|
1166
1062
|
s << "invalid value passed to ice_invocationTimeout: " << newTimeout;
|
|
1063
|
+
#ifdef ICE_CPP11_MAPPING
|
|
1064
|
+
throw invalid_argument(s.str());
|
|
1065
|
+
#else
|
|
1167
1066
|
throw IceUtil::IllegalArgumentException(__FILE__, __LINE__, s.str());
|
|
1067
|
+
#endif
|
|
1168
1068
|
}
|
|
1169
1069
|
if(newTimeout == _reference->getInvocationTimeout())
|
|
1170
1070
|
{
|
|
1171
|
-
return
|
|
1071
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1172
1072
|
}
|
|
1173
1073
|
else
|
|
1174
1074
|
{
|
|
1175
|
-
|
|
1075
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1176
1076
|
proxy->setup(_reference->changeInvocationTimeout(newTimeout));
|
|
1177
1077
|
return proxy;
|
|
1178
1078
|
}
|
|
1179
1079
|
}
|
|
1180
1080
|
|
|
1181
|
-
|
|
1182
|
-
|
|
1081
|
+
ObjectPrxPtr
|
|
1082
|
+
ICE_OBJECT_PRX::ice_twoway() const
|
|
1183
1083
|
{
|
|
1184
1084
|
if(_reference->getMode() == Reference::ModeTwoway)
|
|
1185
1085
|
{
|
|
1186
|
-
return
|
|
1086
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1187
1087
|
}
|
|
1188
1088
|
else
|
|
1189
1089
|
{
|
|
1190
|
-
|
|
1090
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1191
1091
|
proxy->setup(_reference->changeMode(Reference::ModeTwoway));
|
|
1192
1092
|
return proxy;
|
|
1193
1093
|
}
|
|
1194
1094
|
}
|
|
1195
1095
|
|
|
1196
1096
|
bool
|
|
1197
|
-
|
|
1097
|
+
ICE_OBJECT_PRX::ice_isTwoway() const
|
|
1198
1098
|
{
|
|
1199
1099
|
return _reference->getMode() == Reference::ModeTwoway;
|
|
1200
1100
|
}
|
|
1201
1101
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1102
|
+
ObjectPrxPtr
|
|
1103
|
+
ICE_OBJECT_PRX::ice_oneway() const
|
|
1204
1104
|
{
|
|
1205
1105
|
if(_reference->getMode() == Reference::ModeOneway)
|
|
1206
1106
|
{
|
|
1207
|
-
return
|
|
1107
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1208
1108
|
}
|
|
1209
1109
|
else
|
|
1210
1110
|
{
|
|
1211
|
-
|
|
1111
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1212
1112
|
proxy->setup(_reference->changeMode(Reference::ModeOneway));
|
|
1213
1113
|
return proxy;
|
|
1214
1114
|
}
|
|
1215
1115
|
}
|
|
1216
1116
|
|
|
1217
1117
|
bool
|
|
1218
|
-
|
|
1118
|
+
ICE_OBJECT_PRX::ice_isOneway() const
|
|
1219
1119
|
{
|
|
1220
1120
|
return _reference->getMode() == Reference::ModeOneway;
|
|
1221
1121
|
}
|
|
1222
1122
|
|
|
1223
|
-
|
|
1224
|
-
|
|
1123
|
+
ObjectPrxPtr
|
|
1124
|
+
ICE_OBJECT_PRX::ice_batchOneway() const
|
|
1225
1125
|
{
|
|
1226
1126
|
if(_reference->getMode() == Reference::ModeBatchOneway)
|
|
1227
1127
|
{
|
|
1228
|
-
return
|
|
1128
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1229
1129
|
}
|
|
1230
1130
|
else
|
|
1231
1131
|
{
|
|
1232
|
-
|
|
1132
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1233
1133
|
proxy->setup(_reference->changeMode(Reference::ModeBatchOneway));
|
|
1234
1134
|
return proxy;
|
|
1235
1135
|
}
|
|
1236
1136
|
}
|
|
1237
1137
|
|
|
1238
1138
|
bool
|
|
1239
|
-
|
|
1139
|
+
ICE_OBJECT_PRX::ice_isBatchOneway() const
|
|
1240
1140
|
{
|
|
1241
1141
|
return _reference->getMode() == Reference::ModeBatchOneway;
|
|
1242
1142
|
}
|
|
1243
1143
|
|
|
1244
|
-
|
|
1245
|
-
|
|
1144
|
+
ObjectPrxPtr
|
|
1145
|
+
ICE_OBJECT_PRX::ice_datagram() const
|
|
1246
1146
|
{
|
|
1247
1147
|
if(_reference->getMode() == Reference::ModeDatagram)
|
|
1248
1148
|
{
|
|
1249
|
-
return
|
|
1149
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1250
1150
|
}
|
|
1251
1151
|
else
|
|
1252
1152
|
{
|
|
1253
|
-
|
|
1153
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1254
1154
|
proxy->setup(_reference->changeMode(Reference::ModeDatagram));
|
|
1255
1155
|
return proxy;
|
|
1256
1156
|
}
|
|
1257
1157
|
}
|
|
1258
1158
|
|
|
1259
1159
|
bool
|
|
1260
|
-
|
|
1160
|
+
ICE_OBJECT_PRX::ice_isDatagram() const
|
|
1261
1161
|
{
|
|
1262
1162
|
return _reference->getMode() == Reference::ModeDatagram;
|
|
1263
1163
|
}
|
|
1264
1164
|
|
|
1265
|
-
|
|
1266
|
-
|
|
1165
|
+
ObjectPrxPtr
|
|
1166
|
+
ICE_OBJECT_PRX::ice_batchDatagram() const
|
|
1267
1167
|
{
|
|
1268
1168
|
if(_reference->getMode() == Reference::ModeBatchDatagram)
|
|
1269
1169
|
{
|
|
1270
|
-
return
|
|
1170
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1271
1171
|
}
|
|
1272
1172
|
else
|
|
1273
1173
|
{
|
|
1274
|
-
|
|
1174
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1275
1175
|
proxy->setup(_reference->changeMode(Reference::ModeBatchDatagram));
|
|
1276
1176
|
return proxy;
|
|
1277
1177
|
}
|
|
1278
1178
|
}
|
|
1279
1179
|
|
|
1280
1180
|
bool
|
|
1281
|
-
|
|
1181
|
+
ICE_OBJECT_PRX::ice_isBatchDatagram() const
|
|
1282
1182
|
{
|
|
1283
1183
|
return _reference->getMode() == Reference::ModeBatchDatagram;
|
|
1284
1184
|
}
|
|
1285
1185
|
|
|
1286
|
-
|
|
1287
|
-
|
|
1186
|
+
ObjectPrxPtr
|
|
1187
|
+
ICE_OBJECT_PRX::ice_compress(bool b) const
|
|
1288
1188
|
{
|
|
1289
1189
|
ReferencePtr ref = _reference->changeCompress(b);
|
|
1290
1190
|
if(ref == _reference)
|
|
1291
1191
|
{
|
|
1292
|
-
return
|
|
1192
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1293
1193
|
}
|
|
1294
1194
|
else
|
|
1295
1195
|
{
|
|
1296
|
-
|
|
1196
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1297
1197
|
proxy->setup(ref);
|
|
1298
1198
|
return proxy;
|
|
1299
1199
|
}
|
|
1300
1200
|
}
|
|
1301
1201
|
|
|
1302
|
-
|
|
1303
|
-
|
|
1202
|
+
ObjectPrxPtr
|
|
1203
|
+
ICE_OBJECT_PRX::ice_timeout(int t) const
|
|
1304
1204
|
{
|
|
1305
1205
|
if(t < 1 && t != -1)
|
|
1306
1206
|
{
|
|
1307
1207
|
ostringstream s;
|
|
1308
1208
|
s << "invalid value passed to ice_timeout: " << t;
|
|
1209
|
+
#ifdef ICE_CPP11_MAPPING
|
|
1210
|
+
throw invalid_argument(s.str());
|
|
1211
|
+
#else
|
|
1309
1212
|
throw IceUtil::IllegalArgumentException(__FILE__, __LINE__, s.str());
|
|
1213
|
+
#endif
|
|
1310
1214
|
}
|
|
1311
1215
|
ReferencePtr ref = _reference->changeTimeout(t);
|
|
1312
1216
|
if(ref == _reference)
|
|
1313
1217
|
{
|
|
1314
|
-
return
|
|
1218
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1315
1219
|
}
|
|
1316
1220
|
else
|
|
1317
1221
|
{
|
|
1318
|
-
|
|
1222
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1319
1223
|
proxy->setup(ref);
|
|
1320
1224
|
return proxy;
|
|
1321
1225
|
}
|
|
1322
1226
|
}
|
|
1323
1227
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1228
|
+
ObjectPrxPtr
|
|
1229
|
+
ICE_OBJECT_PRX::ice_connectionId(const string& id) const
|
|
1326
1230
|
{
|
|
1327
1231
|
ReferencePtr ref = _reference->changeConnectionId(id);
|
|
1328
1232
|
if(ref == _reference)
|
|
1329
1233
|
{
|
|
1330
|
-
return
|
|
1234
|
+
return CONST_POINTER_CAST_OBJECT_PRX;
|
|
1331
1235
|
}
|
|
1332
1236
|
else
|
|
1333
1237
|
{
|
|
1334
|
-
|
|
1238
|
+
ObjectPrxPtr proxy = _newInstance();
|
|
1335
1239
|
proxy->setup(ref);
|
|
1336
1240
|
return proxy;
|
|
1337
1241
|
}
|
|
1338
1242
|
}
|
|
1339
1243
|
|
|
1340
1244
|
string
|
|
1341
|
-
|
|
1245
|
+
ICE_OBJECT_PRX::ice_getConnectionId() const
|
|
1342
1246
|
{
|
|
1343
1247
|
return _reference->getConnectionId();
|
|
1344
1248
|
}
|
|
1345
1249
|
|
|
1346
1250
|
ConnectionPtr
|
|
1347
|
-
|
|
1348
|
-
{
|
|
1349
|
-
InvocationObserver observer(this, "ice_getConnection", 0);
|
|
1350
|
-
int cnt = 0;
|
|
1351
|
-
while(true)
|
|
1352
|
-
{
|
|
1353
|
-
RequestHandlerPtr handler;
|
|
1354
|
-
try
|
|
1355
|
-
{
|
|
1356
|
-
handler = __getRequestHandler();
|
|
1357
|
-
return handler->waitForConnection(); // Wait for the connection to be established.
|
|
1358
|
-
}
|
|
1359
|
-
catch(const IceInternal::RetryException&)
|
|
1360
|
-
{
|
|
1361
|
-
__updateRequestHandler(handler, 0); // Clear request handler and retry.
|
|
1362
|
-
}
|
|
1363
|
-
catch(const Exception& ex)
|
|
1364
|
-
{
|
|
1365
|
-
try
|
|
1366
|
-
{
|
|
1367
|
-
int interval = __handleException(ex, handler, Idempotent, false, cnt);
|
|
1368
|
-
observer.retried();
|
|
1369
|
-
if(interval > 0)
|
|
1370
|
-
{
|
|
1371
|
-
IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(interval));
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
catch(const Exception& exc)
|
|
1375
|
-
{
|
|
1376
|
-
observer.failed(exc.ice_name());
|
|
1377
|
-
throw;
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
AsyncResultPtr
|
|
1384
|
-
IceProxy::Ice::Object::begin_ice_getConnectionInternal(const ::IceInternal::CallbackBasePtr& del,
|
|
1385
|
-
const ::Ice::LocalObjectPtr& cookie)
|
|
1386
|
-
{
|
|
1387
|
-
ProxyGetConnectionPtr result = new ProxyGetConnection(this, ice_getConnection_name, del, cookie);
|
|
1388
|
-
try
|
|
1389
|
-
{
|
|
1390
|
-
result->invoke();
|
|
1391
|
-
}
|
|
1392
|
-
catch(const Exception& ex)
|
|
1393
|
-
{
|
|
1394
|
-
result->abort(ex);
|
|
1395
|
-
}
|
|
1396
|
-
return result;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
ConnectionPtr
|
|
1400
|
-
IceProxy::Ice::Object::end_ice_getConnection(const AsyncResultPtr& __result)
|
|
1401
|
-
{
|
|
1402
|
-
AsyncResult::__check(__result, this, ice_getConnection_name);
|
|
1403
|
-
__result->__wait();
|
|
1404
|
-
return ice_getCachedConnection();
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
ConnectionPtr
|
|
1408
|
-
IceProxy::Ice::Object::ice_getCachedConnection() const
|
|
1251
|
+
ICE_OBJECT_PRX::ice_getCachedConnection() const
|
|
1409
1252
|
{
|
|
1410
|
-
RequestHandlerPtr
|
|
1253
|
+
RequestHandlerPtr handler;
|
|
1411
1254
|
{
|
|
1412
1255
|
IceUtil::Mutex::Lock sync(_mutex);
|
|
1413
|
-
|
|
1256
|
+
handler = _requestHandler;
|
|
1414
1257
|
}
|
|
1415
1258
|
|
|
1416
|
-
if(
|
|
1259
|
+
if(handler)
|
|
1417
1260
|
{
|
|
1418
1261
|
try
|
|
1419
1262
|
{
|
|
1420
|
-
return
|
|
1263
|
+
return handler->getConnection();
|
|
1421
1264
|
}
|
|
1422
1265
|
catch(const LocalException&)
|
|
1423
1266
|
{
|
|
@@ -1427,57 +1270,27 @@ IceProxy::Ice::Object::ice_getCachedConnection() const
|
|
|
1427
1270
|
}
|
|
1428
1271
|
|
|
1429
1272
|
void
|
|
1430
|
-
|
|
1431
|
-
{
|
|
1432
|
-
ProxyFlushBatch og(this, ice_flushBatchRequests_name);
|
|
1433
|
-
og.invoke();
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
::Ice::AsyncResultPtr
|
|
1437
|
-
IceProxy::Ice::Object::begin_ice_flushBatchRequestsInternal(const ::IceInternal::CallbackBasePtr& del,
|
|
1438
|
-
const ::Ice::LocalObjectPtr& cookie)
|
|
1439
|
-
{
|
|
1440
|
-
ProxyFlushBatchAsyncPtr result = new ProxyFlushBatchAsync(this, ice_flushBatchRequests_name, del, cookie);
|
|
1441
|
-
try
|
|
1442
|
-
{
|
|
1443
|
-
result->invoke();
|
|
1444
|
-
}
|
|
1445
|
-
catch(const Exception& ex)
|
|
1446
|
-
{
|
|
1447
|
-
result->abort(ex);
|
|
1448
|
-
}
|
|
1449
|
-
return result;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
void
|
|
1453
|
-
IceProxy::Ice::Object::end_ice_flushBatchRequests(const AsyncResultPtr& result)
|
|
1273
|
+
ICE_OBJECT_PRX::setup(const ReferencePtr& ref)
|
|
1454
1274
|
{
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1275
|
+
//
|
|
1276
|
+
// No need to synchronize "*this", as this operation is only
|
|
1277
|
+
// called upon initialization.
|
|
1278
|
+
//
|
|
1458
1279
|
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
{
|
|
1462
|
-
return _reference->hash();
|
|
1463
|
-
}
|
|
1280
|
+
assert(!_reference);
|
|
1281
|
+
assert(!_requestHandler);
|
|
1464
1282
|
|
|
1465
|
-
|
|
1466
|
-
IceProxy::Ice::Object::__copyFrom(const ObjectPrx& from)
|
|
1467
|
-
{
|
|
1468
|
-
IceUtil::Mutex::Lock sync(from->_mutex);
|
|
1469
|
-
_reference = from->_reference;
|
|
1470
|
-
_requestHandler = from->_requestHandler;
|
|
1283
|
+
_reference = ref;
|
|
1471
1284
|
}
|
|
1472
1285
|
|
|
1473
1286
|
int
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1287
|
+
ICE_OBJECT_PRX::_handleException(const Exception& ex,
|
|
1288
|
+
const RequestHandlerPtr& handler,
|
|
1289
|
+
OperationMode mode,
|
|
1290
|
+
bool sent,
|
|
1291
|
+
int& cnt)
|
|
1479
1292
|
{
|
|
1480
|
-
|
|
1293
|
+
_updateRequestHandler(handler, 0); // Clear the request handler
|
|
1481
1294
|
|
|
1482
1295
|
//
|
|
1483
1296
|
// We only retry local exception, system exceptions aren't retried.
|
|
@@ -1496,7 +1309,7 @@ IceProxy::Ice::Object::__handleException(const Exception& ex,
|
|
|
1496
1309
|
//
|
|
1497
1310
|
const LocalException* localEx = dynamic_cast<const LocalException*>(&ex);
|
|
1498
1311
|
if(localEx && (!sent ||
|
|
1499
|
-
mode == Nonmutating || mode == Idempotent ||
|
|
1312
|
+
mode == ICE_ENUM(OperationMode, Nonmutating) || mode == ICE_ENUM(OperationMode, Idempotent) ||
|
|
1500
1313
|
dynamic_cast<const CloseConnectionException*>(&ex) ||
|
|
1501
1314
|
dynamic_cast<const ObjectNotExistException*>(&ex)))
|
|
1502
1315
|
{
|
|
@@ -1519,101 +1332,8 @@ IceProxy::Ice::Object::__handleException(const Exception& ex,
|
|
|
1519
1332
|
return 0; // Keep the compiler happy.
|
|
1520
1333
|
}
|
|
1521
1334
|
|
|
1522
|
-
void
|
|
1523
|
-
IceProxy::Ice::Object::__checkTwowayOnly(const string& name) const
|
|
1524
|
-
{
|
|
1525
|
-
//
|
|
1526
|
-
// No mutex lock necessary, there is nothing mutable in this operation.
|
|
1527
|
-
//
|
|
1528
|
-
if(!ice_isTwoway())
|
|
1529
|
-
{
|
|
1530
|
-
TwowayOnlyException ex(__FILE__, __LINE__);
|
|
1531
|
-
ex.operation = name;
|
|
1532
|
-
throw ex;
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
void
|
|
1537
|
-
IceProxy::Ice::Object::__checkAsyncTwowayOnly(const string& name) const
|
|
1538
|
-
{
|
|
1539
|
-
//
|
|
1540
|
-
// No mutex lock necessary, there is nothing mutable in this operation.
|
|
1541
|
-
//
|
|
1542
|
-
if(!ice_isTwoway())
|
|
1543
|
-
{
|
|
1544
|
-
throw IceUtil::IllegalArgumentException(__FILE__,
|
|
1545
|
-
__LINE__,
|
|
1546
|
-
"`" + name + "' can only be called with a twoway proxy");
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
void
|
|
1551
|
-
IceProxy::Ice::Object::__invoke(Outgoing& __og) const
|
|
1552
|
-
{
|
|
1553
|
-
//
|
|
1554
|
-
// Helper for operations without out/return parameters and user
|
|
1555
|
-
// exceptions.
|
|
1556
|
-
//
|
|
1557
|
-
|
|
1558
|
-
bool __ok = __og.invoke();
|
|
1559
|
-
if(__og.hasResponse())
|
|
1560
|
-
{
|
|
1561
|
-
if(!__ok)
|
|
1562
|
-
{
|
|
1563
|
-
try
|
|
1564
|
-
{
|
|
1565
|
-
__og.throwUserException();
|
|
1566
|
-
}
|
|
1567
|
-
catch(const ::Ice::UserException& __ex)
|
|
1568
|
-
{
|
|
1569
|
-
::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
|
|
1570
|
-
throw __uue;
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
__og.readEmptyParams();
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
void
|
|
1578
|
-
IceProxy::Ice::Object::__end(const ::Ice::AsyncResultPtr& __result, const std::string& operation) const
|
|
1579
|
-
{
|
|
1580
|
-
AsyncResult::__check(__result, this, operation);
|
|
1581
|
-
bool __ok = __result->__wait();
|
|
1582
|
-
if(_reference->getMode() == Reference::ModeTwoway)
|
|
1583
|
-
{
|
|
1584
|
-
if(!__ok)
|
|
1585
|
-
{
|
|
1586
|
-
try
|
|
1587
|
-
{
|
|
1588
|
-
__result->__throwUserException();
|
|
1589
|
-
}
|
|
1590
|
-
catch(const UserException& __ex)
|
|
1591
|
-
{
|
|
1592
|
-
throw UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
__result->__readEmptyParams();
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
namespace IceProxy
|
|
1600
|
-
{
|
|
1601
|
-
|
|
1602
|
-
namespace Ice
|
|
1603
|
-
{
|
|
1604
|
-
|
|
1605
|
-
ostream&
|
|
1606
|
-
operator<<(ostream& os, const ::IceProxy::Ice::Object& p)
|
|
1607
|
-
{
|
|
1608
|
-
return os << p.ice_toString();
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
1335
|
::IceInternal::RequestHandlerPtr
|
|
1616
|
-
|
|
1336
|
+
ICE_OBJECT_PRX::_getRequestHandler()
|
|
1617
1337
|
{
|
|
1618
1338
|
RequestHandlerPtr handler;
|
|
1619
1339
|
if(_reference->getCacheConnection())
|
|
@@ -1624,11 +1344,11 @@ IceProxy::Ice::Object::__getRequestHandler()
|
|
|
1624
1344
|
return _requestHandler;
|
|
1625
1345
|
}
|
|
1626
1346
|
}
|
|
1627
|
-
return _reference->getRequestHandler(
|
|
1347
|
+
return _reference->getRequestHandler(ICE_SHARED_FROM_THIS);
|
|
1628
1348
|
}
|
|
1629
1349
|
|
|
1630
1350
|
IceInternal::BatchRequestQueuePtr
|
|
1631
|
-
|
|
1351
|
+
ICE_OBJECT_PRX::_getBatchRequestQueue()
|
|
1632
1352
|
{
|
|
1633
1353
|
IceUtil::Mutex::Lock sync(_mutex);
|
|
1634
1354
|
if(!_batchRequestQueue)
|
|
@@ -1639,7 +1359,7 @@ IceProxy::Ice::Object::__getBatchRequestQueue()
|
|
|
1639
1359
|
}
|
|
1640
1360
|
|
|
1641
1361
|
::IceInternal::RequestHandlerPtr
|
|
1642
|
-
|
|
1362
|
+
ICE_OBJECT_PRX::_setRequestHandler(const ::IceInternal::RequestHandlerPtr& handler)
|
|
1643
1363
|
{
|
|
1644
1364
|
if(_reference->getCacheConnection())
|
|
1645
1365
|
{
|
|
@@ -1654,8 +1374,8 @@ IceProxy::Ice::Object::__setRequestHandler(const ::IceInternal::RequestHandlerPt
|
|
|
1654
1374
|
}
|
|
1655
1375
|
|
|
1656
1376
|
void
|
|
1657
|
-
|
|
1658
|
-
|
|
1377
|
+
ICE_OBJECT_PRX::_updateRequestHandler(const ::IceInternal::RequestHandlerPtr& previous,
|
|
1378
|
+
const ::IceInternal::RequestHandlerPtr& handler)
|
|
1659
1379
|
{
|
|
1660
1380
|
if(_reference->getCacheConnection() && previous)
|
|
1661
1381
|
{
|
|
@@ -1674,28 +1394,46 @@ IceProxy::Ice::Object::__updateRequestHandler(const ::IceInternal::RequestHandle
|
|
|
1674
1394
|
}
|
|
1675
1395
|
}
|
|
1676
1396
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1397
|
+
void
|
|
1398
|
+
ICE_OBJECT_PRX::_copyFrom(const ObjectPrxPtr& from)
|
|
1679
1399
|
{
|
|
1680
|
-
|
|
1400
|
+
IceUtil::Mutex::Lock sync(from->_mutex);
|
|
1401
|
+
_reference = from->_reference;
|
|
1402
|
+
_requestHandler = from->_requestHandler;
|
|
1681
1403
|
}
|
|
1682
1404
|
|
|
1683
|
-
|
|
1684
|
-
|
|
1405
|
+
CommunicatorPtr
|
|
1406
|
+
ICE_OBJECT_PRX::ice_getCommunicator() const
|
|
1407
|
+
{
|
|
1408
|
+
return _reference->getCommunicator();
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
string
|
|
1412
|
+
ICE_OBJECT_PRX::ice_toString() const
|
|
1685
1413
|
{
|
|
1686
1414
|
//
|
|
1687
|
-
//
|
|
1688
|
-
//
|
|
1415
|
+
// Returns the stringified proxy. There's no need to convert the
|
|
1416
|
+
// string to a native string: a stringified proxy only contains
|
|
1417
|
+
// printable ASCII which is a subset of all native character sets.
|
|
1689
1418
|
//
|
|
1419
|
+
return _reference->toString();
|
|
1420
|
+
}
|
|
1690
1421
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1422
|
+
Int
|
|
1423
|
+
ICE_OBJECT_PRX::_hash() const
|
|
1424
|
+
{
|
|
1425
|
+
return _reference->hash();
|
|
1426
|
+
}
|
|
1693
1427
|
|
|
1694
|
-
|
|
1428
|
+
void
|
|
1429
|
+
ICE_OBJECT_PRX::_write(OutputStream& os) const
|
|
1430
|
+
{
|
|
1431
|
+
os.write(_getReference()->getIdentity());
|
|
1432
|
+
_getReference()->streamWrite(&os);
|
|
1695
1433
|
}
|
|
1696
1434
|
|
|
1697
1435
|
bool
|
|
1698
|
-
Ice::proxyIdentityLess(const
|
|
1436
|
+
Ice::proxyIdentityLess(const ObjectPrxPtr& lhs, const ObjectPrxPtr& rhs)
|
|
1699
1437
|
{
|
|
1700
1438
|
if(!lhs && !rhs)
|
|
1701
1439
|
{
|
|
@@ -1716,7 +1454,7 @@ Ice::proxyIdentityLess(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
|
1716
1454
|
}
|
|
1717
1455
|
|
|
1718
1456
|
bool
|
|
1719
|
-
Ice::proxyIdentityEqual(const
|
|
1457
|
+
Ice::proxyIdentityEqual(const ObjectPrxPtr& lhs, const ObjectPrxPtr& rhs)
|
|
1720
1458
|
{
|
|
1721
1459
|
if(!lhs && !rhs)
|
|
1722
1460
|
{
|
|
@@ -1737,7 +1475,7 @@ Ice::proxyIdentityEqual(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
|
1737
1475
|
}
|
|
1738
1476
|
|
|
1739
1477
|
bool
|
|
1740
|
-
Ice::proxyIdentityAndFacetLess(const
|
|
1478
|
+
Ice::proxyIdentityAndFacetLess(const ObjectPrxPtr& lhs, const ObjectPrxPtr& rhs)
|
|
1741
1479
|
{
|
|
1742
1480
|
if(!lhs && !rhs)
|
|
1743
1481
|
{
|
|
@@ -1782,7 +1520,7 @@ Ice::proxyIdentityAndFacetLess(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
|
1782
1520
|
}
|
|
1783
1521
|
|
|
1784
1522
|
bool
|
|
1785
|
-
Ice::proxyIdentityAndFacetEqual(const
|
|
1523
|
+
Ice::proxyIdentityAndFacetEqual(const ObjectPrxPtr& lhs, const ObjectPrxPtr& rhs)
|
|
1786
1524
|
{
|
|
1787
1525
|
if(!lhs && !rhs)
|
|
1788
1526
|
{
|
|
@@ -1815,15 +1553,3 @@ Ice::proxyIdentityAndFacetEqual(const ObjectPrx& lhs, const ObjectPrx& rhs)
|
|
|
1815
1553
|
return false;
|
|
1816
1554
|
}
|
|
1817
1555
|
}
|
|
1818
|
-
|
|
1819
|
-
void
|
|
1820
|
-
Ice::ice_writeObjectPrx(const OutputStreamPtr& out, const ObjectPrx& v)
|
|
1821
|
-
{
|
|
1822
|
-
out->write(v);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
void
|
|
1826
|
-
Ice::ice_readObjectPrx(const InputStreamPtr& in, ObjectPrx& v)
|
|
1827
|
-
{
|
|
1828
|
-
in->read(v);
|
|
1829
|
-
}
|