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