zeroc-ice 3.6b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ICE_LICENSE +54 -0
- data/LICENSE +339 -0
- data/bin/slice2rb +17 -0
- data/ext/Communicator.cpp +596 -0
- data/ext/Communicator.h +25 -0
- data/ext/Config.h +111 -0
- data/ext/Connection.cpp +381 -0
- data/ext/Connection.h +26 -0
- data/ext/Endpoint.cpp +311 -0
- data/ext/Endpoint.h +27 -0
- data/ext/ImplicitContext.cpp +152 -0
- data/ext/ImplicitContext.h +25 -0
- data/ext/Init.cpp +52 -0
- data/ext/Logger.cpp +151 -0
- data/ext/Logger.h +28 -0
- data/ext/ObjectFactory.cpp +140 -0
- data/ext/ObjectFactory.h +50 -0
- data/ext/Operation.cpp +676 -0
- data/ext/Operation.h +36 -0
- data/ext/Properties.cpp +369 -0
- data/ext/Properties.h +25 -0
- data/ext/Proxy.cpp +1354 -0
- data/ext/Proxy.h +27 -0
- data/ext/Slice.cpp +223 -0
- data/ext/Slice.h +22 -0
- data/ext/Types.cpp +3160 -0
- data/ext/Types.h +545 -0
- data/ext/Util.cpp +792 -0
- data/ext/Util.h +511 -0
- data/ext/extconf.rb +118 -0
- data/ext/ice/BZIP_LICENSE +42 -0
- data/ext/ice/MCPP_LICENSE +36 -0
- 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/ACMF.h +30 -0
- data/ext/ice/cpp/include/Ice/Application.h +156 -0
- data/ext/ice/cpp/include/Ice/AsyncResult.h +363 -0
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +26 -0
- data/ext/ice/cpp/include/Ice/BasicStream.h +1315 -0
- data/ext/ice/cpp/include/Ice/Buffer.h +159 -0
- data/ext/ice/cpp/include/Ice/BuiltinSequences.h +74 -0
- data/ext/ice/cpp/include/Ice/Communicator.h +194 -0
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +115 -0
- data/ext/ice/cpp/include/Ice/CommunicatorF.h +60 -0
- data/ext/ice/cpp/include/Ice/Config.h +97 -0
- data/ext/ice/cpp/include/Ice/Connection.h +495 -0
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +115 -0
- data/ext/ice/cpp/include/Ice/ConnectionF.h +72 -0
- data/ext/ice/cpp/include/Ice/ConnectionFactoryF.h +30 -0
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +37 -0
- data/ext/ice/cpp/include/Ice/Current.h +94 -0
- data/ext/ice/cpp/include/Ice/DefaultObjectFactory.h +48 -0
- data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +62 -0
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +33 -0
- data/ext/ice/cpp/include/Ice/Dispatcher.h +51 -0
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +105 -0
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +29 -0
- data/ext/ice/cpp/include/Ice/Endpoint.h +350 -0
- data/ext/ice/cpp/include/Ice/EndpointF.h +97 -0
- data/ext/ice/cpp/include/Ice/EndpointTypes.h +74 -0
- data/ext/ice/cpp/include/Ice/Exception.h +114 -0
- data/ext/ice/cpp/include/Ice/FacetMap.h +56 -0
- data/ext/ice/cpp/include/Ice/FactoryTable.h +69 -0
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +87 -0
- data/ext/ice/cpp/include/Ice/Format.h +39 -0
- data/ext/ice/cpp/include/Ice/Functional.h +138 -0
- data/ext/ice/cpp/include/Ice/GCObject.h +73 -0
- data/ext/ice/cpp/include/Ice/Handle.h +192 -0
- data/ext/ice/cpp/include/Ice/Ice.h +54 -0
- data/ext/ice/cpp/include/Ice/Identity.h +160 -0
- data/ext/ice/cpp/include/Ice/ImplicitContext.h +96 -0
- data/ext/ice/cpp/include/Ice/ImplicitContextF.h +60 -0
- data/ext/ice/cpp/include/Ice/Incoming.h +131 -0
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +108 -0
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +35 -0
- data/ext/ice/cpp/include/Ice/Initialize.h +141 -0
- data/ext/ice/cpp/include/Ice/InstanceF.h +26 -0
- data/ext/ice/cpp/include/Ice/Instrumentation.h +377 -0
- data/ext/ice/cpp/include/Ice/InstrumentationF.h +71 -0
- data/ext/ice/cpp/include/Ice/LocalException.h +1022 -0
- data/ext/ice/cpp/include/Ice/LocalObject.h +36 -0
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +26 -0
- data/ext/ice/cpp/include/Ice/Locator.h +2191 -0
- data/ext/ice/cpp/include/Ice/LocatorF.h +89 -0
- data/ext/ice/cpp/include/Ice/Logger.h +94 -0
- data/ext/ice/cpp/include/Ice/LoggerF.h +60 -0
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +153 -0
- data/ext/ice/cpp/include/Ice/Makefile +26 -0
- data/ext/ice/cpp/include/Ice/Metrics.h +2989 -0
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +662 -0
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +144 -0
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +576 -0
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +55 -0
- data/ext/ice/cpp/include/Ice/Object.h +165 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapter.h +162 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapterF.h +60 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapterFactoryF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObjectF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObjectFactory.h +86 -0
- data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +60 -0
- data/ext/ice/cpp/include/Ice/ObjectFactoryManagerF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +177 -0
- data/ext/ice/cpp/include/Ice/Outgoing.h +197 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +264 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +38 -0
- data/ext/ice/cpp/include/Ice/Plugin.h +121 -0
- data/ext/ice/cpp/include/Ice/PluginF.h +66 -0
- data/ext/ice/cpp/include/Ice/Process.h +568 -0
- data/ext/ice/cpp/include/Ice/ProcessF.h +77 -0
- data/ext/ice/cpp/include/Ice/Properties.h +130 -0
- data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +824 -0
- data/ext/ice/cpp/include/Ice/PropertiesF.h +83 -0
- data/ext/ice/cpp/include/Ice/Protocol.h +242 -0
- data/ext/ice/cpp/include/Ice/Proxy.h +2448 -0
- data/ext/ice/cpp/include/Ice/ProxyF.h +78 -0
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +26 -0
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +330 -0
- data/ext/ice/cpp/include/Ice/ReferenceF.h +34 -0
- data/ext/ice/cpp/include/Ice/RemoteLogger.h +1496 -0
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +29 -0
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +25 -0
- data/ext/ice/cpp/include/Ice/Router.h +1155 -0
- data/ext/ice/cpp/include/Ice/RouterF.h +77 -0
- data/ext/ice/cpp/include/Ice/ServantLocator.h +90 -0
- data/ext/ice/cpp/include/Ice/ServantLocatorF.h +60 -0
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +26 -0
- data/ext/ice/cpp/include/Ice/Service.h +260 -0
- data/ext/ice/cpp/include/Ice/SliceChecksumDict.h +56 -0
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +34 -0
- data/ext/ice/cpp/include/Ice/SlicedData.h +103 -0
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +34 -0
- data/ext/ice/cpp/include/Ice/Stream.h +449 -0
- data/ext/ice/cpp/include/Ice/StreamF.h +30 -0
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +877 -0
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +28 -0
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +56 -0
- data/ext/ice/cpp/include/Ice/Version.h +254 -0
- data/ext/ice/cpp/include/IceSSL/Config.h +23 -0
- data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +119 -0
- data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +101 -0
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +22 -0
- data/ext/ice/cpp/include/IceSSL/Makefile +26 -0
- data/ext/ice/cpp/include/IceSSL/Plugin.h +558 -0
- data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +119 -0
- data/ext/ice/cpp/include/IceUtil/Cache.h +362 -0
- data/ext/ice/cpp/include/IceUtil/Cond.h +323 -0
- data/ext/ice/cpp/include/IceUtil/Config.h +234 -0
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +50 -0
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +70 -0
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +45 -0
- data/ext/ice/cpp/include/IceUtil/Exception.h +184 -0
- data/ext/ice/cpp/include/IceUtil/Functional.h +389 -0
- data/ext/ice/cpp/include/IceUtil/Handle.h +266 -0
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +51 -0
- data/ext/ice/cpp/include/IceUtil/IconvStringConverter.h +302 -0
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +47 -0
- data/ext/ice/cpp/include/IceUtil/Iterator.h +36 -0
- data/ext/ice/cpp/include/IceUtil/Lock.h +135 -0
- data/ext/ice/cpp/include/IceUtil/Makefile +26 -0
- data/ext/ice/cpp/include/IceUtil/Monitor.h +249 -0
- data/ext/ice/cpp/include/IceUtil/Mutex.h +357 -0
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +28 -0
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +83 -0
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +82 -0
- data/ext/ice/cpp/include/IceUtil/Optional.h +322 -0
- data/ext/ice/cpp/include/IceUtil/Options.h +141 -0
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +362 -0
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +19 -0
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +26 -0
- data/ext/ice/cpp/include/IceUtil/Random.h +24 -0
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +113 -0
- data/ext/ice/cpp/include/IceUtil/SHA1.h +65 -0
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +44 -0
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +97 -0
- data/ext/ice/cpp/include/IceUtil/Shared.h +168 -0
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +175 -0
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +91 -0
- data/ext/ice/cpp/include/IceUtil/Thread.h +181 -0
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +108 -0
- data/ext/ice/cpp/include/IceUtil/Time.h +209 -0
- data/ext/ice/cpp/include/IceUtil/Timer.h +143 -0
- data/ext/ice/cpp/include/IceUtil/UUID.h +22 -0
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +42 -0
- data/ext/ice/cpp/include/IceUtil/UniquePtr.h +101 -0
- data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +64 -0
- data/ext/ice/cpp/include/Slice/Checksum.h +26 -0
- data/ext/ice/cpp/include/Slice/CsUtil.h +92 -0
- data/ext/ice/cpp/include/Slice/DotNetNames.h +34 -0
- data/ext/ice/cpp/include/Slice/FileTracker.h +71 -0
- data/ext/ice/cpp/include/Slice/JavaUtil.h +277 -0
- data/ext/ice/cpp/include/Slice/Makefile +26 -0
- data/ext/ice/cpp/include/Slice/PHPUtil.h +50 -0
- data/ext/ice/cpp/include/Slice/Parser.h +1116 -0
- data/ext/ice/cpp/include/Slice/Preprocessor.h +68 -0
- data/ext/ice/cpp/include/Slice/PythonUtil.h +64 -0
- data/ext/ice/cpp/include/Slice/RubyUtil.h +54 -0
- data/ext/ice/cpp/include/Slice/Util.h +33 -0
- data/ext/ice/cpp/src/Ice/ACM.cpp +343 -0
- data/ext/ice/cpp/src/Ice/ACM.h +117 -0
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +16 -0
- data/ext/ice/cpp/src/Ice/Acceptor.h +41 -0
- data/ext/ice/cpp/src/Ice/AcceptorF.h +30 -0
- data/ext/ice/cpp/src/Ice/Application.cpp +760 -0
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +599 -0
- data/ext/ice/cpp/src/Ice/Base64.cpp +269 -0
- data/ext/ice/cpp/src/Ice/Base64.h +36 -0
- data/ext/ice/cpp/src/Ice/BasicStream.cpp +3393 -0
- data/ext/ice/cpp/src/Ice/Buffer.cpp +98 -0
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +34 -0
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +718 -0
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +106 -0
- data/ext/ice/cpp/src/Ice/Communicator.cpp +45 -0
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +386 -0
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +112 -0
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +546 -0
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +97 -0
- data/ext/ice/cpp/src/Ice/Connection.cpp +58 -0
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +1639 -0
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +236 -0
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +3876 -0
- data/ext/ice/cpp/src/Ice/ConnectionI.h +364 -0
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +115 -0
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +50 -0
- data/ext/ice/cpp/src/Ice/Connector.cpp +16 -0
- data/ext/ice/cpp/src/Ice/Connector.h +36 -0
- data/ext/ice/cpp/src/Ice/ConnectorF.h +26 -0
- data/ext/ice/cpp/src/Ice/Current.cpp +38 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +168 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +57 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +26 -0
- data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +60 -0
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +49 -0
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +281 -0
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +53 -0
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +25 -0
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +44 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +26 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +208 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +46 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +26 -0
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +87 -0
- data/ext/ice/cpp/src/Ice/EndpointI.h +165 -0
- data/ext/ice/cpp/src/Ice/EndpointIF.h +41 -0
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +38 -0
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +35 -0
- data/ext/ice/cpp/src/Ice/EventHandler.h +78 -0
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +26 -0
- data/ext/ice/cpp/src/Ice/EventLoggerMsg.h +53 -0
- data/ext/ice/cpp/src/Ice/Exception.cpp +832 -0
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +34 -0
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +158 -0
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +95 -0
- data/ext/ice/cpp/src/Ice/GCObject.cpp +444 -0
- data/ext/ice/cpp/src/Ice/HashUtil.h +59 -0
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +680 -0
- data/ext/ice/cpp/src/Ice/HttpParser.h +124 -0
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +733 -0
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +157 -0
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +29 -0
- data/ext/ice/cpp/src/Ice/Identity.cpp +42 -0
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +639 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +51 -0
- data/ext/ice/cpp/src/Ice/Incoming.cpp +757 -0
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +340 -0
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +37 -0
- data/ext/ice/cpp/src/Ice/Initialize.cpp +401 -0
- data/ext/ice/cpp/src/Ice/Instance.cpp +1928 -0
- data/ext/ice/cpp/src/Ice/Instance.h +198 -0
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +68 -0
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +43 -0
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +1083 -0
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +262 -0
- data/ext/ice/cpp/src/Ice/LocalException.cpp +2091 -0
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +29 -0
- data/ext/ice/cpp/src/Ice/Locator.cpp +1946 -0
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +917 -0
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +193 -0
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +34 -0
- data/ext/ice/cpp/src/Ice/Logger.cpp +40 -0
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +862 -0
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +46 -0
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +199 -0
- data/ext/ice/cpp/src/Ice/LoggerI.h +57 -0
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +107 -0
- data/ext/ice/cpp/src/Ice/Makefile +190 -0
- data/ext/ice/cpp/src/Ice/Metrics.cpp +2159 -0
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +669 -0
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +14 -0
- data/ext/ice/cpp/src/Ice/Network.cpp +2694 -0
- data/ext/ice/cpp/src/Ice/Network.h +291 -0
- data/ext/ice/cpp/src/Ice/NetworkF.h +28 -0
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +325 -0
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +74 -0
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +26 -0
- data/ext/ice/cpp/src/Ice/Object.cpp +440 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +241 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +52 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +1498 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +155 -0
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +140 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +43 -0
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +84 -0
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +407 -0
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +70 -0
- data/ext/ice/cpp/src/Ice/Outgoing.cpp +737 -0
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +874 -0
- data/ext/ice/cpp/src/Ice/Plugin.cpp +43 -0
- data/ext/ice/cpp/src/Ice/PluginF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +503 -0
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +67 -0
- data/ext/ice/cpp/src/Ice/Process.cpp +299 -0
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/Properties.cpp +45 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +555 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +207 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +45 -0
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +759 -0
- data/ext/ice/cpp/src/Ice/PropertiesI.h +78 -0
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +1293 -0
- data/ext/ice/cpp/src/Ice/PropertyNames.h +81 -0
- data/ext/ice/cpp/src/Ice/Protocol.cpp +137 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +98 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +91 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +26 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +51 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +67 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +26 -0
- data/ext/ice/cpp/src/Ice/Proxy.cpp +1810 -0
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +305 -0
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +57 -0
- data/ext/ice/cpp/src/Ice/Reference.cpp +1947 -0
- data/ext/ice/cpp/src/Ice/Reference.h +305 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +937 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +81 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +24 -0
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +958 -0
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +29 -0
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +40 -0
- data/ext/ice/cpp/src/Ice/RequestHandler.h +90 -0
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +70 -0
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +41 -0
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +20 -0
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +39 -0
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +154 -0
- data/ext/ice/cpp/src/Ice/RetryQueue.h +69 -0
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +24 -0
- data/ext/ice/cpp/src/Ice/Router.cpp +849 -0
- data/ext/ice/cpp/src/Ice/RouterF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +381 -0
- data/ext/ice/cpp/src/Ice/RouterInfo.h +148 -0
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +30 -0
- data/ext/ice/cpp/src/Ice/Selector.cpp +926 -0
- data/ext/ice/cpp/src/Ice/Selector.h +231 -0
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +495 -0
- data/ext/ice/cpp/src/Ice/ServantManager.h +74 -0
- data/ext/ice/cpp/src/Ice/Service.cpp +1897 -0
- data/ext/ice/cpp/src/Ice/SharedContext.h +51 -0
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +34 -0
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +80 -0
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +80 -0
- data/ext/ice/cpp/src/Ice/Stream.cpp +53 -0
- data/ext/ice/cpp/src/Ice/StreamI.cpp +832 -0
- data/ext/ice/cpp/src/Ice/StreamI.h +198 -0
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +521 -0
- data/ext/ice/cpp/src/Ice/StreamSocket.h +85 -0
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +145 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +167 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +43 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +235 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +67 -0
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +133 -0
- data/ext/ice/cpp/src/Ice/TcpConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +397 -0
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +93 -0
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +127 -0
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +61 -0
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +1357 -0
- data/ext/ice/cpp/src/Ice/ThreadPool.h +399 -0
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +43 -0
- data/ext/ice/cpp/src/Ice/TraceLevels.h +50 -0
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +26 -0
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +452 -0
- data/ext/ice/cpp/src/Ice/TraceUtil.h +28 -0
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +24 -0
- data/ext/ice/cpp/src/Ice/Transceiver.h +52 -0
- data/ext/ice/cpp/src/Ice/TransceiverF.h +38 -0
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +144 -0
- data/ext/ice/cpp/src/Ice/UdpConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +483 -0
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +95 -0
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +1156 -0
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +123 -0
- data/ext/ice/cpp/src/Ice/Version.cpp +46 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +103 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +61 -0
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +113 -0
- data/ext/ice/cpp/src/Ice/WSConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +441 -0
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +97 -0
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +1728 -0
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +149 -0
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +594 -0
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +1035 -0
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +208 -0
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +78 -0
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +308 -0
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +183 -0
- data/ext/ice/cpp/src/IceDiscovery/Makefile +61 -0
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +148 -0
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +39 -0
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +258 -0
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +66 -0
- data/ext/ice/cpp/src/IceSSL/Certificate.cpp +1334 -0
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +42 -0
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +151 -0
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +56 -0
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +397 -0
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +96 -0
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +41 -0
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +38 -0
- data/ext/ice/cpp/src/IceSSL/Instance.h +42 -0
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +34 -0
- data/ext/ice/cpp/src/IceSSL/Makefile +82 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +1001 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +607 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +75 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +102 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.h +56 -0
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +541 -0
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +67 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +729 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +1062 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +130 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +291 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +264 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +41 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +1514 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +609 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +91 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +246 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +51 -0
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +26 -0
- data/ext/ice/cpp/src/IceSSL/Util.cpp +1423 -0
- data/ext/ice/cpp/src/IceSSL/Util.h +136 -0
- data/ext/ice/cpp/src/IceUtil/ArgVector.cpp +65 -0
- data/ext/ice/cpp/src/IceUtil/ArgVector.h +41 -0
- data/ext/ice/cpp/src/IceUtil/Cond.cpp +386 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +477 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +144 -0
- data/ext/ice/cpp/src/IceUtil/CountDownLatch.cpp +184 -0
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +273 -0
- data/ext/ice/cpp/src/IceUtil/Exception.cpp +782 -0
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +532 -0
- data/ext/ice/cpp/src/IceUtil/FileUtil.h +159 -0
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +41 -0
- data/ext/ice/cpp/src/IceUtil/Makefile +68 -0
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +24 -0
- data/ext/ice/cpp/src/IceUtil/Options.cpp +1049 -0
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +591 -0
- data/ext/ice/cpp/src/IceUtil/Random.cpp +185 -0
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +257 -0
- data/ext/ice/cpp/src/IceUtil/SHA1.cpp +126 -0
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +200 -0
- data/ext/ice/cpp/src/IceUtil/StopWatch.h +54 -0
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +450 -0
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +842 -0
- data/ext/ice/cpp/src/IceUtil/Thread.cpp +809 -0
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +172 -0
- data/ext/ice/cpp/src/IceUtil/Time.cpp +306 -0
- data/ext/ice/cpp/src/IceUtil/Timer.cpp +251 -0
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +174 -0
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +131 -0
- data/ext/ice/cpp/src/IceUtil/Unicode.h +49 -0
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +1139 -0
- data/ext/ice/cpp/src/Slice/Checksum.cpp +452 -0
- data/ext/ice/cpp/src/Slice/CsUtil.cpp +2650 -0
- data/ext/ice/cpp/src/Slice/DotNetNames.cpp +146 -0
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +203 -0
- data/ext/ice/cpp/src/Slice/Grammar.cpp +4755 -0
- data/ext/ice/cpp/src/Slice/Grammar.h +98 -0
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +234 -0
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +4376 -0
- data/ext/ice/cpp/src/Slice/MD5.cpp +57 -0
- data/ext/ice/cpp/src/Slice/MD5.h +44 -0
- data/ext/ice/cpp/src/Slice/MD5I.cpp +385 -0
- data/ext/ice/cpp/src/Slice/MD5I.h +91 -0
- data/ext/ice/cpp/src/Slice/Makefile +65 -0
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +156 -0
- data/ext/ice/cpp/src/Slice/Parser.cpp +6386 -0
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +686 -0
- data/ext/ice/cpp/src/Slice/Python.cpp +675 -0
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +2614 -0
- data/ext/ice/cpp/src/Slice/Ruby.cpp +317 -0
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +1774 -0
- data/ext/ice/cpp/src/Slice/Scanner.cpp +2426 -0
- data/ext/ice/cpp/src/Slice/Util.cpp +325 -0
- data/ext/ice/mcpp/config.h.Darwin +227 -0
- data/ext/ice/mcpp/config.h.Linux +227 -0
- data/ext/ice/mcpp/config.h.MINGW +7 -0
- data/ext/ice/mcpp/configed.H +382 -0
- data/ext/ice/mcpp/directive.c +1699 -0
- data/ext/ice/mcpp/eval.c +1673 -0
- data/ext/ice/mcpp/expand.c +2980 -0
- data/ext/ice/mcpp/internal.H +564 -0
- data/ext/ice/mcpp/main.c +1131 -0
- data/ext/ice/mcpp/mbchar.c +869 -0
- data/ext/ice/mcpp/mcpp_lib.h +31 -0
- data/ext/ice/mcpp/mcpp_out.h +13 -0
- data/ext/ice/mcpp/support.c +2811 -0
- data/ext/ice/mcpp/system.H +396 -0
- data/ext/ice/mcpp/system.c +4940 -0
- data/ice.gemspec +41 -0
- data/lib/Glacier2.rb +12 -0
- data/lib/Glacier2/Metrics.rb +99 -0
- data/lib/Glacier2/PermissionsVerifier.rb +168 -0
- data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
- data/lib/Glacier2/Router.rb +141 -0
- data/lib/Glacier2/RouterF.rb +29 -0
- data/lib/Glacier2/SSLInfo.rb +79 -0
- data/lib/Glacier2/Session.rb +470 -0
- data/lib/Ice.rb +659 -0
- data/lib/Ice/BuiltinSequences.rb +64 -0
- data/lib/Ice/Communicator.rb +93 -0
- data/lib/Ice/CommunicatorF.rb +28 -0
- data/lib/Ice/Connection.rb +414 -0
- data/lib/Ice/ConnectionF.rb +36 -0
- data/lib/Ice/Current.rb +152 -0
- data/lib/Ice/Endpoint.rb +265 -0
- data/lib/Ice/EndpointF.rb +52 -0
- data/lib/Ice/EndpointTypes.rb +77 -0
- data/lib/Ice/FacetMap.rb +28 -0
- data/lib/Ice/Identity.rb +70 -0
- data/lib/Ice/ImplicitContext.rb +59 -0
- data/lib/Ice/ImplicitContextF.rb +28 -0
- data/lib/Ice/Instrumentation.rb +425 -0
- data/lib/Ice/InstrumentationF.rb +35 -0
- data/lib/Ice/LocalException.rb +1081 -0
- data/lib/Ice/Locator.rb +314 -0
- data/lib/Ice/LocatorF.rb +34 -0
- data/lib/Ice/Logger.rb +57 -0
- data/lib/Ice/LoggerF.rb +28 -0
- data/lib/Ice/Metrics.rb +696 -0
- data/lib/Ice/ObjectAdapterF.rb +28 -0
- data/lib/Ice/ObjectFactory.rb +53 -0
- data/lib/Ice/ObjectFactoryF.rb +28 -0
- data/lib/Ice/Plugin.rb +87 -0
- data/lib/Ice/PluginF.rb +32 -0
- data/lib/Ice/Process.rb +93 -0
- data/lib/Ice/ProcessF.rb +29 -0
- data/lib/Ice/Properties.rb +65 -0
- data/lib/Ice/PropertiesAdmin.rb +104 -0
- data/lib/Ice/PropertiesF.rb +33 -0
- data/lib/Ice/Router.rb +163 -0
- data/lib/Ice/RouterF.rb +29 -0
- data/lib/Ice/SliceChecksumDict.rb +28 -0
- data/lib/Ice/Version.rb +100 -0
- data/lib/IceBox.rb +10 -0
- data/lib/IceBox/IceBox.rb +272 -0
- data/lib/IceGrid.rb +17 -0
- data/lib/IceGrid/Admin.rb +1076 -0
- data/lib/IceGrid/Descriptor.rb +1505 -0
- data/lib/IceGrid/Exception.rb +401 -0
- data/lib/IceGrid/FileParser.rb +105 -0
- data/lib/IceGrid/Locator.rb +105 -0
- data/lib/IceGrid/Observer.rb +571 -0
- data/lib/IceGrid/Query.rb +168 -0
- data/lib/IceGrid/Registry.rb +120 -0
- data/lib/IceGrid/Session.rb +114 -0
- data/lib/IceGrid/UserAccountMapper.rb +101 -0
- data/lib/IcePatch2.rb +10 -0
- data/lib/IcePatch2/FileInfo.rb +75 -0
- data/lib/IcePatch2/FileServer.rb +141 -0
- data/lib/IceStorm.rb +11 -0
- data/lib/IceStorm/IceStorm.rb +463 -0
- data/lib/IceStorm/Metrics.rb +155 -0
- data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
- data/slice/Freeze/CatalogData.ice +49 -0
- data/slice/Freeze/Connection.ice +111 -0
- data/slice/Freeze/ConnectionF.ice +20 -0
- data/slice/Freeze/DB.ice +37 -0
- data/slice/Freeze/Evictor.ice +339 -0
- data/slice/Freeze/EvictorF.ice +22 -0
- data/slice/Freeze/EvictorStorage.ice +72 -0
- data/slice/Freeze/Exception.ice +100 -0
- data/slice/Freeze/Transaction.ice +57 -0
- data/slice/Freeze/TransactionalEvictor.ice +50 -0
- data/slice/Glacier2/Metrics.ice +77 -0
- data/slice/Glacier2/PermissionsVerifier.ice +105 -0
- data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
- data/slice/Glacier2/Router.ice +178 -0
- data/slice/Glacier2/RouterF.ice +20 -0
- data/slice/Glacier2/SSLInfo.ice +50 -0
- data/slice/Glacier2/Session.ice +273 -0
- data/slice/Ice/BuiltinSequences.ice +48 -0
- data/slice/Ice/Communicator.ice +567 -0
- data/slice/Ice/CommunicatorF.ice +20 -0
- data/slice/Ice/Connection.ice +323 -0
- data/slice/Ice/ConnectionF.ice +22 -0
- data/slice/Ice/Current.ice +160 -0
- data/slice/Ice/Endpoint.ice +227 -0
- data/slice/Ice/EndpointF.ice +32 -0
- data/slice/Ice/EndpointTypes.ice +38 -0
- data/slice/Ice/FacetMap.ice +25 -0
- data/slice/Ice/Identity.ice +59 -0
- data/slice/Ice/ImplicitContext.ice +109 -0
- data/slice/Ice/ImplicitContextF.ice +20 -0
- data/slice/Ice/Instrumentation.ice +499 -0
- data/slice/Ice/InstrumentationF.ice +26 -0
- data/slice/Ice/LocalException.ice +1015 -0
- data/slice/Ice/Locator.ice +227 -0
- data/slice/Ice/LocatorF.ice +21 -0
- data/slice/Ice/Logger.ice +86 -0
- data/slice/Ice/LoggerF.ice +20 -0
- data/slice/Ice/Metrics.ice +422 -0
- data/slice/Ice/ObjectAdapter.ice +673 -0
- data/slice/Ice/ObjectAdapterF.ice +20 -0
- data/slice/Ice/ObjectFactory.ice +60 -0
- data/slice/Ice/ObjectFactoryF.ice +20 -0
- data/slice/Ice/Plugin.ice +117 -0
- data/slice/Ice/PluginF.ice +21 -0
- data/slice/Ice/Process.ice +54 -0
- data/slice/Ice/ProcessF.ice +20 -0
- data/slice/Ice/Properties.ice +228 -0
- data/slice/Ice/PropertiesAdmin.ice +75 -0
- data/slice/Ice/PropertiesF.ice +21 -0
- data/slice/Ice/RemoteLogger.ice +232 -0
- data/slice/Ice/Router.ice +83 -0
- data/slice/Ice/RouterF.ice +20 -0
- data/slice/Ice/ServantLocator.ice +117 -0
- data/slice/Ice/ServantLocatorF.ice +20 -0
- data/slice/Ice/SliceChecksumDict.ice +25 -0
- data/slice/Ice/Version.ice +39 -0
- data/slice/IceBox/IceBox.ice +194 -0
- data/slice/IceDiscovery/IceDiscovery.ice +32 -0
- data/slice/IceGrid/Admin.ice +1578 -0
- data/slice/IceGrid/Descriptor.ice +1079 -0
- data/slice/IceGrid/Discovery.ice +73 -0
- data/slice/IceGrid/Exception.ice +383 -0
- data/slice/IceGrid/FileParser.ice +61 -0
- data/slice/IceGrid/Locator.ice +56 -0
- data/slice/IceGrid/Observer.ice +394 -0
- data/slice/IceGrid/PluginFacade.ice +316 -0
- data/slice/IceGrid/Query.ice +130 -0
- data/slice/IceGrid/Registry.ice +138 -0
- data/slice/IceGrid/Session.ice +124 -0
- data/slice/IceGrid/UserAccountMapper.ice +58 -0
- data/slice/IcePatch2/FileInfo.ice +49 -0
- data/slice/IcePatch2/FileServer.ice +129 -0
- data/slice/IceSSL/ConnectionInfo.ice +34 -0
- data/slice/IceSSL/EndpointInfo.ice +41 -0
- data/slice/IceStorm/IceStorm.ice +405 -0
- data/slice/IceStorm/Metrics.ice +71 -0
- metadata +737 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#ifndef ICE_ROUTER_INFO_F_H
|
11
|
+
#define ICE_ROUTER_INFO_F_H
|
12
|
+
|
13
|
+
#include <IceUtil/Shared.h>
|
14
|
+
|
15
|
+
#include <Ice/Handle.h>
|
16
|
+
|
17
|
+
namespace IceInternal
|
18
|
+
{
|
19
|
+
|
20
|
+
class RouterManager;
|
21
|
+
IceUtil::Shared* upCast(RouterManager*);
|
22
|
+
typedef Handle<RouterManager> RouterManagerPtr;
|
23
|
+
|
24
|
+
class RouterInfo;
|
25
|
+
IceUtil::Shared* upCast(RouterInfo*);
|
26
|
+
typedef Handle<RouterInfo> RouterInfoPtr;
|
27
|
+
|
28
|
+
}
|
29
|
+
|
30
|
+
#endif
|
@@ -0,0 +1,926 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#include <Ice/Selector.h>
|
11
|
+
#include <Ice/EventHandler.h>
|
12
|
+
#include <Ice/Instance.h>
|
13
|
+
#include <Ice/LoggerUtil.h>
|
14
|
+
#include <Ice/LocalException.h>
|
15
|
+
#include <IceUtil/Time.h>
|
16
|
+
|
17
|
+
using namespace std;
|
18
|
+
using namespace IceInternal;
|
19
|
+
|
20
|
+
#ifdef ICE_OS_WINRT
|
21
|
+
using namespace Windows::Foundation;
|
22
|
+
using namespace Windows::Storage::Streams;
|
23
|
+
using namespace Windows::Networking;
|
24
|
+
using namespace Windows::Networking::Sockets;
|
25
|
+
|
26
|
+
Selector::Selector(const InstancePtr& instance) : _instance(instance)
|
27
|
+
{
|
28
|
+
}
|
29
|
+
|
30
|
+
void
|
31
|
+
Selector::destroy()
|
32
|
+
{
|
33
|
+
}
|
34
|
+
|
35
|
+
void
|
36
|
+
Selector::initialize(IceInternal::EventHandler* handler)
|
37
|
+
{
|
38
|
+
handler->__incRef();
|
39
|
+
handler->getNativeInfo()->setCompletedHandler(
|
40
|
+
ref new SocketOperationCompletedHandler([=](int operation)
|
41
|
+
{
|
42
|
+
completed(handler, static_cast<SocketOperation>(operation));
|
43
|
+
}));
|
44
|
+
}
|
45
|
+
|
46
|
+
void
|
47
|
+
Selector::update(IceInternal::EventHandler* handler, SocketOperation remove, SocketOperation add)
|
48
|
+
{
|
49
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
|
50
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
|
51
|
+
if(add & SocketOperationRead && !(handler->_pending & SocketOperationRead))
|
52
|
+
{
|
53
|
+
handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationRead);
|
54
|
+
completed(handler, SocketOperationRead); // Start an asynchrnous read
|
55
|
+
}
|
56
|
+
else if(add & SocketOperationWrite && !(handler->_pending & SocketOperationWrite))
|
57
|
+
{
|
58
|
+
handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationWrite);
|
59
|
+
completed(handler, SocketOperationWrite); // Start an asynchrnous write
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
void
|
64
|
+
Selector::finish(IceInternal::EventHandler* handler)
|
65
|
+
{
|
66
|
+
handler->_registered = SocketOperationNone;
|
67
|
+
handler->__decRef();
|
68
|
+
}
|
69
|
+
|
70
|
+
IceInternal::EventHandler*
|
71
|
+
Selector::getNextHandler(SocketOperation& status, int timeout)
|
72
|
+
{
|
73
|
+
Lock lock(*this);
|
74
|
+
while(_events.empty())
|
75
|
+
{
|
76
|
+
if(timeout > 0)
|
77
|
+
{
|
78
|
+
timedWait(IceUtil::Time::seconds(timeout));
|
79
|
+
if(_events.empty())
|
80
|
+
{
|
81
|
+
throw SelectorTimeoutException();
|
82
|
+
}
|
83
|
+
}
|
84
|
+
else
|
85
|
+
{
|
86
|
+
wait();
|
87
|
+
}
|
88
|
+
}
|
89
|
+
assert(!_events.empty());
|
90
|
+
IceInternal::EventHandler* handler = _events.front().handler;
|
91
|
+
const SelectEvent& event = _events.front();
|
92
|
+
status = event.status;
|
93
|
+
_events.pop_front();
|
94
|
+
return handler;
|
95
|
+
}
|
96
|
+
|
97
|
+
void
|
98
|
+
Selector::completed(IceInternal::EventHandler* handler, SocketOperation op)
|
99
|
+
{
|
100
|
+
Lock lock(*this);
|
101
|
+
_events.push_back(SelectEvent(handler, op));
|
102
|
+
notify();
|
103
|
+
}
|
104
|
+
|
105
|
+
#elif defined(ICE_USE_IOCP)
|
106
|
+
|
107
|
+
Selector::Selector(const InstancePtr& instance) : _instance(instance)
|
108
|
+
{
|
109
|
+
}
|
110
|
+
|
111
|
+
Selector::~Selector()
|
112
|
+
{
|
113
|
+
}
|
114
|
+
|
115
|
+
void
|
116
|
+
Selector::setup(int sizeIO)
|
117
|
+
{
|
118
|
+
_handle = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, sizeIO);
|
119
|
+
if(_handle == NULL)
|
120
|
+
{
|
121
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
122
|
+
ex.error = GetLastError();
|
123
|
+
throw ex;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
void
|
128
|
+
Selector::destroy()
|
129
|
+
{
|
130
|
+
CloseHandle(_handle);
|
131
|
+
}
|
132
|
+
|
133
|
+
void
|
134
|
+
Selector::initialize(EventHandler* handler)
|
135
|
+
{
|
136
|
+
HANDLE socket = reinterpret_cast<HANDLE>(handler->getNativeInfo()->fd());
|
137
|
+
if(CreateIoCompletionPort(socket, _handle, reinterpret_cast<ULONG_PTR>(handler), 0) == NULL)
|
138
|
+
{
|
139
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
140
|
+
ex.error = GetLastError();
|
141
|
+
throw ex;
|
142
|
+
}
|
143
|
+
handler->__incRef();
|
144
|
+
handler->getNativeInfo()->initialize(_handle, reinterpret_cast<ULONG_PTR>(handler));
|
145
|
+
}
|
146
|
+
|
147
|
+
void
|
148
|
+
Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
|
149
|
+
{
|
150
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
|
151
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
|
152
|
+
AsyncInfo* info = 0;
|
153
|
+
if(add & SocketOperationRead && !(handler->_pending & SocketOperationRead))
|
154
|
+
{
|
155
|
+
handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationRead);
|
156
|
+
info = handler->getNativeInfo()->getAsyncInfo(SocketOperationRead);
|
157
|
+
}
|
158
|
+
else if(add & SocketOperationWrite && !(handler->_pending & SocketOperationWrite))
|
159
|
+
{
|
160
|
+
handler->_pending = static_cast<SocketOperation>(handler->_pending | SocketOperationWrite);
|
161
|
+
info = handler->getNativeInfo()->getAsyncInfo(SocketOperationWrite);
|
162
|
+
}
|
163
|
+
|
164
|
+
if(info)
|
165
|
+
{
|
166
|
+
if(!PostQueuedCompletionStatus(_handle, 0, reinterpret_cast<ULONG_PTR>(handler), info))
|
167
|
+
{
|
168
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
169
|
+
ex.error = GetLastError();
|
170
|
+
throw ex;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
void
|
176
|
+
Selector::finish(IceInternal::EventHandler* handler)
|
177
|
+
{
|
178
|
+
handler->_registered = SocketOperationNone;
|
179
|
+
handler->__decRef();
|
180
|
+
}
|
181
|
+
|
182
|
+
EventHandler*
|
183
|
+
Selector::getNextHandler(SocketOperation& status, DWORD& count, int& error, int timeout)
|
184
|
+
{
|
185
|
+
ULONG_PTR key;
|
186
|
+
LPOVERLAPPED ol;
|
187
|
+
error = 0;
|
188
|
+
|
189
|
+
if(!GetQueuedCompletionStatus(_handle, &count, &key, &ol, timeout > 0 ? timeout * 1000 : INFINITE))
|
190
|
+
{
|
191
|
+
int err = WSAGetLastError();
|
192
|
+
if(ol == 0)
|
193
|
+
{
|
194
|
+
if(err == WAIT_TIMEOUT)
|
195
|
+
{
|
196
|
+
throw SelectorTimeoutException();
|
197
|
+
}
|
198
|
+
else
|
199
|
+
{
|
200
|
+
{
|
201
|
+
Ice::SocketException ex(__FILE__, __LINE__, err);
|
202
|
+
Ice::Error out(_instance->initializationData().logger);
|
203
|
+
out << "fatal error: couldn't dequeue packet from completion port:\n" << ex;
|
204
|
+
}
|
205
|
+
abort();
|
206
|
+
}
|
207
|
+
}
|
208
|
+
AsyncInfo* info = static_cast<AsyncInfo*>(ol);
|
209
|
+
status = info->status;
|
210
|
+
count = SOCKET_ERROR;
|
211
|
+
error = WSAGetLastError();
|
212
|
+
return reinterpret_cast<EventHandler*>(key);
|
213
|
+
}
|
214
|
+
|
215
|
+
assert(ol);
|
216
|
+
AsyncInfo* info = static_cast<AsyncInfo*>(ol);
|
217
|
+
status = info->status;
|
218
|
+
return reinterpret_cast<EventHandler*>(key);
|
219
|
+
}
|
220
|
+
|
221
|
+
#elif defined(ICE_USE_KQUEUE) || defined(ICE_USE_EPOLL)
|
222
|
+
|
223
|
+
Selector::Selector(const InstancePtr& instance) : _instance(instance)
|
224
|
+
{
|
225
|
+
_events.resize(256);
|
226
|
+
#if defined(ICE_USE_EPOLL)
|
227
|
+
_queueFd = epoll_create(1);
|
228
|
+
if(_queueFd < 0)
|
229
|
+
{
|
230
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
231
|
+
ex.error = IceInternal::getSocketErrno();
|
232
|
+
throw ex;
|
233
|
+
}
|
234
|
+
#else
|
235
|
+
_queueFd = kqueue();
|
236
|
+
if(_queueFd < 0)
|
237
|
+
{
|
238
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
239
|
+
ex.error = getSocketErrno();
|
240
|
+
throw ex;
|
241
|
+
}
|
242
|
+
_selecting = false;
|
243
|
+
#endif
|
244
|
+
}
|
245
|
+
|
246
|
+
Selector::~Selector()
|
247
|
+
{
|
248
|
+
}
|
249
|
+
|
250
|
+
void
|
251
|
+
Selector::destroy()
|
252
|
+
{
|
253
|
+
try
|
254
|
+
{
|
255
|
+
closeSocket(_queueFd);
|
256
|
+
}
|
257
|
+
catch(const Ice::LocalException& ex)
|
258
|
+
{
|
259
|
+
Ice::Error out(_instance->initializationData().logger);
|
260
|
+
out << "exception in selector while calling closeSocket():\n" << ex;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
void
|
265
|
+
Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
|
266
|
+
{
|
267
|
+
SocketOperation previous = handler->_registered;
|
268
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
|
269
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
|
270
|
+
if(previous == handler->_registered)
|
271
|
+
{
|
272
|
+
return;
|
273
|
+
}
|
274
|
+
|
275
|
+
SOCKET fd = handler->getNativeInfo()->fd();
|
276
|
+
#if defined(ICE_USE_EPOLL)
|
277
|
+
epoll_event event;
|
278
|
+
memset(&event, 0, sizeof(epoll_event));
|
279
|
+
event.data.ptr = handler;
|
280
|
+
SocketOperation status = handler->_registered;
|
281
|
+
if(handler->_disabled)
|
282
|
+
{
|
283
|
+
status = static_cast<SocketOperation>(status & ~handler->_disabled);
|
284
|
+
previous = static_cast<SocketOperation>(previous & ~handler->_disabled);
|
285
|
+
}
|
286
|
+
event.events |= status & SocketOperationRead ? EPOLLIN : 0;
|
287
|
+
event.events |= status & SocketOperationWrite ? EPOLLOUT : 0;
|
288
|
+
int op;
|
289
|
+
if(!previous && status)
|
290
|
+
{
|
291
|
+
op = EPOLL_CTL_ADD;
|
292
|
+
}
|
293
|
+
else if(previous && !status)
|
294
|
+
{
|
295
|
+
op = EPOLL_CTL_DEL;
|
296
|
+
}
|
297
|
+
else if(previous == status)
|
298
|
+
{
|
299
|
+
return;
|
300
|
+
}
|
301
|
+
else
|
302
|
+
{
|
303
|
+
op = EPOLL_CTL_MOD;
|
304
|
+
}
|
305
|
+
if(epoll_ctl(_queueFd, op, fd, &event) != 0)
|
306
|
+
{
|
307
|
+
Ice::Error out(_instance->initializationData().logger);
|
308
|
+
out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
|
309
|
+
}
|
310
|
+
#else // ICE_USE_KQUEUE
|
311
|
+
if(remove & SocketOperationRead)
|
312
|
+
{
|
313
|
+
struct kevent ev;
|
314
|
+
EV_SET(&ev, fd, EVFILT_READ, EV_DELETE, 0, 0, handler);
|
315
|
+
_changes.push_back(ev);
|
316
|
+
}
|
317
|
+
if(remove & SocketOperationWrite)
|
318
|
+
{
|
319
|
+
struct kevent ev;
|
320
|
+
EV_SET(&ev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, handler);
|
321
|
+
_changes.push_back(ev);
|
322
|
+
}
|
323
|
+
if(add & SocketOperationRead)
|
324
|
+
{
|
325
|
+
struct kevent ev;
|
326
|
+
EV_SET(&ev, fd, EVFILT_READ, EV_ADD | (handler->_disabled & SocketOperationRead ? EV_DISABLE : 0), 0, 0,
|
327
|
+
handler);
|
328
|
+
_changes.push_back(ev);
|
329
|
+
}
|
330
|
+
if(add & SocketOperationWrite)
|
331
|
+
{
|
332
|
+
struct kevent ev;
|
333
|
+
EV_SET(&ev, fd, EVFILT_WRITE, EV_ADD | (handler->_disabled & SocketOperationWrite ? EV_DISABLE : 0), 0, 0,
|
334
|
+
handler);
|
335
|
+
_changes.push_back(ev);
|
336
|
+
}
|
337
|
+
if(_selecting)
|
338
|
+
{
|
339
|
+
updateSelector();
|
340
|
+
}
|
341
|
+
#endif
|
342
|
+
}
|
343
|
+
|
344
|
+
void
|
345
|
+
Selector::enable(EventHandler* handler, SocketOperation status)
|
346
|
+
{
|
347
|
+
if(!(handler->_disabled & status))
|
348
|
+
{
|
349
|
+
return;
|
350
|
+
}
|
351
|
+
handler->_disabled = static_cast<SocketOperation>(handler->_disabled & ~status);
|
352
|
+
|
353
|
+
if(handler->_registered & status)
|
354
|
+
{
|
355
|
+
SOCKET fd = handler->getNativeInfo()->fd();
|
356
|
+
#if defined(ICE_USE_EPOLL)
|
357
|
+
SocketOperation previous = static_cast<SocketOperation>(handler->_registered & ~(handler->_disabled | status));
|
358
|
+
SocketOperation newStatus = static_cast<SocketOperation>(handler->_registered & ~handler->_disabled);
|
359
|
+
epoll_event event;
|
360
|
+
memset(&event, 0, sizeof(epoll_event));
|
361
|
+
event.data.ptr = handler;
|
362
|
+
event.events |= newStatus & SocketOperationRead ? EPOLLIN : 0;
|
363
|
+
event.events |= newStatus & SocketOperationWrite ? EPOLLOUT : 0;
|
364
|
+
if(epoll_ctl(_queueFd, previous ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &event) != 0)
|
365
|
+
{
|
366
|
+
Ice::Error out(_instance->initializationData().logger);
|
367
|
+
out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
|
368
|
+
}
|
369
|
+
#else // ICE_USE_KQUEUE
|
370
|
+
struct kevent ev;
|
371
|
+
EV_SET(&ev, fd, status == SocketOperationRead ? EVFILT_READ : EVFILT_WRITE, EV_ENABLE, 0, 0, handler);
|
372
|
+
_changes.push_back(ev);
|
373
|
+
if(_selecting)
|
374
|
+
{
|
375
|
+
updateSelector();
|
376
|
+
}
|
377
|
+
#endif
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
void
|
382
|
+
Selector::disable(EventHandler* handler, SocketOperation status)
|
383
|
+
{
|
384
|
+
if(handler->_disabled & status)
|
385
|
+
{
|
386
|
+
return;
|
387
|
+
}
|
388
|
+
handler->_disabled = static_cast<SocketOperation>(handler->_disabled | status);
|
389
|
+
|
390
|
+
if(handler->_registered & status)
|
391
|
+
{
|
392
|
+
SOCKET fd = handler->getNativeInfo()->fd();
|
393
|
+
#if defined(ICE_USE_EPOLL)
|
394
|
+
SocketOperation newStatus = static_cast<SocketOperation>(handler->_registered & ~handler->_disabled);
|
395
|
+
epoll_event event;
|
396
|
+
memset(&event, 0, sizeof(epoll_event));
|
397
|
+
event.data.ptr = handler;
|
398
|
+
event.events |= newStatus & SocketOperationRead ? EPOLLIN : 0;
|
399
|
+
event.events |= newStatus & SocketOperationWrite ? EPOLLOUT : 0;
|
400
|
+
if(epoll_ctl(_queueFd, newStatus ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, &event) != 0)
|
401
|
+
{
|
402
|
+
Ice::Error out(_instance->initializationData().logger);
|
403
|
+
out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
|
404
|
+
}
|
405
|
+
#else // ICE_USE_KQUEUE
|
406
|
+
struct kevent ev;
|
407
|
+
EV_SET(&ev, fd, status == SocketOperationRead ? EVFILT_READ : EVFILT_WRITE, EV_DISABLE, 0, 0, handler);
|
408
|
+
_changes.push_back(ev);
|
409
|
+
if(_selecting)
|
410
|
+
{
|
411
|
+
updateSelector();
|
412
|
+
}
|
413
|
+
#endif
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
bool
|
418
|
+
Selector::finish(EventHandler* handler, bool closeNow)
|
419
|
+
{
|
420
|
+
if(handler->_registered)
|
421
|
+
{
|
422
|
+
update(handler, handler->_registered, SocketOperationNone);
|
423
|
+
}
|
424
|
+
#if defined(ICE_USE_KQUEUE)
|
425
|
+
if(closeNow && !_changes.empty())
|
426
|
+
{
|
427
|
+
//
|
428
|
+
// Update selector now to remove the FD from the kqueue if
|
429
|
+
// we're going to close it now. This isn't necessary for
|
430
|
+
// epoll since we always update the epoll FD immediately.
|
431
|
+
//
|
432
|
+
updateSelector();
|
433
|
+
}
|
434
|
+
#endif
|
435
|
+
return closeNow;
|
436
|
+
}
|
437
|
+
|
438
|
+
#if defined(ICE_USE_KQUEUE)
|
439
|
+
void
|
440
|
+
Selector::updateSelector()
|
441
|
+
{
|
442
|
+
int rs = kevent(_queueFd, &_changes[0], _changes.size(), 0, 0, 0);
|
443
|
+
if(rs < 0)
|
444
|
+
{
|
445
|
+
Ice::Error out(_instance->initializationData().logger);
|
446
|
+
out << "error while updating selector:\n" << IceUtilInternal::errorToString(IceInternal::getSocketErrno());
|
447
|
+
}
|
448
|
+
_changes.clear();
|
449
|
+
}
|
450
|
+
#endif
|
451
|
+
|
452
|
+
void
|
453
|
+
Selector::select(vector<pair<EventHandler*, SocketOperation> >& handlers, int timeout)
|
454
|
+
{
|
455
|
+
int ret = 0;
|
456
|
+
while(true)
|
457
|
+
{
|
458
|
+
#if defined(ICE_USE_EPOLL)
|
459
|
+
ret = epoll_wait(_queueFd, &_events[0], _events.size(), timeout > 0 ? timeout * 1000 : -1);
|
460
|
+
#else
|
461
|
+
assert(!_events.empty());
|
462
|
+
if(timeout > 0)
|
463
|
+
{
|
464
|
+
struct timespec ts;
|
465
|
+
ts.tv_sec = timeout;
|
466
|
+
ts.tv_nsec = 0;
|
467
|
+
ret = kevent(_queueFd, 0, 0, &_events[0], _events.size(), &ts);
|
468
|
+
}
|
469
|
+
else
|
470
|
+
{
|
471
|
+
ret = kevent(_queueFd, 0, 0, &_events[0], _events.size(), 0);
|
472
|
+
}
|
473
|
+
#endif
|
474
|
+
if(ret == SOCKET_ERROR)
|
475
|
+
{
|
476
|
+
if(interrupted())
|
477
|
+
{
|
478
|
+
continue;
|
479
|
+
}
|
480
|
+
|
481
|
+
{
|
482
|
+
Ice::SocketException ex(__FILE__, __LINE__, IceInternal::getSocketErrno());
|
483
|
+
Ice::Error out(_instance->initializationData().logger);
|
484
|
+
out << "fatal error: selector failed:\n" << ex;
|
485
|
+
}
|
486
|
+
abort();
|
487
|
+
}
|
488
|
+
break;
|
489
|
+
}
|
490
|
+
|
491
|
+
if(ret == 0)
|
492
|
+
{
|
493
|
+
throw SelectorTimeoutException();
|
494
|
+
}
|
495
|
+
|
496
|
+
assert(ret > 0);
|
497
|
+
for(int i = 0; i < ret; ++i)
|
498
|
+
{
|
499
|
+
pair<EventHandler*, SocketOperation> p;
|
500
|
+
#if defined(ICE_USE_EPOLL)
|
501
|
+
struct epoll_event& ev = _events[i];
|
502
|
+
p.first = reinterpret_cast<EventHandler*>(ev.data.ptr);
|
503
|
+
p.second = static_cast<SocketOperation>(((ev.events & (EPOLLIN | EPOLLERR)) ?
|
504
|
+
SocketOperationRead : SocketOperationNone) |
|
505
|
+
((ev.events & (EPOLLOUT | EPOLLERR)) ?
|
506
|
+
SocketOperationWrite : SocketOperationNone));
|
507
|
+
#else
|
508
|
+
struct kevent& ev = _events[i];
|
509
|
+
if(ev.flags & EV_ERROR)
|
510
|
+
{
|
511
|
+
Ice::Error out(_instance->initializationData().logger);
|
512
|
+
out << "selector returned error:\n" << IceUtilInternal::errorToString(ev.data);
|
513
|
+
continue;
|
514
|
+
}
|
515
|
+
p.first = reinterpret_cast<EventHandler*>(ev.udata);
|
516
|
+
p.second = (ev.filter == EVFILT_READ) ? SocketOperationRead : SocketOperationWrite;
|
517
|
+
#endif
|
518
|
+
handlers.push_back(p);
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
#elif defined(ICE_USE_SELECT) || defined(ICE_USE_POLL)
|
523
|
+
|
524
|
+
Selector::Selector(const InstancePtr& instance) : _instance(instance), _selecting(false), _interrupted(false)
|
525
|
+
{
|
526
|
+
SOCKET fds[2];
|
527
|
+
createPipe(fds);
|
528
|
+
_fdIntrRead = fds[0];
|
529
|
+
_fdIntrWrite = fds[1];
|
530
|
+
#if defined(ICE_USE_SELECT)
|
531
|
+
FD_ZERO(&_readFdSet);
|
532
|
+
FD_ZERO(&_writeFdSet);
|
533
|
+
FD_ZERO(&_errorFdSet);
|
534
|
+
FD_SET(_fdIntrRead, &_readFdSet);
|
535
|
+
#else
|
536
|
+
struct pollfd pollFd;
|
537
|
+
pollFd.fd = _fdIntrRead;
|
538
|
+
pollFd.events = POLLIN;
|
539
|
+
_pollFdSet.push_back(pollFd);
|
540
|
+
#endif
|
541
|
+
}
|
542
|
+
|
543
|
+
Selector::~Selector()
|
544
|
+
{
|
545
|
+
try
|
546
|
+
{
|
547
|
+
closeSocket(_fdIntrWrite);
|
548
|
+
}
|
549
|
+
catch(const Ice::LocalException& ex)
|
550
|
+
{
|
551
|
+
Ice::Error out(_instance->initializationData().logger);
|
552
|
+
out << "exception in selector while calling closeSocket():\n" << ex;
|
553
|
+
}
|
554
|
+
|
555
|
+
try
|
556
|
+
{
|
557
|
+
closeSocket(_fdIntrRead);
|
558
|
+
}
|
559
|
+
catch(const Ice::LocalException& ex)
|
560
|
+
{
|
561
|
+
Ice::Error out(_instance->initializationData().logger);
|
562
|
+
out << "exception in selector while calling closeSocket():\n" << ex;
|
563
|
+
}
|
564
|
+
}
|
565
|
+
|
566
|
+
void
|
567
|
+
Selector::destroy()
|
568
|
+
{
|
569
|
+
#if !defined(ICE_USE_SELECT) && !defined(ICE_USE_POLL)
|
570
|
+
assert(_events.empty());
|
571
|
+
#endif
|
572
|
+
}
|
573
|
+
|
574
|
+
void
|
575
|
+
Selector::update(EventHandler* handler, SocketOperation remove, SocketOperation add)
|
576
|
+
{
|
577
|
+
SocketOperation previous = handler->_registered;
|
578
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered & ~remove);
|
579
|
+
handler->_registered = static_cast<SocketOperation>(handler->_registered | add);
|
580
|
+
if(previous == handler->_registered)
|
581
|
+
{
|
582
|
+
return;
|
583
|
+
}
|
584
|
+
|
585
|
+
updateImpl(handler);
|
586
|
+
}
|
587
|
+
|
588
|
+
void
|
589
|
+
Selector::enable(EventHandler* handler, SocketOperation status)
|
590
|
+
{
|
591
|
+
if(!(handler->_disabled & status))
|
592
|
+
{
|
593
|
+
return;
|
594
|
+
}
|
595
|
+
handler->_disabled = static_cast<SocketOperation>(handler->_disabled & ~status);
|
596
|
+
|
597
|
+
if(handler->_registered & status)
|
598
|
+
{
|
599
|
+
updateImpl(handler);
|
600
|
+
}
|
601
|
+
}
|
602
|
+
|
603
|
+
void
|
604
|
+
Selector::disable(EventHandler* handler, SocketOperation status)
|
605
|
+
{
|
606
|
+
if(handler->_disabled & status)
|
607
|
+
{
|
608
|
+
return;
|
609
|
+
}
|
610
|
+
handler->_disabled = static_cast<SocketOperation>(handler->_disabled | status);
|
611
|
+
|
612
|
+
if(handler->_registered & status)
|
613
|
+
{
|
614
|
+
updateImpl(handler);
|
615
|
+
}
|
616
|
+
}
|
617
|
+
|
618
|
+
bool
|
619
|
+
Selector::finish(EventHandler* handler, bool closeNow)
|
620
|
+
{
|
621
|
+
if(handler->_registered)
|
622
|
+
{
|
623
|
+
update(handler, handler->_registered, SocketOperationNone);
|
624
|
+
return false; // Don't close now if selecting.
|
625
|
+
}
|
626
|
+
return closeNow;
|
627
|
+
}
|
628
|
+
|
629
|
+
void
|
630
|
+
Selector::startSelect()
|
631
|
+
{
|
632
|
+
if(_interrupted)
|
633
|
+
{
|
634
|
+
char c;
|
635
|
+
while(true)
|
636
|
+
{
|
637
|
+
ssize_t ret;
|
638
|
+
#ifdef _WIN32
|
639
|
+
ret = ::recv(_fdIntrRead, &c, 1, 0);
|
640
|
+
#else
|
641
|
+
ret = ::read(_fdIntrRead, &c, 1);
|
642
|
+
#endif
|
643
|
+
if(ret == SOCKET_ERROR)
|
644
|
+
{
|
645
|
+
if(interrupted())
|
646
|
+
{
|
647
|
+
continue;
|
648
|
+
}
|
649
|
+
|
650
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
651
|
+
ex.error = IceInternal::getSocketErrno();
|
652
|
+
throw ex;
|
653
|
+
}
|
654
|
+
break;
|
655
|
+
}
|
656
|
+
_interrupted = false;
|
657
|
+
|
658
|
+
if(!_changes.empty())
|
659
|
+
{
|
660
|
+
updateSelector();
|
661
|
+
}
|
662
|
+
}
|
663
|
+
_selecting = true;
|
664
|
+
}
|
665
|
+
|
666
|
+
void
|
667
|
+
Selector::finishSelect()
|
668
|
+
{
|
669
|
+
_selecting = false;
|
670
|
+
}
|
671
|
+
|
672
|
+
void
|
673
|
+
Selector::select(vector<pair<EventHandler*, SocketOperation> >& handlers, int timeout)
|
674
|
+
{
|
675
|
+
int ret = 0;
|
676
|
+
while(true)
|
677
|
+
{
|
678
|
+
#if defined(ICE_USE_SELECT)
|
679
|
+
fd_set* rFdSet = fdSetCopy(_selectedReadFdSet, _readFdSet);
|
680
|
+
fd_set* wFdSet = fdSetCopy(_selectedWriteFdSet, _writeFdSet);
|
681
|
+
fd_set* eFdSet = fdSetCopy(_selectedErrorFdSet, _errorFdSet);
|
682
|
+
if(timeout > 0)
|
683
|
+
{
|
684
|
+
struct timeval tv;
|
685
|
+
tv.tv_sec = timeout;
|
686
|
+
tv.tv_usec = 0;
|
687
|
+
ret = ::select(0, rFdSet, wFdSet, eFdSet, &tv); // The first parameter is ignored on Windows
|
688
|
+
}
|
689
|
+
else
|
690
|
+
{
|
691
|
+
ret = ::select(0, rFdSet, wFdSet, eFdSet, 0); // The first parameter is ignored on Windows
|
692
|
+
}
|
693
|
+
#else
|
694
|
+
ret = poll(&_pollFdSet[0], _pollFdSet.size(), timeout > 0 ? timeout * 1000 : -1);
|
695
|
+
#endif
|
696
|
+
if(ret == SOCKET_ERROR)
|
697
|
+
{
|
698
|
+
if(interrupted())
|
699
|
+
{
|
700
|
+
continue;
|
701
|
+
}
|
702
|
+
|
703
|
+
{
|
704
|
+
Ice::SocketException ex(__FILE__, __LINE__, IceInternal::getSocketErrno());
|
705
|
+
Ice::Error out(_instance->initializationData().logger);
|
706
|
+
out << "fatal error: selector failed:\n" << ex;
|
707
|
+
}
|
708
|
+
abort();
|
709
|
+
}
|
710
|
+
break;
|
711
|
+
}
|
712
|
+
|
713
|
+
if(ret == 0)
|
714
|
+
{
|
715
|
+
throw SelectorTimeoutException();
|
716
|
+
}
|
717
|
+
|
718
|
+
assert(ret > 0);
|
719
|
+
|
720
|
+
#if defined(ICE_USE_SELECT)
|
721
|
+
if(_selectedReadFdSet.fd_count == 0 && _selectedWriteFdSet.fd_count == 0 && _selectedErrorFdSet.fd_count == 0)
|
722
|
+
{
|
723
|
+
Ice::Error out(_instance->initializationData().logger);
|
724
|
+
out << "select() in selector returned " << ret << " but no filedescriptor is ready";
|
725
|
+
return;
|
726
|
+
}
|
727
|
+
|
728
|
+
for(unsigned int i = 0; i < static_cast<unsigned int>(ret); ++i)
|
729
|
+
{
|
730
|
+
pair<EventHandler*, SocketOperation> p;
|
731
|
+
|
732
|
+
//
|
733
|
+
// Round robin for the filedescriptors.
|
734
|
+
//
|
735
|
+
SOCKET fd;
|
736
|
+
p.second = SocketOperationNone;
|
737
|
+
if(i < _selectedReadFdSet.fd_count)
|
738
|
+
{
|
739
|
+
fd = _selectedReadFdSet.fd_array[i];
|
740
|
+
p.second = static_cast<SocketOperation>(p.second | SocketOperationRead);
|
741
|
+
}
|
742
|
+
else if(i < _selectedWriteFdSet.fd_count + _selectedReadFdSet.fd_count)
|
743
|
+
{
|
744
|
+
fd = _selectedWriteFdSet.fd_array[i - _selectedReadFdSet.fd_count];
|
745
|
+
p.second = static_cast<SocketOperation>(p.second | SocketOperationWrite);
|
746
|
+
}
|
747
|
+
else
|
748
|
+
{
|
749
|
+
fd = _selectedErrorFdSet.fd_array[i - _selectedReadFdSet.fd_count - _selectedWriteFdSet.fd_count];
|
750
|
+
p.second = static_cast<SocketOperation>(p.second | SocketOperationConnect);
|
751
|
+
}
|
752
|
+
|
753
|
+
if(fd == _fdIntrRead) // Interrupted, we have to process the interrupt before returning any handlers
|
754
|
+
{
|
755
|
+
handlers.clear();
|
756
|
+
return;
|
757
|
+
}
|
758
|
+
|
759
|
+
assert(_handlers.find(fd) != _handlers.end());
|
760
|
+
p.first = _handlers[fd];
|
761
|
+
handlers.push_back(p);
|
762
|
+
}
|
763
|
+
#else
|
764
|
+
if(_pollFdSet[0].revents == POLLIN) // Interrupted, we have to process the interrupt before returning any handlers
|
765
|
+
{
|
766
|
+
return;
|
767
|
+
}
|
768
|
+
|
769
|
+
for(vector<struct pollfd>::const_iterator q = _pollFdSet.begin(); q != _pollFdSet.end(); ++q)
|
770
|
+
{
|
771
|
+
pair<EventHandler*, SocketOperation> p;
|
772
|
+
if(q->revents != 0)
|
773
|
+
{
|
774
|
+
SOCKET fd = q->fd;
|
775
|
+
assert(fd != _fdIntrRead);
|
776
|
+
assert(_handlers.find(fd) != _handlers.end());
|
777
|
+
p.first = _handlers[fd];
|
778
|
+
p.second = SocketOperationNone;
|
779
|
+
if(q->revents & (POLLIN | POLLERR | POLLHUP))
|
780
|
+
{
|
781
|
+
p.second = static_cast<SocketOperation>(p.second | SocketOperationRead);
|
782
|
+
}
|
783
|
+
if(q->revents & POLLOUT)
|
784
|
+
{
|
785
|
+
p.second = static_cast<SocketOperation>(p.second | SocketOperationWrite);
|
786
|
+
}
|
787
|
+
assert(p.second);
|
788
|
+
handlers.push_back(p);
|
789
|
+
}
|
790
|
+
}
|
791
|
+
#endif
|
792
|
+
}
|
793
|
+
|
794
|
+
void
|
795
|
+
Selector::updateImpl(EventHandler* handler)
|
796
|
+
{
|
797
|
+
SocketOperation status = static_cast<SocketOperation>(handler->_registered & ~handler->_disabled);
|
798
|
+
_changes.push_back(make_pair(handler, status));
|
799
|
+
if(_selecting)
|
800
|
+
{
|
801
|
+
if(!_interrupted)
|
802
|
+
{
|
803
|
+
char c = 0;
|
804
|
+
while(true)
|
805
|
+
{
|
806
|
+
#ifdef _WIN32
|
807
|
+
if(::send(_fdIntrWrite, &c, 1, 0) == SOCKET_ERROR)
|
808
|
+
#else
|
809
|
+
if(::write(_fdIntrWrite, &c, 1) == SOCKET_ERROR)
|
810
|
+
#endif
|
811
|
+
{
|
812
|
+
if(interrupted())
|
813
|
+
{
|
814
|
+
continue;
|
815
|
+
}
|
816
|
+
|
817
|
+
Ice::SocketException ex(__FILE__, __LINE__);
|
818
|
+
ex.error = IceInternal::getSocketErrno();
|
819
|
+
throw ex;
|
820
|
+
}
|
821
|
+
break;
|
822
|
+
}
|
823
|
+
_interrupted = true;
|
824
|
+
}
|
825
|
+
}
|
826
|
+
else
|
827
|
+
{
|
828
|
+
updateSelector();
|
829
|
+
}
|
830
|
+
}
|
831
|
+
|
832
|
+
void
|
833
|
+
Selector::updateSelector()
|
834
|
+
{
|
835
|
+
for(vector<pair<EventHandler*, SocketOperation> >::const_iterator p = _changes.begin(); p != _changes.end(); ++p)
|
836
|
+
{
|
837
|
+
EventHandler* handler = p->first;
|
838
|
+
SocketOperation status = p->second;
|
839
|
+
|
840
|
+
SOCKET fd = handler->getNativeInfo()->fd();
|
841
|
+
if(status)
|
842
|
+
{
|
843
|
+
#if defined(ICE_USE_SELECT)
|
844
|
+
if(status & SocketOperationRead)
|
845
|
+
{
|
846
|
+
FD_SET(fd, &_readFdSet);
|
847
|
+
}
|
848
|
+
else
|
849
|
+
{
|
850
|
+
FD_CLR(fd, &_readFdSet);
|
851
|
+
}
|
852
|
+
if(status & SocketOperationWrite)
|
853
|
+
{
|
854
|
+
FD_SET(fd, &_writeFdSet);
|
855
|
+
}
|
856
|
+
else
|
857
|
+
{
|
858
|
+
FD_CLR(fd, &_writeFdSet);
|
859
|
+
}
|
860
|
+
if(status & SocketOperationConnect)
|
861
|
+
{
|
862
|
+
FD_SET(fd, &_writeFdSet);
|
863
|
+
FD_SET(fd, &_errorFdSet);
|
864
|
+
}
|
865
|
+
else
|
866
|
+
{
|
867
|
+
FD_CLR(fd, &_writeFdSet);
|
868
|
+
FD_CLR(fd, &_errorFdSet);
|
869
|
+
}
|
870
|
+
_handlers[fd] = handler;
|
871
|
+
#else
|
872
|
+
short events = 0;
|
873
|
+
if(status & SocketOperationRead)
|
874
|
+
{
|
875
|
+
events |= POLLIN;
|
876
|
+
}
|
877
|
+
if(status & SocketOperationWrite)
|
878
|
+
{
|
879
|
+
events |= POLLOUT;
|
880
|
+
}
|
881
|
+
map<SOCKET, EventHandler*>::const_iterator q = _handlers.find(fd);
|
882
|
+
if(q == _handlers.end())
|
883
|
+
{
|
884
|
+
struct pollfd pollFd;
|
885
|
+
pollFd.fd = fd;
|
886
|
+
pollFd.events = events;
|
887
|
+
pollFd.revents = 0;
|
888
|
+
_pollFdSet.push_back(pollFd);
|
889
|
+
_handlers.insert(make_pair(fd, handler));
|
890
|
+
}
|
891
|
+
else
|
892
|
+
{
|
893
|
+
for(vector<struct pollfd>::iterator r = _pollFdSet.begin(); r != _pollFdSet.end(); ++r)
|
894
|
+
{
|
895
|
+
if(r->fd == fd)
|
896
|
+
{
|
897
|
+
r->events = events;
|
898
|
+
break;
|
899
|
+
}
|
900
|
+
}
|
901
|
+
}
|
902
|
+
#endif
|
903
|
+
}
|
904
|
+
else
|
905
|
+
{
|
906
|
+
#if defined(ICE_USE_SELECT)
|
907
|
+
FD_CLR(fd, &_readFdSet);
|
908
|
+
FD_CLR(fd, &_writeFdSet);
|
909
|
+
FD_CLR(fd, &_errorFdSet);
|
910
|
+
#else
|
911
|
+
for(vector<struct pollfd>::iterator r = _pollFdSet.begin(); r != _pollFdSet.end(); ++r)
|
912
|
+
{
|
913
|
+
if(r->fd == fd)
|
914
|
+
{
|
915
|
+
_pollFdSet.erase(r);
|
916
|
+
break;
|
917
|
+
}
|
918
|
+
}
|
919
|
+
#endif
|
920
|
+
_handlers.erase(fd);
|
921
|
+
}
|
922
|
+
}
|
923
|
+
_changes.clear();
|
924
|
+
}
|
925
|
+
|
926
|
+
#endif
|