passenger 5.1.12 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG +18 -1
- data/Rakefile +4 -1
- data/build/agent.rb +2 -2
- data/build/apache2.rb +17 -10
- data/build/basics.rb +18 -4
- data/build/common_library.rb +7 -3
- data/build/cxx_tests.rb +2 -7
- data/build/misc.rb +3 -1
- data/build/nginx.rb +11 -5
- data/build/oxt_tests.rb +0 -3
- data/build/packaging.rb +3 -2
- data/build/schema_printer.rb +103 -0
- data/build/support/cplusplus.rb +2 -2
- data/build/support/cxx_dependency_map.rb +2575 -868
- data/dev/ci/lib/functions.sh +1 -1
- data/dev/ci/lib/set-container-envvars.sh +1 -1
- data/dev/ci/lib/setup-container.sh +1 -1
- data/dev/ci/run-tests-natively +1 -1
- data/dev/ci/run-tests-with-docker +1 -1
- data/dev/ci/scripts/debug-console-wrapper.sh +1 -1
- data/dev/ci/scripts/docker-entrypoint-stage2.sh +1 -1
- data/dev/ci/scripts/docker-entrypoint.sh +1 -1
- data/dev/ci/scripts/inituidgid +1 -1
- data/dev/ci/scripts/run-tests-natively-stage2.sh +1 -1
- data/dev/ci/scripts/setup-host-natively.sh +1 -1
- data/dev/ci/setup-host +1 -1
- data/dev/ci/tests/apache2/run +1 -1
- data/dev/ci/tests/apache2/setup +1 -1
- data/dev/ci/tests/cxx/run +1 -1
- data/dev/ci/tests/cxx/setup +1 -1
- data/dev/ci/tests/debian/Jenkinsfile +0 -1
- data/dev/ci/tests/debian/run +1 -1
- data/dev/ci/tests/nginx-dynamic/run +1 -1
- data/dev/ci/tests/nginx-dynamic/setup +1 -1
- data/dev/ci/tests/nginx/run +1 -1
- data/dev/ci/tests/nginx/setup +1 -1
- data/dev/ci/tests/nodejs/run +1 -1
- data/dev/ci/tests/nodejs/setup +1 -1
- data/dev/ci/tests/rpm/run +1 -1
- data/dev/ci/tests/ruby/run +1 -1
- data/dev/ci/tests/ruby/setup +1 -1
- data/dev/ci/tests/source-packaging/run +1 -1
- data/dev/ci/tests/source-packaging/setup +1 -1
- data/dev/ci/tests/standalone/run +1 -1
- data/dev/ci/tests/standalone/setup +1 -1
- data/dev/configkit-schemas/index.json +1708 -0
- data/dev/configkit-schemas/update_schema_inline_comments.rb +118 -0
- data/dev/copy_boost_headers +13 -1
- data/dev/index_cxx_dependencies.rb +20 -7
- data/dev/vagrant/provision.sh +1 -1
- data/resources/mime.types +1 -0
- data/resources/templates/standalone/http.erb +1 -6
- data/src/agent/Core/AdminPanelConnector.h +550 -0
- data/src/agent/Core/ApiServer.h +159 -97
- data/src/agent/Core/ApplicationPool/Group.h +2 -0
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +3 -2
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +109 -0
- data/src/agent/Core/ApplicationPool/Implementation.cpp +5 -3
- data/src/agent/Core/ApplicationPool/Options.h +5 -6
- data/src/agent/Core/ApplicationPool/Pool.h +59 -2
- data/src/agent/Core/ApplicationPool/Pool/GeneralUtils.cpp +3 -3
- data/src/agent/Core/ApplicationPool/Pool/InitializationAndShutdown.cpp +2 -2
- data/src/agent/Core/ApplicationPool/Pool/Miscellaneous.cpp +6 -0
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +129 -0
- data/src/agent/Core/Config.h +475 -0
- data/src/agent/Core/ConfigChange.cpp +349 -0
- data/src/agent/Core/ConfigChange.h +54 -0
- data/src/agent/Core/Controller.h +35 -3
- data/src/agent/Core/Controller/CheckoutSession.cpp +1 -1
- data/src/agent/Core/Controller/Config.cpp +0 -2
- data/src/agent/Core/Controller/Config.h +168 -104
- data/src/agent/Core/Controller/ForwardResponse.cpp +1 -1
- data/src/agent/Core/Controller/InitRequest.cpp +14 -15
- data/src/agent/Core/Controller/InitializationAndShutdown.cpp +34 -44
- data/src/agent/Core/Controller/Request.h +0 -1
- data/src/agent/Core/CoreMain.cpp +236 -349
- data/src/agent/Core/OptionParser.h +75 -89
- data/src/agent/Core/SecurityUpdateChecker.h +263 -100
- data/src/agent/Core/SpawningKit/Config.h +6 -2
- data/src/agent/Core/SpawningKit/Spawner.h +0 -45
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +1 -0
- data/src/agent/Shared/ApiAccountUtils.h +318 -0
- data/src/agent/Shared/ApiServerUtils.h +3 -104
- data/src/agent/Shared/Fundamentals/Initialization.cpp +81 -44
- data/src/agent/Shared/Fundamentals/Initialization.h +12 -7
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +21 -0
- data/src/agent/Watchdog/AgentWatcher.cpp +1 -1
- data/src/agent/Watchdog/ApiServer.h +100 -14
- data/src/agent/Watchdog/Config.h +340 -0
- data/src/agent/Watchdog/CoreWatcher.cpp +27 -13
- data/src/agent/Watchdog/InstanceDirToucher.cpp +1 -1
- data/src/agent/Watchdog/WatchdogMain.cpp +190 -206
- data/src/apache2_module/Bucket.cpp +4 -0
- data/src/apache2_module/Bucket.h +7 -3
- data/src/apache2_module/CBindings.cpp +49 -0
- data/src/apache2_module/Config.cpp +242 -0
- data/src/apache2_module/Config.h +109 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +485 -0
- data/src/apache2_module/{ConfigurationCommands.cpp.cxxcodebuilder → ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder} +29 -15
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +298 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp.cxxcodebuilder +171 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +854 -0
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +188 -0
- data/src/apache2_module/ConfigGeneral/ManifestGeneration.h +610 -0
- data/src/apache2_module/ConfigGeneral/SetterFuncs.h +65 -0
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +174 -0
- data/src/apache2_module/{MergeDirConfig.cpp.cxxcodebuilder → DirConfig/AutoGeneratedCreateFunction.cpp.cxxcodebuilder} +54 -32
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +113 -0
- data/src/apache2_module/{SetHeaders.cpp.cxxcodebuilder → DirConfig/AutoGeneratedHeaderSerialization.cpp.cxxcodebuilder} +34 -23
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +426 -0
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +165 -0
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +269 -0
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +148 -0
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +534 -0
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +230 -0
- data/src/apache2_module/DirectoryMapper.h +19 -16
- data/src/apache2_module/Hooks.cpp +124 -138
- data/src/apache2_module/Hooks.h +9 -14
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +263 -0
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +152 -0
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +299 -0
- data/src/apache2_module/{ConfigurationFields.hpp.cxxcodebuilder → ServerConfig/AutoGeneratedStruct.h.cxxcodebuilder} +105 -18
- data/src/apache2_module/Utils.h +215 -0
- data/src/apache2_module/mod_passenger.c +16 -8
- data/src/cxx_supportlib/AppTypes.h +2 -0
- data/src/cxx_supportlib/ConfigKit/ConfigKit.h +1 -1
- data/src/cxx_supportlib/ConfigKit/DummyTranslator.h +8 -8
- data/src/cxx_supportlib/ConfigKit/IN_PRACTICE.md +7 -41
- data/src/cxx_supportlib/ConfigKit/PrefixTranslator.h +12 -66
- data/src/cxx_supportlib/ConfigKit/Schema.h +62 -11
- data/src/cxx_supportlib/ConfigKit/{ValidationUtils.h → SchemaUtils.h} +12 -3
- data/src/cxx_supportlib/ConfigKit/Store.h +17 -9
- data/src/cxx_supportlib/ConfigKit/SubComponentUtils.h +2 -1
- data/src/cxx_supportlib/ConfigKit/TableTranslator.h +13 -70
- data/src/cxx_supportlib/ConfigKit/Translator.h +125 -0
- data/src/cxx_supportlib/Constants.h +1 -3
- data/src/cxx_supportlib/FileTools/FileManip.cpp +297 -0
- data/src/cxx_supportlib/FileTools/FileManip.h +162 -0
- data/src/cxx_supportlib/{Utils → FileTools}/LargeFiles.cpp +6 -3
- data/src/cxx_supportlib/{Utils → FileTools}/LargeFiles.h +7 -5
- data/src/cxx_supportlib/FileTools/PathManip.cpp +240 -0
- data/src/cxx_supportlib/FileTools/PathManip.h +91 -0
- data/src/cxx_supportlib/FileTools/PathManipCBindings.cpp +62 -0
- data/src/{apache2_module/Configuration.h → cxx_supportlib/FileTools/PathManipCBindings.h} +12 -19
- data/src/cxx_supportlib/Hooks.h +19 -16
- data/src/cxx_supportlib/InstanceDirectory.h +11 -0
- data/src/cxx_supportlib/JsonTools/Autocast.h +79 -0
- data/src/cxx_supportlib/JsonTools/CBindings.cpp +364 -0
- data/src/cxx_supportlib/JsonTools/CBindings.h +101 -0
- data/src/cxx_supportlib/LoggingKit/Config.h +13 -0
- data/src/cxx_supportlib/LoggingKit/Context.h +5 -2
- data/src/cxx_supportlib/LoggingKit/Forward.h +0 -1
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +12 -4
- data/src/cxx_supportlib/ResourceLocator.h +15 -0
- data/src/cxx_supportlib/ServerKit/Config.h +156 -0
- data/src/cxx_supportlib/ServerKit/Context.h +59 -38
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +2 -2
- data/src/cxx_supportlib/ServerKit/HttpServer.h +16 -2
- data/src/cxx_supportlib/ServerKit/Server.h +32 -15
- data/src/cxx_supportlib/Utils.cpp +0 -441
- data/src/cxx_supportlib/Utils.h +0 -158
- data/src/cxx_supportlib/Utils/Curl.h +1 -0
- data/src/cxx_supportlib/Utils/ProcessMetricsCollector.h +1 -0
- data/src/cxx_supportlib/Utils/StrIntUtilsNoStrictAliasing.cpp +2 -0
- data/src/cxx_supportlib/Utils/VariantMap.h +31 -0
- data/src/cxx_supportlib/WatchdogLauncher.cpp +7 -79
- data/src/cxx_supportlib/WatchdogLauncher.h +50 -53
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +981 -0
- data/src/cxx_supportlib/oxt/macros.hpp +9 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/COPYING +145 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/changelog.md +342 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/readme.md +49 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/base64/base64.hpp +178 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/client.hpp +33 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/close.hpp +342 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/asio.hpp +131 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/asio_ssl.hpp +39 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/chrono.hpp +68 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/connection_hdl.hpp +52 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/cpp11.hpp +162 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/functional.hpp +105 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/md5.hpp +448 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/memory.hpp +89 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/network.hpp +106 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/platforms.hpp +46 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/random.hpp +82 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/regex.hpp +59 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/stdint.hpp +73 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/system_error.hpp +84 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/thread.hpp +84 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/time.hpp +56 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/common/type_traits.hpp +65 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/concurrency/basic.hpp +46 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/concurrency/none.hpp +80 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/asio.hpp +77 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/asio_client.hpp +77 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/asio_no_tls.hpp +73 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/asio_no_tls_client.hpp +73 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/boost_config.hpp +72 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/core.hpp +285 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/core_client.hpp +294 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/debug.hpp +286 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/debug_asio.hpp +77 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +73 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/minimal_client.hpp +72 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/config/minimal_server.hpp +312 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/connection.hpp +1651 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/connection_base.hpp +38 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/endpoint.hpp +700 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/endpoint_base.hpp +38 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/error.hpp +277 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/extensions/extension.hpp +102 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +128 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +752 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/frame.hpp +861 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/constants.hpp +308 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/impl/parser.hpp +196 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/impl/request.hpp +191 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/impl/response.hpp +266 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/parser.hpp +619 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/request.hpp +124 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/http/response.hpp +188 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/impl/connection_impl.hpp +2372 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/impl/endpoint_impl.hpp +269 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/impl/utilities_impl.hpp +87 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/logger/basic.hpp +199 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/logger/levels.hpp +203 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/logger/stub.hpp +119 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/logger/syslog.hpp +146 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/message_buffer/alloc.hpp +105 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/message_buffer/message.hpp +340 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/message_buffer/pool.hpp +229 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/base.hpp +299 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/hybi00.hpp +462 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/hybi07.hpp +78 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/hybi08.hpp +83 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/hybi13.hpp +1056 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/processors/processor.hpp +407 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/random/none.hpp +60 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/random/random_device.hpp +80 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/roles/client_endpoint.hpp +173 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/roles/server_endpoint.hpp +190 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/server.hpp +33 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/sha1/sha1.hpp +189 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/base.hpp +232 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/connection.hpp +1204 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/endpoint.hpp +1147 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/security/base.hpp +159 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/security/none.hpp +370 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/asio/security/tls.hpp +484 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/base/connection.hpp +238 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/base/endpoint.hpp +77 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/debug/base.hpp +104 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/debug/connection.hpp +412 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/debug/endpoint.hpp +140 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/iostream/base.hpp +133 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/iostream/connection.hpp +714 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/iostream/endpoint.hpp +222 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/stub/base.hpp +95 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/stub/connection.hpp +286 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/transport/stub/endpoint.hpp +140 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/uri.hpp +355 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/utf8_validator.hpp +154 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/utilities.hpp +182 -0
- data/src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/version.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +96 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +951 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +520 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +258 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +942 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +567 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +697 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +386 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +1519 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +1137 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +288 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +569 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +854 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +371 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +521 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +2241 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +246 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +260 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +238 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +483 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +220 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +825 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/datagram_socket_service.hpp +438 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer_service.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/addressof.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +34 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +491 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +385 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +128 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +127 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +192 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +1050 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +294 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +34 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +229 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +119 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +208 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +244 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +85 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/function.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +65 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +99 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +57 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +161 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +480 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +333 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +120 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +453 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +80 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +432 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +78 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +688 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +167 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +307 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +498 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +126 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +76 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +210 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_serial_port_service.ipp +153 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +269 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +89 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +315 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +190 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +649 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +3470 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +178 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +120 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +178 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/task_io_service.hpp +80 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/task_io_service.ipp +476 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +86 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +103 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +136 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +72 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +222 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +26 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +31 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +66 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +69 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +500 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +62 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +148 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +216 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +158 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +131 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +128 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +120 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +78 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +87 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +66 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +107 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +81 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +166 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +324 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_serial_port_service.hpp +236 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +138 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +108 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +125 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +135 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +127 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +122 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +125 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +460 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +452 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +170 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +123 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +133 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +131 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +131 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +103 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +81 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +221 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/shared_ptr.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +218 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +100 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +336 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +318 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +93 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +410 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +178 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +64 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +144 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/task_io_service.hpp +203 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/task_io_service_operation.hpp +78 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/task_io_service_thread_info.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +58 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +93 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +53 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +333 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +95 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +60 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +85 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +47 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/weak_ptr.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/win_iocp_serial_port_service.hpp +230 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +130 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +293 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +345 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +195 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +125 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +135 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +123 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +124 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +129 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +83 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +87 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp +114 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +65 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +360 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +340 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +432 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +130 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +79 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_service.hpp +156 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_service.ipp +157 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +755 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +812 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +1149 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +556 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +355 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +179 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +767 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +827 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +772 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +202 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +243 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +248 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +265 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +270 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +96 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +262 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +246 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +141 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +206 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +571 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +44 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +117 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +228 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +300 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +57 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +193 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_service.hpp +178 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +157 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +72 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +61 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +241 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +106 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +135 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +130 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +125 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +492 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +364 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +99 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor_service.hpp +262 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/raw_socket_service.hpp +438 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +633 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +666 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +925 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/seq_packet_socket_service.hpp +386 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +169 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_service.hpp +255 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_service.hpp +136 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_acceptor_service.hpp +308 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +522 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +267 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/basic_context.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +789 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +194 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_service.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +112 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +166 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +327 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +166 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +351 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +103 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +74 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +62 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +128 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +115 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +1177 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +102 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +168 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/basic_context.hpp +436 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/context_service.hpp +176 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/detail/openssl_context_service.hpp +396 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/detail/openssl_operation.hpp +526 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/detail/openssl_stream_service.hpp +573 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/stream.hpp +503 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/old/stream_service.hpp +186 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +102 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +758 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_service.hpp +42 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +65 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +63 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +254 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_socket_service.hpp +382 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +88 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +94 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +43 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/waitable_timer_service.hpp +170 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_handle.hpp +283 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +378 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +361 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle_service.hpp +179 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +118 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle_service.hpp +222 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle_service.hpp +220 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +620 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +672 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono.hpp +20 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/chrono.hpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/chrono_io.hpp +34 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/chrono.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +242 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp +356 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/thread_clock.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/chrono.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp +354 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/posix/thread_clock.hpp +92 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/process_cpu_clocks.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/thread_clock.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp +54 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +163 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/floor.hpp +36 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/include.hpp +23 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_get.hpp +593 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +295 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +317 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_style.hpp +35 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +1003 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/ios_base_state.hpp +152 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_get.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +1243 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_put.hpp +261 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_units.hpp +260 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/timezone.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +437 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/manip_base.hpp +101 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/to_string.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io_v1/chrono_io.hpp +637 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/process_cpu_clocks.hpp +525 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/round.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/thread_clock.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/typeof/boost/chrono/chrono.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/typeof/boost/ratio.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +21 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +460 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +112 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +126 -0
- data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/chrono.cpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/process_cpu_clocks.cpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/thread_clock.cpp +19 -0
- data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +250 -0
- data/src/cxx_supportlib/vendor-modified/boost/pointer_cast.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/random.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +283 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/bernoulli_distribution.hpp +197 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/beta_distribution.hpp +184 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/binomial_distribution.hpp +434 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/cauchy_distribution.hpp +214 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/chi_squared_distribution.hpp +209 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/auto_link.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/config.hpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/const_mod.hpp +216 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/disable_warnings.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/enable_warnings.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/generator_bits.hpp +36 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +121 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/integer_log2.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/iterator_mixin.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/large_arithmetic.hpp +122 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +84 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/polynomial.hpp +384 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/ptr_helper.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +115 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +398 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/signed_unsigned_tools.hpp +89 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/uniform_int_float.hpp +76 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/detail/vector_io.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +241 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/discrete_distribution.hpp +636 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/exponential_distribution.hpp +386 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/extreme_value_distribution.hpp +177 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/fisher_f_distribution.hpp +183 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/gamma_distribution.hpp +292 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +96 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/geometric_distribution.hpp +267 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +883 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +271 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +267 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +537 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/laplace_distribution.hpp +175 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +466 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +217 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/lognormal_distribution.hpp +254 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +682 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/negative_binomial_distribution.hpp +220 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/non_central_chi_squared_distribution.hpp +221 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/normal_distribution.hpp +374 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/piecewise_constant_distribution.hpp +466 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/piecewise_linear_distribution.hpp +531 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/poisson_distribution.hpp +360 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +143 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/random_number_generator.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/ranlux.hpp +99 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/seed_seq.hpp +118 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +269 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_output.hpp +51 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/student_t_distribution.hpp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +613 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/taus88.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +107 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/triangle_distribution.hpp +232 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_01.hpp +257 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int.hpp +99 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +419 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_on_sphere.hpp +284 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real.hpp +82 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +241 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +307 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/variate_generator.hpp +122 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/weibull_distribution.hpp +177 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +208 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio.hpp +14 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/ratio_io.hpp +1342 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/include.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/abs.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/arithmetic.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/comparison.hpp +19 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/divides.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/equal_to.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/gcd.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater_equal.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/lcm.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less_equal.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/minus.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/negate.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/not_equal_to.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp +31 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/plus.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_c_tag.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_constant.hpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/sign.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/times.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio_io.hpp +1076 -0
- data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +1002 -0
- data/src/cxx_supportlib/vendor-modified/modp_b64.cpp +11 -0
- data/src/helper-scripts/rack-preloader.rb +1 -1
- data/src/nginx_module/{ConfigurationCommands.c → ConfigGeneral/AutoGeneratedDefinitions.c} +351 -134
- data/src/nginx_module/{ConfigurationCommands.c.cxxcodebuilder → ConfigGeneral/AutoGeneratedDefinitions.c.cxxcodebuilder} +14 -25
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +396 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c.cxxcodebuilder +160 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +831 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c.cxxcodebuilder +168 -0
- data/src/nginx_module/ConfigGeneral/ManifestGeneration.c +887 -0
- data/src/nginx_module/ConfigGeneral/ManifestGeneration.h +100 -0
- data/src/nginx_module/Configuration.c +165 -621
- data/src/nginx_module/Configuration.h +43 -33
- data/src/nginx_module/ContentHandler.c +46 -40
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +282 -0
- data/src/nginx_module/{CreateLocationConfig.c.cxxcodebuilder → LocationConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder} +43 -17
- data/src/nginx_module/{CacheLocationConfig.c → LocationConfig/AutoGeneratedHeaderSerialization.c} +148 -180
- data/src/nginx_module/{CacheLocationConfig.c.cxxcodebuilder → LocationConfig/AutoGeneratedHeaderSerialization.c.cxxcodebuilder} +13 -11
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +595 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +190 -0
- data/src/nginx_module/{MergeLocationConfig.c → LocationConfig/AutoGeneratedMergeFunction.c} +32 -42
- data/src/nginx_module/{MergeLocationConfig.c.cxxcodebuilder → LocationConfig/AutoGeneratedMergeFunction.c.cxxcodebuilder} +18 -11
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +220 -0
- data/src/nginx_module/{LocationConfig.h.cxxcodebuilder → LocationConfig/AutoGeneratedStruct.h.cxxcodebuilder} +70 -48
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +163 -0
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +125 -0
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +303 -0
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +173 -0
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +133 -0
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h.cxxcodebuilder +154 -0
- data/src/nginx_module/config +13 -4
- data/src/nginx_module/ngx_http_passenger_module.c +154 -84
- data/src/ruby_supportlib/phusion_passenger.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +613 -131
- data/src/ruby_supportlib/phusion_passenger/apache2/config_utils.rb +52 -0
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +18 -4
- data/src/ruby_supportlib/phusion_passenger/config/main.rb +2 -0
- data/src/ruby_supportlib/phusion_passenger/config/system_properties_command.rb +104 -0
- data/src/ruby_supportlib/phusion_passenger/constants.rb +0 -2
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +470 -138
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info.rb +17 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +11 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +7 -7
- data/src/ruby_supportlib/phusion_passenger/platform_info/networking.rb +293 -0
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +8 -54
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +1 -5
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +4 -7
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +1 -1
- data/src/schema_printer/SchemaPrinterMain.cpp +78 -0
- data/src/schema_printer/SchemaPrinterMain.cpp.cxxcodebuilder +116 -0
- metadata +671 -30
- data/src/apache2_module/Configuration.cpp +0 -737
- data/src/apache2_module/Configuration.hpp +0 -274
- data/src/apache2_module/ConfigurationCommands.cpp +0 -199
- data/src/apache2_module/ConfigurationFields.hpp +0 -187
- data/src/apache2_module/ConfigurationSetters.cpp +0 -436
- data/src/apache2_module/ConfigurationSetters.cpp.cxxcodebuilder +0 -144
- data/src/apache2_module/CreateDirConfig.cpp +0 -68
- data/src/apache2_module/CreateDirConfig.cpp.cxxcodebuilder +0 -81
- data/src/apache2_module/MergeDirConfig.cpp +0 -155
- data/src/apache2_module/SetHeaders.cpp +0 -111
- data/src/nginx_module/CreateLocationConfig.c +0 -100
- data/src/nginx_module/LocationConfig.h +0 -95
@@ -0,0 +1,772 @@
|
|
1
|
+
//
|
2
|
+
// io_service.hpp
|
3
|
+
// ~~~~~~~~~~~~~~
|
4
|
+
//
|
5
|
+
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
6
|
+
//
|
7
|
+
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
8
|
+
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
9
|
+
//
|
10
|
+
|
11
|
+
#ifndef BOOST_ASIO_IO_SERVICE_HPP
|
12
|
+
#define BOOST_ASIO_IO_SERVICE_HPP
|
13
|
+
|
14
|
+
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
|
15
|
+
# pragma once
|
16
|
+
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
|
17
|
+
|
18
|
+
#include <boost/asio/detail/config.hpp>
|
19
|
+
#include <cstddef>
|
20
|
+
#include <stdexcept>
|
21
|
+
#include <typeinfo>
|
22
|
+
#include <boost/asio/async_result.hpp>
|
23
|
+
#include <boost/asio/detail/noncopyable.hpp>
|
24
|
+
#include <boost/asio/detail/wrapped_handler.hpp>
|
25
|
+
#include <boost/system/error_code.hpp>
|
26
|
+
|
27
|
+
#if defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__)
|
28
|
+
# include <boost/asio/detail/winsock_init.hpp>
|
29
|
+
#elif defined(__sun) || defined(__QNX__) || defined(__hpux) || defined(_AIX) \
|
30
|
+
|| defined(__osf__)
|
31
|
+
# include <boost/asio/detail/signal_init.hpp>
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#include <boost/asio/detail/push_options.hpp>
|
35
|
+
|
36
|
+
namespace boost {
|
37
|
+
namespace asio {
|
38
|
+
|
39
|
+
class io_service;
|
40
|
+
template <typename Service> Service& use_service(io_service& ios);
|
41
|
+
template <typename Service> void add_service(io_service& ios, Service* svc);
|
42
|
+
template <typename Service> bool has_service(io_service& ios);
|
43
|
+
|
44
|
+
namespace detail {
|
45
|
+
#if defined(BOOST_ASIO_HAS_IOCP)
|
46
|
+
typedef class win_iocp_io_service io_service_impl;
|
47
|
+
class win_iocp_overlapped_ptr;
|
48
|
+
#else
|
49
|
+
typedef class task_io_service io_service_impl;
|
50
|
+
#endif
|
51
|
+
class service_registry;
|
52
|
+
} // namespace detail
|
53
|
+
|
54
|
+
/// Provides core I/O functionality.
|
55
|
+
/**
|
56
|
+
* The io_service class provides the core I/O functionality for users of the
|
57
|
+
* asynchronous I/O objects, including:
|
58
|
+
*
|
59
|
+
* @li boost::asio::ip::tcp::socket
|
60
|
+
* @li boost::asio::ip::tcp::acceptor
|
61
|
+
* @li boost::asio::ip::udp::socket
|
62
|
+
* @li boost::asio::deadline_timer.
|
63
|
+
*
|
64
|
+
* The io_service class also includes facilities intended for developers of
|
65
|
+
* custom asynchronous services.
|
66
|
+
*
|
67
|
+
* @par Thread Safety
|
68
|
+
* @e Distinct @e objects: Safe.@n
|
69
|
+
* @e Shared @e objects: Safe, with the specific exceptions of the reset() and
|
70
|
+
* notify_fork() functions. Calling reset() while there are unfinished run(),
|
71
|
+
* run_one(), poll() or poll_one() calls results in undefined behaviour. The
|
72
|
+
* notify_fork() function should not be called while any io_service function,
|
73
|
+
* or any function on an I/O object that is associated with the io_service, is
|
74
|
+
* being called in another thread.
|
75
|
+
*
|
76
|
+
* @par Concepts:
|
77
|
+
* Dispatcher.
|
78
|
+
*
|
79
|
+
* @par Synchronous and asynchronous operations
|
80
|
+
*
|
81
|
+
* Synchronous operations on I/O objects implicitly run the io_service object
|
82
|
+
* for an individual operation. The io_service functions run(), run_one(),
|
83
|
+
* poll() or poll_one() must be called for the io_service to perform
|
84
|
+
* asynchronous operations on behalf of a C++ program. Notification that an
|
85
|
+
* asynchronous operation has completed is delivered by invocation of the
|
86
|
+
* associated handler. Handlers are invoked only by a thread that is currently
|
87
|
+
* calling any overload of run(), run_one(), poll() or poll_one() for the
|
88
|
+
* io_service.
|
89
|
+
*
|
90
|
+
* @par Effect of exceptions thrown from handlers
|
91
|
+
*
|
92
|
+
* If an exception is thrown from a handler, the exception is allowed to
|
93
|
+
* propagate through the throwing thread's invocation of run(), run_one(),
|
94
|
+
* poll() or poll_one(). No other threads that are calling any of these
|
95
|
+
* functions are affected. It is then the responsibility of the application to
|
96
|
+
* catch the exception.
|
97
|
+
*
|
98
|
+
* After the exception has been caught, the run(), run_one(), poll() or
|
99
|
+
* poll_one() call may be restarted @em without the need for an intervening
|
100
|
+
* call to reset(). This allows the thread to rejoin the io_service object's
|
101
|
+
* thread pool without impacting any other threads in the pool.
|
102
|
+
*
|
103
|
+
* For example:
|
104
|
+
*
|
105
|
+
* @code
|
106
|
+
* boost::asio::io_service io_service;
|
107
|
+
* ...
|
108
|
+
* for (;;)
|
109
|
+
* {
|
110
|
+
* try
|
111
|
+
* {
|
112
|
+
* io_service.run();
|
113
|
+
* break; // run() exited normally
|
114
|
+
* }
|
115
|
+
* catch (my_exception& e)
|
116
|
+
* {
|
117
|
+
* // Deal with exception as appropriate.
|
118
|
+
* }
|
119
|
+
* }
|
120
|
+
* @endcode
|
121
|
+
*
|
122
|
+
* @par Stopping the io_service from running out of work
|
123
|
+
*
|
124
|
+
* Some applications may need to prevent an io_service object's run() call from
|
125
|
+
* returning when there is no more work to do. For example, the io_service may
|
126
|
+
* be being run in a background thread that is launched prior to the
|
127
|
+
* application's asynchronous operations. The run() call may be kept running by
|
128
|
+
* creating an object of type boost::asio::io_service::work:
|
129
|
+
*
|
130
|
+
* @code boost::asio::io_service io_service;
|
131
|
+
* boost::asio::io_service::work work(io_service);
|
132
|
+
* ... @endcode
|
133
|
+
*
|
134
|
+
* To effect a shutdown, the application will then need to call the io_service
|
135
|
+
* object's stop() member function. This will cause the io_service run() call
|
136
|
+
* to return as soon as possible, abandoning unfinished operations and without
|
137
|
+
* permitting ready handlers to be dispatched.
|
138
|
+
*
|
139
|
+
* Alternatively, if the application requires that all operations and handlers
|
140
|
+
* be allowed to finish normally, the work object may be explicitly destroyed.
|
141
|
+
*
|
142
|
+
* @code boost::asio::io_service io_service;
|
143
|
+
* auto_ptr<boost::asio::io_service::work> work(
|
144
|
+
* new boost::asio::io_service::work(io_service));
|
145
|
+
* ...
|
146
|
+
* work.reset(); // Allow run() to exit. @endcode
|
147
|
+
*
|
148
|
+
* @par The io_service class and I/O services
|
149
|
+
*
|
150
|
+
* Class io_service implements an extensible, type-safe, polymorphic set of I/O
|
151
|
+
* services, indexed by service type. An object of class io_service must be
|
152
|
+
* initialised before I/O objects such as sockets, resolvers and timers can be
|
153
|
+
* used. These I/O objects are distinguished by having constructors that accept
|
154
|
+
* an @c io_service& parameter.
|
155
|
+
*
|
156
|
+
* I/O services exist to manage the logical interface to the operating system on
|
157
|
+
* behalf of the I/O objects. In particular, there are resources that are shared
|
158
|
+
* across a class of I/O objects. For example, timers may be implemented in
|
159
|
+
* terms of a single timer queue. The I/O services manage these shared
|
160
|
+
* resources.
|
161
|
+
*
|
162
|
+
* Access to the services of an io_service is via three function templates,
|
163
|
+
* use_service(), add_service() and has_service().
|
164
|
+
*
|
165
|
+
* In a call to @c use_service<Service>(), the type argument chooses a service,
|
166
|
+
* making available all members of the named type. If @c Service is not present
|
167
|
+
* in an io_service, an object of type @c Service is created and added to the
|
168
|
+
* io_service. A C++ program can check if an io_service implements a
|
169
|
+
* particular service with the function template @c has_service<Service>().
|
170
|
+
*
|
171
|
+
* Service objects may be explicitly added to an io_service using the function
|
172
|
+
* template @c add_service<Service>(). If the @c Service is already present, the
|
173
|
+
* service_already_exists exception is thrown. If the owner of the service is
|
174
|
+
* not the same object as the io_service parameter, the invalid_service_owner
|
175
|
+
* exception is thrown.
|
176
|
+
*
|
177
|
+
* Once a service reference is obtained from an io_service object by calling
|
178
|
+
* use_service(), that reference remains usable as long as the owning io_service
|
179
|
+
* object exists.
|
180
|
+
*
|
181
|
+
* All I/O service implementations have io_service::service as a public base
|
182
|
+
* class. Custom I/O services may be implemented by deriving from this class and
|
183
|
+
* then added to an io_service using the facilities described above.
|
184
|
+
*/
|
185
|
+
class io_service
|
186
|
+
: private noncopyable
|
187
|
+
{
|
188
|
+
private:
|
189
|
+
typedef detail::io_service_impl impl_type;
|
190
|
+
#if defined(BOOST_ASIO_HAS_IOCP)
|
191
|
+
friend class detail::win_iocp_overlapped_ptr;
|
192
|
+
#endif
|
193
|
+
|
194
|
+
public:
|
195
|
+
class work;
|
196
|
+
friend class work;
|
197
|
+
|
198
|
+
class id;
|
199
|
+
|
200
|
+
class service;
|
201
|
+
|
202
|
+
class strand;
|
203
|
+
|
204
|
+
/// Constructor.
|
205
|
+
BOOST_ASIO_DECL io_service();
|
206
|
+
|
207
|
+
/// Constructor.
|
208
|
+
/**
|
209
|
+
* Construct with a hint about the required level of concurrency.
|
210
|
+
*
|
211
|
+
* @param concurrency_hint A suggestion to the implementation on how many
|
212
|
+
* threads it should allow to run simultaneously.
|
213
|
+
*/
|
214
|
+
BOOST_ASIO_DECL explicit io_service(std::size_t concurrency_hint);
|
215
|
+
|
216
|
+
/// Destructor.
|
217
|
+
/**
|
218
|
+
* On destruction, the io_service performs the following sequence of
|
219
|
+
* operations:
|
220
|
+
*
|
221
|
+
* @li For each service object @c svc in the io_service set, in reverse order
|
222
|
+
* of the beginning of service object lifetime, performs
|
223
|
+
* @c svc->shutdown_service().
|
224
|
+
*
|
225
|
+
* @li Uninvoked handler objects that were scheduled for deferred invocation
|
226
|
+
* on the io_service, or any associated strand, are destroyed.
|
227
|
+
*
|
228
|
+
* @li For each service object @c svc in the io_service set, in reverse order
|
229
|
+
* of the beginning of service object lifetime, performs
|
230
|
+
* <tt>delete static_cast<io_service::service*>(svc)</tt>.
|
231
|
+
*
|
232
|
+
* @note The destruction sequence described above permits programs to
|
233
|
+
* simplify their resource management by using @c shared_ptr<>. Where an
|
234
|
+
* object's lifetime is tied to the lifetime of a connection (or some other
|
235
|
+
* sequence of asynchronous operations), a @c shared_ptr to the object would
|
236
|
+
* be bound into the handlers for all asynchronous operations associated with
|
237
|
+
* it. This works as follows:
|
238
|
+
*
|
239
|
+
* @li When a single connection ends, all associated asynchronous operations
|
240
|
+
* complete. The corresponding handler objects are destroyed, and all
|
241
|
+
* @c shared_ptr references to the objects are destroyed.
|
242
|
+
*
|
243
|
+
* @li To shut down the whole program, the io_service function stop() is
|
244
|
+
* called to terminate any run() calls as soon as possible. The io_service
|
245
|
+
* destructor defined above destroys all handlers, causing all @c shared_ptr
|
246
|
+
* references to all connection objects to be destroyed.
|
247
|
+
*/
|
248
|
+
BOOST_ASIO_DECL ~io_service();
|
249
|
+
|
250
|
+
/// Run the io_service object's event processing loop.
|
251
|
+
/**
|
252
|
+
* The run() function blocks until all work has finished and there are no
|
253
|
+
* more handlers to be dispatched, or until the io_service has been stopped.
|
254
|
+
*
|
255
|
+
* Multiple threads may call the run() function to set up a pool of threads
|
256
|
+
* from which the io_service may execute handlers. All threads that are
|
257
|
+
* waiting in the pool are equivalent and the io_service may choose any one
|
258
|
+
* of them to invoke a handler.
|
259
|
+
*
|
260
|
+
* A normal exit from the run() function implies that the io_service object
|
261
|
+
* is stopped (the stopped() function returns @c true). Subsequent calls to
|
262
|
+
* run(), run_one(), poll() or poll_one() will return immediately unless there
|
263
|
+
* is a prior call to reset().
|
264
|
+
*
|
265
|
+
* @return The number of handlers that were executed.
|
266
|
+
*
|
267
|
+
* @throws boost::system::system_error Thrown on failure.
|
268
|
+
*
|
269
|
+
* @note The run() function must not be called from a thread that is currently
|
270
|
+
* calling one of run(), run_one(), poll() or poll_one() on the same
|
271
|
+
* io_service object.
|
272
|
+
*
|
273
|
+
* The poll() function may also be used to dispatch ready handlers, but
|
274
|
+
* without blocking.
|
275
|
+
*/
|
276
|
+
BOOST_ASIO_DECL std::size_t run();
|
277
|
+
|
278
|
+
/// Run the io_service object's event processing loop.
|
279
|
+
/**
|
280
|
+
* The run() function blocks until all work has finished and there are no
|
281
|
+
* more handlers to be dispatched, or until the io_service has been stopped.
|
282
|
+
*
|
283
|
+
* Multiple threads may call the run() function to set up a pool of threads
|
284
|
+
* from which the io_service may execute handlers. All threads that are
|
285
|
+
* waiting in the pool are equivalent and the io_service may choose any one
|
286
|
+
* of them to invoke a handler.
|
287
|
+
*
|
288
|
+
* A normal exit from the run() function implies that the io_service object
|
289
|
+
* is stopped (the stopped() function returns @c true). Subsequent calls to
|
290
|
+
* run(), run_one(), poll() or poll_one() will return immediately unless there
|
291
|
+
* is a prior call to reset().
|
292
|
+
*
|
293
|
+
* @param ec Set to indicate what error occurred, if any.
|
294
|
+
*
|
295
|
+
* @return The number of handlers that were executed.
|
296
|
+
*
|
297
|
+
* @note The run() function must not be called from a thread that is currently
|
298
|
+
* calling one of run(), run_one(), poll() or poll_one() on the same
|
299
|
+
* io_service object.
|
300
|
+
*
|
301
|
+
* The poll() function may also be used to dispatch ready handlers, but
|
302
|
+
* without blocking.
|
303
|
+
*/
|
304
|
+
BOOST_ASIO_DECL std::size_t run(boost::system::error_code& ec);
|
305
|
+
|
306
|
+
/// Run the io_service object's event processing loop to execute at most one
|
307
|
+
/// handler.
|
308
|
+
/**
|
309
|
+
* The run_one() function blocks until one handler has been dispatched, or
|
310
|
+
* until the io_service has been stopped.
|
311
|
+
*
|
312
|
+
* @return The number of handlers that were executed. A zero return value
|
313
|
+
* implies that the io_service object is stopped (the stopped() function
|
314
|
+
* returns @c true). Subsequent calls to run(), run_one(), poll() or
|
315
|
+
* poll_one() will return immediately unless there is a prior call to
|
316
|
+
* reset().
|
317
|
+
*
|
318
|
+
* @throws boost::system::system_error Thrown on failure.
|
319
|
+
*/
|
320
|
+
BOOST_ASIO_DECL std::size_t run_one();
|
321
|
+
|
322
|
+
/// Run the io_service object's event processing loop to execute at most one
|
323
|
+
/// handler.
|
324
|
+
/**
|
325
|
+
* The run_one() function blocks until one handler has been dispatched, or
|
326
|
+
* until the io_service has been stopped.
|
327
|
+
*
|
328
|
+
* @return The number of handlers that were executed. A zero return value
|
329
|
+
* implies that the io_service object is stopped (the stopped() function
|
330
|
+
* returns @c true). Subsequent calls to run(), run_one(), poll() or
|
331
|
+
* poll_one() will return immediately unless there is a prior call to
|
332
|
+
* reset().
|
333
|
+
*
|
334
|
+
* @return The number of handlers that were executed.
|
335
|
+
*/
|
336
|
+
BOOST_ASIO_DECL std::size_t run_one(boost::system::error_code& ec);
|
337
|
+
|
338
|
+
/// Run the io_service object's event processing loop to execute ready
|
339
|
+
/// handlers.
|
340
|
+
/**
|
341
|
+
* The poll() function runs handlers that are ready to run, without blocking,
|
342
|
+
* until the io_service has been stopped or there are no more ready handlers.
|
343
|
+
*
|
344
|
+
* @return The number of handlers that were executed.
|
345
|
+
*
|
346
|
+
* @throws boost::system::system_error Thrown on failure.
|
347
|
+
*/
|
348
|
+
BOOST_ASIO_DECL std::size_t poll();
|
349
|
+
|
350
|
+
/// Run the io_service object's event processing loop to execute ready
|
351
|
+
/// handlers.
|
352
|
+
/**
|
353
|
+
* The poll() function runs handlers that are ready to run, without blocking,
|
354
|
+
* until the io_service has been stopped or there are no more ready handlers.
|
355
|
+
*
|
356
|
+
* @param ec Set to indicate what error occurred, if any.
|
357
|
+
*
|
358
|
+
* @return The number of handlers that were executed.
|
359
|
+
*/
|
360
|
+
BOOST_ASIO_DECL std::size_t poll(boost::system::error_code& ec);
|
361
|
+
|
362
|
+
/// Run the io_service object's event processing loop to execute one ready
|
363
|
+
/// handler.
|
364
|
+
/**
|
365
|
+
* The poll_one() function runs at most one handler that is ready to run,
|
366
|
+
* without blocking.
|
367
|
+
*
|
368
|
+
* @return The number of handlers that were executed.
|
369
|
+
*
|
370
|
+
* @throws boost::system::system_error Thrown on failure.
|
371
|
+
*/
|
372
|
+
BOOST_ASIO_DECL std::size_t poll_one();
|
373
|
+
|
374
|
+
/// Run the io_service object's event processing loop to execute one ready
|
375
|
+
/// handler.
|
376
|
+
/**
|
377
|
+
* The poll_one() function runs at most one handler that is ready to run,
|
378
|
+
* without blocking.
|
379
|
+
*
|
380
|
+
* @param ec Set to indicate what error occurred, if any.
|
381
|
+
*
|
382
|
+
* @return The number of handlers that were executed.
|
383
|
+
*/
|
384
|
+
BOOST_ASIO_DECL std::size_t poll_one(boost::system::error_code& ec);
|
385
|
+
|
386
|
+
/// Stop the io_service object's event processing loop.
|
387
|
+
/**
|
388
|
+
* This function does not block, but instead simply signals the io_service to
|
389
|
+
* stop. All invocations of its run() or run_one() member functions should
|
390
|
+
* return as soon as possible. Subsequent calls to run(), run_one(), poll()
|
391
|
+
* or poll_one() will return immediately until reset() is called.
|
392
|
+
*/
|
393
|
+
BOOST_ASIO_DECL void stop();
|
394
|
+
|
395
|
+
/// Determine whether the io_service object has been stopped.
|
396
|
+
/**
|
397
|
+
* This function is used to determine whether an io_service object has been
|
398
|
+
* stopped, either through an explicit call to stop(), or due to running out
|
399
|
+
* of work. When an io_service object is stopped, calls to run(), run_one(),
|
400
|
+
* poll() or poll_one() will return immediately without invoking any
|
401
|
+
* handlers.
|
402
|
+
*
|
403
|
+
* @return @c true if the io_service object is stopped, otherwise @c false.
|
404
|
+
*/
|
405
|
+
BOOST_ASIO_DECL bool stopped() const;
|
406
|
+
|
407
|
+
/// Reset the io_service in preparation for a subsequent run() invocation.
|
408
|
+
/**
|
409
|
+
* This function must be called prior to any second or later set of
|
410
|
+
* invocations of the run(), run_one(), poll() or poll_one() functions when a
|
411
|
+
* previous invocation of these functions returned due to the io_service
|
412
|
+
* being stopped or running out of work. After a call to reset(), the
|
413
|
+
* io_service object's stopped() function will return @c false.
|
414
|
+
*
|
415
|
+
* This function must not be called while there are any unfinished calls to
|
416
|
+
* the run(), run_one(), poll() or poll_one() functions.
|
417
|
+
*/
|
418
|
+
BOOST_ASIO_DECL void reset();
|
419
|
+
|
420
|
+
/// Request the io_service to invoke the given handler.
|
421
|
+
/**
|
422
|
+
* This function is used to ask the io_service to execute the given handler.
|
423
|
+
*
|
424
|
+
* The io_service guarantees that the handler will only be called in a thread
|
425
|
+
* in which the run(), run_one(), poll() or poll_one() member functions is
|
426
|
+
* currently being invoked. The handler may be executed inside this function
|
427
|
+
* if the guarantee can be met.
|
428
|
+
*
|
429
|
+
* @param handler The handler to be called. The io_service will make
|
430
|
+
* a copy of the handler object as required. The function signature of the
|
431
|
+
* handler must be: @code void handler(); @endcode
|
432
|
+
*
|
433
|
+
* @note This function throws an exception only if:
|
434
|
+
*
|
435
|
+
* @li the handler's @c asio_handler_allocate function; or
|
436
|
+
*
|
437
|
+
* @li the handler's copy constructor
|
438
|
+
*
|
439
|
+
* throws an exception.
|
440
|
+
*/
|
441
|
+
template <typename CompletionHandler>
|
442
|
+
BOOST_ASIO_INITFN_RESULT_TYPE(CompletionHandler, void ())
|
443
|
+
dispatch(BOOST_ASIO_MOVE_ARG(CompletionHandler) handler);
|
444
|
+
|
445
|
+
/// Request the io_service to invoke the given handler and return immediately.
|
446
|
+
/**
|
447
|
+
* This function is used to ask the io_service to execute the given handler,
|
448
|
+
* but without allowing the io_service to call the handler from inside this
|
449
|
+
* function.
|
450
|
+
*
|
451
|
+
* The io_service guarantees that the handler will only be called in a thread
|
452
|
+
* in which the run(), run_one(), poll() or poll_one() member functions is
|
453
|
+
* currently being invoked.
|
454
|
+
*
|
455
|
+
* @param handler The handler to be called. The io_service will make
|
456
|
+
* a copy of the handler object as required. The function signature of the
|
457
|
+
* handler must be: @code void handler(); @endcode
|
458
|
+
*
|
459
|
+
* @note This function throws an exception only if:
|
460
|
+
*
|
461
|
+
* @li the handler's @c asio_handler_allocate function; or
|
462
|
+
*
|
463
|
+
* @li the handler's copy constructor
|
464
|
+
*
|
465
|
+
* throws an exception.
|
466
|
+
*/
|
467
|
+
template <typename CompletionHandler>
|
468
|
+
BOOST_ASIO_INITFN_RESULT_TYPE(CompletionHandler, void ())
|
469
|
+
post(BOOST_ASIO_MOVE_ARG(CompletionHandler) handler);
|
470
|
+
|
471
|
+
/// Create a new handler that automatically dispatches the wrapped handler
|
472
|
+
/// on the io_service.
|
473
|
+
/**
|
474
|
+
* This function is used to create a new handler function object that, when
|
475
|
+
* invoked, will automatically pass the wrapped handler to the io_service
|
476
|
+
* object's dispatch function.
|
477
|
+
*
|
478
|
+
* @param handler The handler to be wrapped. The io_service will make a copy
|
479
|
+
* of the handler object as required. The function signature of the handler
|
480
|
+
* must be: @code void handler(A1 a1, ... An an); @endcode
|
481
|
+
*
|
482
|
+
* @return A function object that, when invoked, passes the wrapped handler to
|
483
|
+
* the io_service object's dispatch function. Given a function object with the
|
484
|
+
* signature:
|
485
|
+
* @code R f(A1 a1, ... An an); @endcode
|
486
|
+
* If this function object is passed to the wrap function like so:
|
487
|
+
* @code io_service.wrap(f); @endcode
|
488
|
+
* then the return value is a function object with the signature
|
489
|
+
* @code void g(A1 a1, ... An an); @endcode
|
490
|
+
* that, when invoked, executes code equivalent to:
|
491
|
+
* @code io_service.dispatch(boost::bind(f, a1, ... an)); @endcode
|
492
|
+
*/
|
493
|
+
template <typename Handler>
|
494
|
+
#if defined(GENERATING_DOCUMENTATION)
|
495
|
+
unspecified
|
496
|
+
#else
|
497
|
+
detail::wrapped_handler<io_service&, Handler>
|
498
|
+
#endif
|
499
|
+
wrap(Handler handler);
|
500
|
+
|
501
|
+
/// Fork-related event notifications.
|
502
|
+
enum fork_event
|
503
|
+
{
|
504
|
+
/// Notify the io_service that the process is about to fork.
|
505
|
+
fork_prepare,
|
506
|
+
|
507
|
+
/// Notify the io_service that the process has forked and is the parent.
|
508
|
+
fork_parent,
|
509
|
+
|
510
|
+
/// Notify the io_service that the process has forked and is the child.
|
511
|
+
fork_child
|
512
|
+
};
|
513
|
+
|
514
|
+
/// Notify the io_service of a fork-related event.
|
515
|
+
/**
|
516
|
+
* This function is used to inform the io_service that the process is about
|
517
|
+
* to fork, or has just forked. This allows the io_service, and the services
|
518
|
+
* it contains, to perform any necessary housekeeping to ensure correct
|
519
|
+
* operation following a fork.
|
520
|
+
*
|
521
|
+
* This function must not be called while any other io_service function, or
|
522
|
+
* any function on an I/O object associated with the io_service, is being
|
523
|
+
* called in another thread. It is, however, safe to call this function from
|
524
|
+
* within a completion handler, provided no other thread is accessing the
|
525
|
+
* io_service.
|
526
|
+
*
|
527
|
+
* @param event A fork-related event.
|
528
|
+
*
|
529
|
+
* @throws boost::system::system_error Thrown on failure. If the notification
|
530
|
+
* fails the io_service object should no longer be used and should be
|
531
|
+
* destroyed.
|
532
|
+
*
|
533
|
+
* @par Example
|
534
|
+
* The following code illustrates how to incorporate the notify_fork()
|
535
|
+
* function:
|
536
|
+
* @code my_io_service.notify_fork(boost::asio::io_service::fork_prepare);
|
537
|
+
* if (fork() == 0)
|
538
|
+
* {
|
539
|
+
* // This is the child process.
|
540
|
+
* my_io_service.notify_fork(boost::asio::io_service::fork_child);
|
541
|
+
* }
|
542
|
+
* else
|
543
|
+
* {
|
544
|
+
* // This is the parent process.
|
545
|
+
* my_io_service.notify_fork(boost::asio::io_service::fork_parent);
|
546
|
+
* } @endcode
|
547
|
+
*
|
548
|
+
* @note For each service object @c svc in the io_service set, performs
|
549
|
+
* <tt>svc->fork_service();</tt>. When processing the fork_prepare event,
|
550
|
+
* services are visited in reverse order of the beginning of service object
|
551
|
+
* lifetime. Otherwise, services are visited in order of the beginning of
|
552
|
+
* service object lifetime.
|
553
|
+
*/
|
554
|
+
BOOST_ASIO_DECL void notify_fork(boost::asio::io_service::fork_event event);
|
555
|
+
|
556
|
+
/// Obtain the service object corresponding to the given type.
|
557
|
+
/**
|
558
|
+
* This function is used to locate a service object that corresponds to
|
559
|
+
* the given service type. If there is no existing implementation of the
|
560
|
+
* service, then the io_service will create a new instance of the service.
|
561
|
+
*
|
562
|
+
* @param ios The io_service object that owns the service.
|
563
|
+
*
|
564
|
+
* @return The service interface implementing the specified service type.
|
565
|
+
* Ownership of the service interface is not transferred to the caller.
|
566
|
+
*/
|
567
|
+
template <typename Service>
|
568
|
+
friend Service& use_service(io_service& ios);
|
569
|
+
|
570
|
+
/// Add a service object to the io_service.
|
571
|
+
/**
|
572
|
+
* This function is used to add a service to the io_service.
|
573
|
+
*
|
574
|
+
* @param ios The io_service object that owns the service.
|
575
|
+
*
|
576
|
+
* @param svc The service object. On success, ownership of the service object
|
577
|
+
* is transferred to the io_service. When the io_service object is destroyed,
|
578
|
+
* it will destroy the service object by performing:
|
579
|
+
* @code delete static_cast<io_service::service*>(svc) @endcode
|
580
|
+
*
|
581
|
+
* @throws boost::asio::service_already_exists Thrown if a service of the
|
582
|
+
* given type is already present in the io_service.
|
583
|
+
*
|
584
|
+
* @throws boost::asio::invalid_service_owner Thrown if the service's owning
|
585
|
+
* io_service is not the io_service object specified by the ios parameter.
|
586
|
+
*/
|
587
|
+
template <typename Service>
|
588
|
+
friend void add_service(io_service& ios, Service* svc);
|
589
|
+
|
590
|
+
/// Determine if an io_service contains a specified service type.
|
591
|
+
/**
|
592
|
+
* This function is used to determine whether the io_service contains a
|
593
|
+
* service object corresponding to the given service type.
|
594
|
+
*
|
595
|
+
* @param ios The io_service object that owns the service.
|
596
|
+
*
|
597
|
+
* @return A boolean indicating whether the io_service contains the service.
|
598
|
+
*/
|
599
|
+
template <typename Service>
|
600
|
+
friend bool has_service(io_service& ios);
|
601
|
+
|
602
|
+
private:
|
603
|
+
#if defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__)
|
604
|
+
detail::winsock_init<> init_;
|
605
|
+
#elif defined(__sun) || defined(__QNX__) || defined(__hpux) || defined(_AIX) \
|
606
|
+
|| defined(__osf__)
|
607
|
+
detail::signal_init<> init_;
|
608
|
+
#endif
|
609
|
+
|
610
|
+
// The service registry.
|
611
|
+
boost::asio::detail::service_registry* service_registry_;
|
612
|
+
|
613
|
+
// The implementation.
|
614
|
+
impl_type& impl_;
|
615
|
+
};
|
616
|
+
|
617
|
+
/// Class to inform the io_service when it has work to do.
|
618
|
+
/**
|
619
|
+
* The work class is used to inform the io_service when work starts and
|
620
|
+
* finishes. This ensures that the io_service object's run() function will not
|
621
|
+
* exit while work is underway, and that it does exit when there is no
|
622
|
+
* unfinished work remaining.
|
623
|
+
*
|
624
|
+
* The work class is copy-constructible so that it may be used as a data member
|
625
|
+
* in a handler class. It is not assignable.
|
626
|
+
*/
|
627
|
+
class io_service::work
|
628
|
+
{
|
629
|
+
public:
|
630
|
+
/// Constructor notifies the io_service that work is starting.
|
631
|
+
/**
|
632
|
+
* The constructor is used to inform the io_service that some work has begun.
|
633
|
+
* This ensures that the io_service object's run() function will not exit
|
634
|
+
* while the work is underway.
|
635
|
+
*/
|
636
|
+
explicit work(boost::asio::io_service& io_service);
|
637
|
+
|
638
|
+
/// Copy constructor notifies the io_service that work is starting.
|
639
|
+
/**
|
640
|
+
* The constructor is used to inform the io_service that some work has begun.
|
641
|
+
* This ensures that the io_service object's run() function will not exit
|
642
|
+
* while the work is underway.
|
643
|
+
*/
|
644
|
+
work(const work& other);
|
645
|
+
|
646
|
+
/// Destructor notifies the io_service that the work is complete.
|
647
|
+
/**
|
648
|
+
* The destructor is used to inform the io_service that some work has
|
649
|
+
* finished. Once the count of unfinished work reaches zero, the io_service
|
650
|
+
* object's run() function is permitted to exit.
|
651
|
+
*/
|
652
|
+
~work();
|
653
|
+
|
654
|
+
/// Get the io_service associated with the work.
|
655
|
+
boost::asio::io_service& get_io_service();
|
656
|
+
|
657
|
+
private:
|
658
|
+
// Prevent assignment.
|
659
|
+
void operator=(const work& other);
|
660
|
+
|
661
|
+
// The io_service implementation.
|
662
|
+
detail::io_service_impl& io_service_impl_;
|
663
|
+
};
|
664
|
+
|
665
|
+
/// Class used to uniquely identify a service.
|
666
|
+
class io_service::id
|
667
|
+
: private noncopyable
|
668
|
+
{
|
669
|
+
public:
|
670
|
+
/// Constructor.
|
671
|
+
id() {}
|
672
|
+
};
|
673
|
+
|
674
|
+
/// Base class for all io_service services.
|
675
|
+
class io_service::service
|
676
|
+
: private noncopyable
|
677
|
+
{
|
678
|
+
public:
|
679
|
+
/// Get the io_service object that owns the service.
|
680
|
+
boost::asio::io_service& get_io_service();
|
681
|
+
|
682
|
+
protected:
|
683
|
+
/// Constructor.
|
684
|
+
/**
|
685
|
+
* @param owner The io_service object that owns the service.
|
686
|
+
*/
|
687
|
+
BOOST_ASIO_DECL service(boost::asio::io_service& owner);
|
688
|
+
|
689
|
+
/// Destructor.
|
690
|
+
BOOST_ASIO_DECL virtual ~service();
|
691
|
+
|
692
|
+
private:
|
693
|
+
/// Destroy all user-defined handler objects owned by the service.
|
694
|
+
virtual void shutdown_service() = 0;
|
695
|
+
|
696
|
+
/// Handle notification of a fork-related event to perform any necessary
|
697
|
+
/// housekeeping.
|
698
|
+
/**
|
699
|
+
* This function is not a pure virtual so that services only have to
|
700
|
+
* implement it if necessary. The default implementation does nothing.
|
701
|
+
*/
|
702
|
+
BOOST_ASIO_DECL virtual void fork_service(
|
703
|
+
boost::asio::io_service::fork_event event);
|
704
|
+
|
705
|
+
friend class boost::asio::detail::service_registry;
|
706
|
+
struct key
|
707
|
+
{
|
708
|
+
key() : type_info_(0), id_(0) {}
|
709
|
+
const std::type_info* type_info_;
|
710
|
+
const boost::asio::io_service::id* id_;
|
711
|
+
} key_;
|
712
|
+
|
713
|
+
boost::asio::io_service& owner_;
|
714
|
+
service* next_;
|
715
|
+
};
|
716
|
+
|
717
|
+
/// Exception thrown when trying to add a duplicate service to an io_service.
|
718
|
+
class service_already_exists
|
719
|
+
: public std::logic_error
|
720
|
+
{
|
721
|
+
public:
|
722
|
+
BOOST_ASIO_DECL service_already_exists();
|
723
|
+
};
|
724
|
+
|
725
|
+
/// Exception thrown when trying to add a service object to an io_service where
|
726
|
+
/// the service has a different owner.
|
727
|
+
class invalid_service_owner
|
728
|
+
: public std::logic_error
|
729
|
+
{
|
730
|
+
public:
|
731
|
+
BOOST_ASIO_DECL invalid_service_owner();
|
732
|
+
};
|
733
|
+
|
734
|
+
namespace detail {
|
735
|
+
|
736
|
+
// Special derived service id type to keep classes header-file only.
|
737
|
+
template <typename Type>
|
738
|
+
class service_id
|
739
|
+
: public boost::asio::io_service::id
|
740
|
+
{
|
741
|
+
};
|
742
|
+
|
743
|
+
// Special service base class to keep classes header-file only.
|
744
|
+
template <typename Type>
|
745
|
+
class service_base
|
746
|
+
: public boost::asio::io_service::service
|
747
|
+
{
|
748
|
+
public:
|
749
|
+
static boost::asio::detail::service_id<Type> id;
|
750
|
+
|
751
|
+
// Constructor.
|
752
|
+
service_base(boost::asio::io_service& io_service)
|
753
|
+
: boost::asio::io_service::service(io_service)
|
754
|
+
{
|
755
|
+
}
|
756
|
+
};
|
757
|
+
|
758
|
+
template <typename Type>
|
759
|
+
boost::asio::detail::service_id<Type> service_base<Type>::id;
|
760
|
+
|
761
|
+
} // namespace detail
|
762
|
+
} // namespace asio
|
763
|
+
} // namespace boost
|
764
|
+
|
765
|
+
#include <boost/asio/detail/pop_options.hpp>
|
766
|
+
|
767
|
+
#include <boost/asio/impl/io_service.hpp>
|
768
|
+
#if defined(BOOST_ASIO_HEADER_ONLY)
|
769
|
+
# include <boost/asio/impl/io_service.ipp>
|
770
|
+
#endif // defined(BOOST_ASIO_HEADER_ONLY)
|
771
|
+
|
772
|
+
#endif // BOOST_ASIO_IO_SERVICE_HPP
|