couchbase 3.0.0.alpha.4-x86_64-linux → 3.5.0-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -13
- data/ext/extconf.rb +0 -47
- data/lib/active_support/cache/couchbase_store.rb +339 -0
- data/lib/couchbase/3.0/libcouchbase.so +0 -0
- data/lib/couchbase/3.1/libcouchbase.so +0 -0
- data/lib/couchbase/3.2/libcouchbase.so +0 -0
- data/lib/couchbase/3.3/libcouchbase.so +0 -0
- data/lib/couchbase/analytics_options.rb +2 -60
- data/lib/couchbase/authenticator.rb +40 -1
- data/lib/couchbase/binary_collection.rb +66 -27
- data/lib/couchbase/binary_collection_options.rb +1 -75
- data/lib/couchbase/bucket.rb +50 -42
- data/lib/couchbase/cluster.rb +315 -168
- data/lib/couchbase/cluster_registry.rb +49 -0
- data/lib/couchbase/collection.rb +482 -96
- data/lib/couchbase/collection_options.rb +233 -281
- data/lib/couchbase/config_profiles.rb +55 -0
- data/lib/couchbase/configuration.rb +56 -0
- data/lib/couchbase/datastructures/couchbase_list.rb +160 -0
- data/lib/couchbase/datastructures/couchbase_map.rb +194 -0
- data/lib/couchbase/datastructures/couchbase_queue.rb +134 -0
- data/lib/couchbase/datastructures/couchbase_set.rb +128 -0
- data/lib/couchbase/datastructures.rb +24 -0
- data/lib/couchbase/diagnostics.rb +181 -0
- data/lib/couchbase/errors.rb +219 -67
- data/lib/couchbase/json_transcoder.rb +12 -5
- data/lib/couchbase/key_value_scan.rb +117 -0
- data/lib/couchbase/libcouchbase.rb +6 -0
- data/lib/couchbase/logger.rb +85 -0
- data/lib/couchbase/management/analytics_index_manager.rb +923 -229
- data/lib/couchbase/management/bucket_manager.rb +298 -107
- data/lib/couchbase/management/collection_manager.rb +329 -61
- data/lib/couchbase/management/collection_query_index_manager.rb +222 -0
- data/lib/couchbase/management/query_index_manager.rb +462 -142
- data/lib/couchbase/management/scope_search_index_manager.rb +198 -0
- data/lib/couchbase/management/search_index_manager.rb +90 -30
- data/lib/couchbase/management/user_manager.rb +196 -51
- data/lib/couchbase/management/view_index_manager.rb +12 -6
- data/lib/couchbase/management.rb +29 -0
- data/lib/couchbase/mutation_state.rb +14 -1
- data/lib/couchbase/options.rb +2837 -0
- data/lib/couchbase/protostellar/binary_collection.rb +55 -0
- data/lib/couchbase/protostellar/bucket.rb +51 -0
- data/lib/couchbase/protostellar/client.rb +99 -0
- data/lib/couchbase/protostellar/cluster.rb +163 -0
- data/lib/couchbase/protostellar/collection.rb +152 -0
- data/lib/couchbase/protostellar/connect_options.rb +63 -0
- data/lib/couchbase/protostellar/error_handling.rb +203 -0
- data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_pb.rb +61 -0
- data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_services_pb.rb +35 -0
- data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/admin/query/v1/query_pb.rb +61 -0
- data/lib/couchbase/protostellar/generated/admin/query/v1/query_services_pb.rb +37 -0
- data/lib/couchbase/protostellar/generated/admin/search/v1/search_pb.rb +72 -0
- data/lib/couchbase/protostellar/generated/admin/search/v1/search_services_pb.rb +44 -0
- data/lib/couchbase/protostellar/generated/analytics/v1/analytics_pb.rb +52 -0
- data/lib/couchbase/protostellar/generated/analytics/v1/analytics_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_pb.rb +70 -0
- data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/kv/v1/kv_pb.rb +97 -0
- data/lib/couchbase/protostellar/generated/kv/v1/kv_services_pb.rb +46 -0
- data/lib/couchbase/protostellar/generated/query/v1/query_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/query/v1/query_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/routing/v1/routing_pb.rb +52 -0
- data/lib/couchbase/protostellar/generated/routing/v1/routing_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/search/v1/search_pb.rb +99 -0
- data/lib/couchbase/protostellar/generated/search/v1/search_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/transactions/v1/transactions_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/transactions/v1/transactions_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/view/v1/view_pb.rb +51 -0
- data/lib/couchbase/protostellar/generated/view/v1/view_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated.rb +9 -0
- data/lib/couchbase/protostellar/management/bucket_manager.rb +67 -0
- data/lib/couchbase/protostellar/management/collection_manager.rb +94 -0
- data/lib/couchbase/protostellar/management/collection_query_index_manager.rb +124 -0
- data/lib/couchbase/protostellar/management/query_index_manager.rb +112 -0
- data/lib/couchbase/protostellar/management.rb +24 -0
- data/lib/couchbase/protostellar/request.rb +78 -0
- data/lib/couchbase/protostellar/request_behaviour.rb +42 -0
- data/lib/couchbase/protostellar/request_generator/admin/bucket.rb +124 -0
- data/lib/couchbase/protostellar/request_generator/admin/collection.rb +94 -0
- data/lib/couchbase/protostellar/request_generator/admin/query.rb +130 -0
- data/lib/couchbase/protostellar/request_generator/admin.rb +24 -0
- data/lib/couchbase/protostellar/request_generator/kv.rb +474 -0
- data/lib/couchbase/protostellar/request_generator/query.rb +133 -0
- data/lib/couchbase/protostellar/request_generator/search.rb +387 -0
- data/lib/couchbase/protostellar/request_generator.rb +26 -0
- data/lib/couchbase/protostellar/response_converter/admin/bucket.rb +55 -0
- data/lib/couchbase/protostellar/response_converter/admin/collection.rb +42 -0
- data/lib/couchbase/protostellar/response_converter/admin/query.rb +59 -0
- data/lib/couchbase/protostellar/response_converter/admin.rb +24 -0
- data/lib/couchbase/protostellar/response_converter/kv.rb +151 -0
- data/lib/couchbase/protostellar/response_converter/query.rb +84 -0
- data/lib/couchbase/protostellar/response_converter/search.rb +136 -0
- data/lib/couchbase/protostellar/response_converter.rb +26 -0
- data/lib/couchbase/protostellar/retry/action.rb +38 -0
- data/lib/couchbase/protostellar/retry/orchestrator.rb +60 -0
- data/lib/couchbase/protostellar/retry/reason.rb +67 -0
- data/lib/couchbase/protostellar/retry/strategies/best_effort.rb +49 -0
- data/lib/couchbase/protostellar/retry/strategies.rb +26 -0
- data/lib/couchbase/protostellar/retry.rb +28 -0
- data/lib/couchbase/protostellar/scope.rb +57 -0
- data/lib/couchbase/protostellar/timeout_defaults.rb +30 -0
- data/lib/couchbase/protostellar/timeouts.rb +83 -0
- data/lib/couchbase/protostellar.rb +29 -0
- data/lib/couchbase/query_options.rb +7 -106
- data/lib/couchbase/railtie.rb +45 -0
- data/lib/couchbase/raw_binary_transcoder.rb +37 -0
- data/lib/couchbase/raw_json_transcoder.rb +38 -0
- data/lib/couchbase/raw_string_transcoder.rb +40 -0
- data/lib/couchbase/scope.rb +217 -10
- data/lib/couchbase/search_options.rb +1306 -1176
- data/lib/couchbase/subdoc.rb +89 -25
- data/lib/couchbase/transcoder_flags.rb +62 -0
- data/lib/couchbase/utils/generic_logger_adapter.rb +38 -0
- data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
- data/lib/couchbase/utils/time.rb +69 -0
- data/lib/couchbase/utils.rb +21 -0
- data/lib/couchbase/version.rb +8 -3
- data/lib/couchbase/view_options.rb +5 -95
- data/lib/couchbase.rb +11 -1
- data/lib/rails/generators/couchbase/config/config_generator.rb +27 -0
- metadata +114 -2143
- data/.github/workflows/tests-6.0.3.yml +0 -52
- data/.github/workflows/tests-dev-preview.yml +0 -55
- data/.github/workflows/tests.yml +0 -50
- data/.gitignore +0 -20
- data/.gitmodules +0 -21
- data/.idea/.gitignore +0 -5
- data/.idea/dictionaries/gem_terms.xml +0 -18
- data/.idea/inspectionProfiles/Project_Default.xml +0 -8
- data/.idea/vcs.xml +0 -13
- data/.yardopts +0 -1
- data/Gemfile +0 -24
- data/Rakefile +0 -51
- data/bin/check-cluster +0 -31
- data/bin/console +0 -21
- data/bin/init-cluster +0 -82
- data/bin/setup +0 -24
- data/couchbase.gemspec +0 -47
- data/examples/analytics.rb +0 -221
- data/examples/crud.rb +0 -20
- data/examples/managing_analytics_indexes.rb +0 -72
- data/examples/managing_buckets.rb +0 -47
- data/examples/managing_collections.rb +0 -58
- data/examples/managing_query_indexes.rb +0 -63
- data/examples/managing_search_indexes.rb +0 -62
- data/examples/managing_view_indexes.rb +0 -54
- data/examples/query.rb +0 -18
- data/examples/query_with_consistency.rb +0 -76
- data/examples/search.rb +0 -187
- data/examples/search_with_consistency.rb +0 -84
- data/examples/subdocument.rb +0 -51
- data/examples/view.rb +0 -50
- data/ext/.clang-format +0 -15
- data/ext/.clang-tidy +0 -22
- data/ext/.cmake-format.yaml +0 -8
- data/ext/.gitignore +0 -2
- data/ext/.idea/.name +0 -1
- data/ext/.idea/dictionaries/couchbase_terms.xml +0 -14
- data/ext/.idea/ext.iml +0 -2
- data/ext/.idea/misc.xml +0 -4
- data/ext/.idea/modules.xml +0 -8
- data/ext/.idea/vcs.xml +0 -12
- data/ext/CMakeLists.txt +0 -163
- data/ext/LICENSE.txt +0 -202
- data/ext/build_version.hxx.in +0 -26
- data/ext/couchbase/bucket.hxx +0 -95
- data/ext/couchbase/cbcrypto/cbcrypto.cc +0 -888
- data/ext/couchbase/cbcrypto/cbcrypto.h +0 -89
- data/ext/couchbase/cbsasl/client.cc +0 -48
- data/ext/couchbase/cbsasl/client.h +0 -127
- data/ext/couchbase/cbsasl/context.cc +0 -33
- data/ext/couchbase/cbsasl/context.h +0 -52
- data/ext/couchbase/cbsasl/error.h +0 -72
- data/ext/couchbase/cbsasl/mechanism.cc +0 -48
- data/ext/couchbase/cbsasl/mechanism.h +0 -55
- data/ext/couchbase/cbsasl/plain/plain.cc +0 -36
- data/ext/couchbase/cbsasl/plain/plain.h +0 -53
- data/ext/couchbase/cbsasl/scram-sha/scram-sha.cc +0 -390
- data/ext/couchbase/cbsasl/scram-sha/scram-sha.h +0 -185
- data/ext/couchbase/cbsasl/scram-sha/stringutils.cc +0 -81
- data/ext/couchbase/cbsasl/scram-sha/stringutils.h +0 -48
- data/ext/couchbase/cluster.hxx +0 -175
- data/ext/couchbase/collections_manifest.hxx +0 -88
- data/ext/couchbase/configuration.hxx +0 -256
- data/ext/couchbase/configuration_monitor.hxx +0 -93
- data/ext/couchbase/couchbase.cxx +0 -5336
- data/ext/couchbase/document_id.hxx +0 -38
- data/ext/couchbase/error_map.hxx +0 -61
- data/ext/couchbase/errors.hxx +0 -691
- data/ext/couchbase/io/dns_client.hxx +0 -215
- data/ext/couchbase/io/dns_codec.hxx +0 -207
- data/ext/couchbase/io/dns_config.hxx +0 -116
- data/ext/couchbase/io/dns_message.hxx +0 -558
- data/ext/couchbase/io/http_message.hxx +0 -38
- data/ext/couchbase/io/http_parser.hxx +0 -174
- data/ext/couchbase/io/http_session.hxx +0 -316
- data/ext/couchbase/io/mcbp_message.hxx +0 -41
- data/ext/couchbase/io/mcbp_parser.hxx +0 -101
- data/ext/couchbase/io/mcbp_session.hxx +0 -889
- data/ext/couchbase/io/session_manager.hxx +0 -127
- data/ext/couchbase/mutation_token.hxx +0 -38
- data/ext/couchbase/operations/analytics_dataset_create.hxx +0 -117
- data/ext/couchbase/operations/analytics_dataset_drop.hxx +0 -103
- data/ext/couchbase/operations/analytics_dataset_get_all.hxx +0 -107
- data/ext/couchbase/operations/analytics_dataverse_create.hxx +0 -104
- data/ext/couchbase/operations/analytics_dataverse_drop.hxx +0 -104
- data/ext/couchbase/operations/analytics_get_pending_mutations.hxx +0 -91
- data/ext/couchbase/operations/analytics_index_create.hxx +0 -128
- data/ext/couchbase/operations/analytics_index_drop.hxx +0 -110
- data/ext/couchbase/operations/analytics_index_get_all.hxx +0 -106
- data/ext/couchbase/operations/analytics_link_connect.hxx +0 -102
- data/ext/couchbase/operations/analytics_link_disconnect.hxx +0 -101
- data/ext/couchbase/operations/bucket_create.hxx +0 -139
- data/ext/couchbase/operations/bucket_drop.hxx +0 -66
- data/ext/couchbase/operations/bucket_flush.hxx +0 -66
- data/ext/couchbase/operations/bucket_get.hxx +0 -70
- data/ext/couchbase/operations/bucket_get_all.hxx +0 -63
- data/ext/couchbase/operations/bucket_settings.hxx +0 -111
- data/ext/couchbase/operations/bucket_update.hxx +0 -116
- data/ext/couchbase/operations/cluster_developer_preview_enable.hxx +0 -61
- data/ext/couchbase/operations/collection_create.hxx +0 -91
- data/ext/couchbase/operations/collection_drop.hxx +0 -83
- data/ext/couchbase/operations/command.hxx +0 -152
- data/ext/couchbase/operations/design_document.hxx +0 -59
- data/ext/couchbase/operations/document_analytics.hxx +0 -293
- data/ext/couchbase/operations/document_decrement.hxx +0 -81
- data/ext/couchbase/operations/document_exists.hxx +0 -81
- data/ext/couchbase/operations/document_get.hxx +0 -63
- data/ext/couchbase/operations/document_get_and_lock.hxx +0 -65
- data/ext/couchbase/operations/document_get_and_touch.hxx +0 -65
- data/ext/couchbase/operations/document_get_projected.hxx +0 -243
- data/ext/couchbase/operations/document_increment.hxx +0 -83
- data/ext/couchbase/operations/document_insert.hxx +0 -75
- data/ext/couchbase/operations/document_lookup_in.hxx +0 -86
- data/ext/couchbase/operations/document_mutate_in.hxx +0 -97
- data/ext/couchbase/operations/document_query.hxx +0 -336
- data/ext/couchbase/operations/document_remove.hxx +0 -68
- data/ext/couchbase/operations/document_replace.hxx +0 -77
- data/ext/couchbase/operations/document_search.hxx +0 -355
- data/ext/couchbase/operations/document_touch.hxx +0 -61
- data/ext/couchbase/operations/document_unlock.hxx +0 -61
- data/ext/couchbase/operations/document_upsert.hxx +0 -75
- data/ext/couchbase/operations/document_view.hxx +0 -227
- data/ext/couchbase/operations/query_index_build_deferred.hxx +0 -86
- data/ext/couchbase/operations/query_index_create.hxx +0 -135
- data/ext/couchbase/operations/query_index_drop.hxx +0 -109
- data/ext/couchbase/operations/query_index_get_all.hxx +0 -107
- data/ext/couchbase/operations/scope_create.hxx +0 -82
- data/ext/couchbase/operations/scope_drop.hxx +0 -80
- data/ext/couchbase/operations/scope_get_all.hxx +0 -74
- data/ext/couchbase/operations/search_index.hxx +0 -79
- data/ext/couchbase/operations/search_index_analyze_document.hxx +0 -92
- data/ext/couchbase/operations/search_index_control_ingest.hxx +0 -80
- data/ext/couchbase/operations/search_index_control_plan_freeze.hxx +0 -80
- data/ext/couchbase/operations/search_index_control_query.hxx +0 -80
- data/ext/couchbase/operations/search_index_drop.hxx +0 -77
- data/ext/couchbase/operations/search_index_get.hxx +0 -80
- data/ext/couchbase/operations/search_index_get_all.hxx +0 -82
- data/ext/couchbase/operations/search_index_get_documents_count.hxx +0 -81
- data/ext/couchbase/operations/search_index_upsert.hxx +0 -106
- data/ext/couchbase/operations/view_index_drop.hxx +0 -67
- data/ext/couchbase/operations/view_index_get.hxx +0 -90
- data/ext/couchbase/operations/view_index_get_all.hxx +0 -125
- data/ext/couchbase/operations/view_index_upsert.hxx +0 -87
- data/ext/couchbase/operations.hxx +0 -91
- data/ext/couchbase/platform/base64.cc +0 -234
- data/ext/couchbase/platform/base64.h +0 -47
- data/ext/couchbase/platform/random.cc +0 -119
- data/ext/couchbase/platform/random.h +0 -39
- data/ext/couchbase/platform/string_hex.cc +0 -99
- data/ext/couchbase/platform/string_hex.h +0 -50
- data/ext/couchbase/platform/uuid.cc +0 -96
- data/ext/couchbase/platform/uuid.h +0 -56
- data/ext/couchbase/protocol/client_opcode.hxx +0 -260
- data/ext/couchbase/protocol/client_request.hxx +0 -160
- data/ext/couchbase/protocol/client_response.hxx +0 -218
- data/ext/couchbase/protocol/cmd_cluster_map_change_notification.hxx +0 -81
- data/ext/couchbase/protocol/cmd_decrement.hxx +0 -187
- data/ext/couchbase/protocol/cmd_exists.hxx +0 -171
- data/ext/couchbase/protocol/cmd_get.hxx +0 -122
- data/ext/couchbase/protocol/cmd_get_and_lock.hxx +0 -142
- data/ext/couchbase/protocol/cmd_get_and_touch.hxx +0 -142
- data/ext/couchbase/protocol/cmd_get_cluster_config.hxx +0 -124
- data/ext/couchbase/protocol/cmd_get_collection_id.hxx +0 -117
- data/ext/couchbase/protocol/cmd_get_collections_manifest.hxx +0 -99
- data/ext/couchbase/protocol/cmd_get_error_map.hxx +0 -126
- data/ext/couchbase/protocol/cmd_hello.hxx +0 -146
- data/ext/couchbase/protocol/cmd_increment.hxx +0 -187
- data/ext/couchbase/protocol/cmd_info.hxx +0 -36
- data/ext/couchbase/protocol/cmd_insert.hxx +0 -172
- data/ext/couchbase/protocol/cmd_lookup_in.hxx +0 -218
- data/ext/couchbase/protocol/cmd_mutate_in.hxx +0 -317
- data/ext/couchbase/protocol/cmd_remove.hxx +0 -134
- data/ext/couchbase/protocol/cmd_replace.hxx +0 -172
- data/ext/couchbase/protocol/cmd_sasl_auth.hxx +0 -106
- data/ext/couchbase/protocol/cmd_sasl_list_mechs.hxx +0 -100
- data/ext/couchbase/protocol/cmd_sasl_step.hxx +0 -104
- data/ext/couchbase/protocol/cmd_select_bucket.hxx +0 -85
- data/ext/couchbase/protocol/cmd_touch.hxx +0 -102
- data/ext/couchbase/protocol/cmd_unlock.hxx +0 -95
- data/ext/couchbase/protocol/cmd_upsert.hxx +0 -172
- data/ext/couchbase/protocol/datatype.hxx +0 -48
- data/ext/couchbase/protocol/durability_level.hxx +0 -67
- data/ext/couchbase/protocol/frame_info_id.hxx +0 -187
- data/ext/couchbase/protocol/hello_feature.hxx +0 -255
- data/ext/couchbase/protocol/magic.hxx +0 -83
- data/ext/couchbase/protocol/server_opcode.hxx +0 -57
- data/ext/couchbase/protocol/server_request.hxx +0 -122
- data/ext/couchbase/protocol/status.hxx +0 -333
- data/ext/couchbase/protocol/unsigned_leb128.h +0 -195
- data/ext/couchbase/service_type.hxx +0 -60
- data/ext/couchbase/timeout_defaults.hxx +0 -34
- data/ext/couchbase/utils/byteswap.hxx +0 -33
- data/ext/couchbase/utils/connection_string.hxx +0 -231
- data/ext/couchbase/utils/crc32.hxx +0 -48
- data/ext/couchbase/utils/url_codec.hxx +0 -225
- data/ext/couchbase/version.hxx +0 -24
- data/ext/test/main.cxx +0 -58
- data/ext/third_party/asio/.appveyor.yml +0 -107
- data/ext/third_party/asio/.cirrus.yml +0 -16
- data/ext/third_party/asio/.gitignore +0 -3
- data/ext/third_party/asio/.travis.yml +0 -323
- data/ext/third_party/asio/asio/.gitignore +0 -23
- data/ext/third_party/asio/asio/COPYING +0 -4
- data/ext/third_party/asio/asio/INSTALL +0 -5
- data/ext/third_party/asio/asio/LICENSE_1_0.txt +0 -23
- data/ext/third_party/asio/asio/Makefile.am +0 -19
- data/ext/third_party/asio/asio/README +0 -4
- data/ext/third_party/asio/asio/asio.manifest +0 -4865
- data/ext/third_party/asio/asio/autogen.sh +0 -55
- data/ext/third_party/asio/asio/boost_asio.manifest +0 -5193
- data/ext/third_party/asio/asio/boostify.pl +0 -603
- data/ext/third_party/asio/asio/configure.ac +0 -182
- data/ext/third_party/asio/asio/include/.gitignore +0 -2
- data/ext/third_party/asio/asio/include/Makefile.am +0 -484
- data/ext/third_party/asio/asio/include/asio/associated_allocator.hpp +0 -131
- data/ext/third_party/asio/asio/include/asio/associated_executor.hpp +0 -149
- data/ext/third_party/asio/asio/include/asio/async_result.hpp +0 -589
- data/ext/third_party/asio/asio/include/asio/awaitable.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +0 -1210
- data/ext/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +0 -693
- data/ext/third_party/asio/asio/include/asio/basic_io_object.hpp +0 -290
- data/ext/third_party/asio/asio/include/asio/basic_raw_socket.hpp +0 -1202
- data/ext/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +0 -756
- data/ext/third_party/asio/asio/include/asio/basic_serial_port.hpp +0 -907
- data/ext/third_party/asio/asio/include/asio/basic_signal_set.hpp +0 -568
- data/ext/third_party/asio/asio/include/asio/basic_socket.hpp +0 -1894
- data/ext/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +0 -2495
- data/ext/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +0 -407
- data/ext/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +0 -687
- data/ext/third_party/asio/asio/include/asio/basic_stream_socket.hpp +0 -1049
- data/ext/third_party/asio/asio/include/asio/basic_streambuf.hpp +0 -452
- data/ext/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +0 -763
- data/ext/third_party/asio/asio/include/asio/bind_executor.hpp +0 -580
- data/ext/third_party/asio/asio/include/asio/buffer.hpp +0 -2494
- data/ext/third_party/asio/asio/include/asio/buffered_read_stream.hpp +0 -253
- data/ext/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffered_stream.hpp +0 -279
- data/ext/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffered_write_stream.hpp +0 -245
- data/ext/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +0 -25
- data/ext/third_party/asio/asio/include/asio/buffers_iterator.hpp +0 -521
- data/ext/third_party/asio/asio/include/asio/co_spawn.hpp +0 -100
- data/ext/third_party/asio/asio/include/asio/completion_condition.hpp +0 -218
- data/ext/third_party/asio/asio/include/asio/compose.hpp +0 -136
- data/ext/third_party/asio/asio/include/asio/connect.hpp +0 -1076
- data/ext/third_party/asio/asio/include/asio/coroutine.hpp +0 -328
- data/ext/third_party/asio/asio/include/asio/deadline_timer.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/defer.hpp +0 -127
- data/ext/third_party/asio/asio/include/asio/detached.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/array.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/array_fwd.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/assert.hpp +0 -32
- data/ext/third_party/asio/asio/include/asio/detail/atomic_count.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/bind_handler.hpp +0 -816
- data/ext/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +0 -544
- data/ext/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/detail/call_stack.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/detail/chrono.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +0 -190
- data/ext/third_party/asio/asio/include/asio/detail/completion_handler.hpp +0 -83
- data/ext/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +0 -112
- data/ext/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +0 -149
- data/ext/third_party/asio/asio/include/asio/detail/config.hpp +0 -1499
- data/ext/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +0 -414
- data/ext/third_party/asio/asio/include/asio/detail/cstddef.hpp +0 -31
- data/ext/third_party/asio/asio/include/asio/detail/cstdint.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +0 -280
- data/ext/third_party/asio/asio/include/asio/detail/dependent_type.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +0 -218
- data/ext/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +0 -266
- data/ext/third_party/asio/asio/include/asio/detail/event.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +0 -83
- data/ext/third_party/asio/asio/include/asio/detail/executor_function.hpp +0 -104
- data/ext/third_party/asio/asio/include/asio/detail/executor_op.hpp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +0 -39
- data/ext/third_party/asio/asio/include/asio/detail/fenced_block.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/detail/functional.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/future.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +0 -65
- data/ext/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +0 -99
- data/ext/third_party/asio/asio/include/asio/detail/global.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +0 -242
- data/ext/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +0 -57
- data/ext/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +0 -238
- data/ext/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +0 -556
- data/ext/third_party/asio/asio/include/asio/detail/handler_work.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/detail/hash_map.hpp +0 -331
- data/ext/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +0 -474
- data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +0 -446
- data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +0 -89
- data/ext/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +0 -787
- data/ext/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +0 -169
- data/ext/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +0 -358
- data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +0 -93
- data/ext/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +0 -570
- data/ext/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +0 -74
- data/ext/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +0 -129
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +0 -223
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_serial_port_service.ipp +0 -152
- data/ext/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +0 -300
- data/ext/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +0 -158
- data/ext/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +0 -617
- data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +0 -100
- data/ext/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +0 -338
- data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +0 -197
- data/ext/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +0 -667
- data/ext/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +0 -3575
- data/ext/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +0 -185
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +0 -179
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +0 -134
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +0 -177
- data/ext/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +0 -101
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +0 -76
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +0 -525
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +0 -103
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +0 -594
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +0 -192
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +0 -801
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +0 -448
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +0 -136
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +0 -150
- data/ext/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +0 -57
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +0 -626
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +0 -121
- data/ext/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +0 -82
- data/ext/third_party/asio/asio/include/asio/detail/io_control.hpp +0 -84
- data/ext/third_party/asio/asio/include/asio/detail/io_object_executor.hpp +0 -167
- data/ext/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +0 -193
- data/ext/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +0 -312
- data/ext/third_party/asio/asio/include/asio/detail/is_executor.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +0 -242
- data/ext/third_party/asio/asio/include/asio/detail/limits.hpp +0 -26
- data/ext/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/memory.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/detail/mutex.hpp +0 -48
- data/ext/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/detail/noncopyable.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/detail/null_event.hpp +0 -100
- data/ext/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/null_global.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/detail/null_mutex.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/detail/null_reactor.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +0 -519
- data/ext/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/null_thread.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/object_pool.hpp +0 -171
- data/ext/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +0 -214
- data/ext/third_party/asio/asio/include/asio/detail/op_queue.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/detail/operation.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +0 -89
- data/ext/third_party/asio/asio/include/asio/detail/pop_options.hpp +0 -141
- data/ext/third_party/asio/asio/include/asio/detail/posix_event.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +0 -118
- data/ext/third_party/asio/asio/include/asio/detail/posix_global.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +0 -76
- data/ext/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +0 -85
- data/ext/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/detail/posix_thread.hpp +0 -109
- data/ext/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +0 -79
- data/ext/third_party/asio/asio/include/asio/detail/push_options.hpp +0 -185
- data/ext/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +0 -391
- data/ext/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/detail/reactive_serial_port_service.hpp +0 -238
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +0 -230
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +0 -116
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +0 -137
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +0 -142
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +0 -135
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +0 -136
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +0 -134
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +0 -505
- data/ext/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +0 -518
- data/ext/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/detail/reactor.hpp +0 -32
- data/ext/third_party/asio/asio/include/asio/detail/reactor_fwd.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/reactor_op.hpp +0 -65
- data/ext/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +0 -168
- data/ext/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +0 -35
- data/ext/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +0 -138
- data/ext/third_party/asio/asio/include/asio/detail/resolve_op.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +0 -148
- data/ext/third_party/asio/asio/include/asio/detail/resolver_service.hpp +0 -145
- data/ext/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +0 -143
- data/ext/third_party/asio/asio/include/asio/detail/scheduler.hpp +0 -224
- data/ext/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +0 -78
- data/ext/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +0 -87
- data/ext/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +0 -46
- data/ext/third_party/asio/asio/include/asio/detail/select_reactor.hpp +0 -238
- data/ext/third_party/asio/asio/include/asio/detail/service_registry.hpp +0 -164
- data/ext/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +0 -44
- data/ext/third_party/asio/asio/include/asio/detail/signal_handler.hpp +0 -88
- data/ext/third_party/asio/asio/include/asio/detail/signal_init.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/signal_op.hpp +0 -49
- data/ext/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +0 -229
- data/ext/third_party/asio/asio/include/asio/detail/socket_holder.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/detail/socket_ops.hpp +0 -337
- data/ext/third_party/asio/asio/include/asio/detail/socket_option.hpp +0 -316
- data/ext/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +0 -91
- data/ext/third_party/asio/asio/include/asio/detail/socket_types.hpp +0 -416
- data/ext/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/static_mutex.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/detail/std_event.hpp +0 -176
- data/ext/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/detail/std_global.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/detail/std_mutex.hpp +0 -73
- data/ext/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +0 -81
- data/ext/third_party/asio/asio/include/asio/detail/std_thread.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +0 -142
- data/ext/third_party/asio/asio/include/asio/detail/strand_service.hpp +0 -142
- data/ext/third_party/asio/asio/include/asio/detail/string_view.hpp +0 -47
- data/ext/third_party/asio/asio/include/asio/detail/thread.hpp +0 -60
- data/ext/third_party/asio/asio/include/asio/detail/thread_context.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/detail/thread_group.hpp +0 -95
- data/ext/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/detail/throw_error.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/detail/throw_exception.hpp +0 -51
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue.hpp +0 -360
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +0 -68
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +0 -99
- data/ext/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +0 -35
- data/ext/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/detail/type_traits.hpp +0 -89
- data/ext/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +0 -151
- data/ext/third_party/asio/asio/include/asio/detail/wait_handler.hpp +0 -87
- data/ext/third_party/asio/asio/include/asio/detail/wait_op.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/detail/win_event.hpp +0 -151
- data/ext/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +0 -149
- data/ext/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/detail/win_global.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +0 -335
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +0 -338
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +0 -96
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +0 -159
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +0 -232
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +0 -308
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +0 -120
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +0 -114
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +0 -581
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +0 -600
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/detail/win_mutex.hpp +0 -78
- data/ext/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +0 -195
- data/ext/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +0 -74
- data/ext/third_party/asio/asio/include/asio/detail/win_thread.hpp +0 -147
- data/ext/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +0 -79
- data/ext/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +0 -124
- data/ext/third_party/asio/asio/include/asio/detail/wince_thread.hpp +0 -124
- data/ext/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +0 -305
- data/ext/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +0 -65
- data/ext/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +0 -212
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +0 -94
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +0 -115
- data/ext/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +0 -250
- data/ext/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +0 -362
- data/ext/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +0 -147
- data/ext/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +0 -106
- data/ext/third_party/asio/asio/include/asio/detail/winsock_init.hpp +0 -128
- data/ext/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +0 -73
- data/ext/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +0 -291
- data/ext/third_party/asio/asio/include/asio/dispatch.hpp +0 -118
- data/ext/third_party/asio/asio/include/asio/error.hpp +0 -356
- data/ext/third_party/asio/asio/include/asio/error_code.hpp +0 -202
- data/ext/third_party/asio/asio/include/asio/execution_context.hpp +0 -412
- data/ext/third_party/asio/asio/include/asio/executor.hpp +0 -341
- data/ext/third_party/asio/asio/include/asio/executor_work_guard.hpp +0 -170
- data/ext/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +0 -193
- data/ext/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +0 -133
- data/ext/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +0 -110
- data/ext/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +0 -121
- data/ext/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +0 -122
- data/ext/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +0 -127
- data/ext/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +0 -81
- data/ext/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +0 -85
- data/ext/third_party/asio/asio/include/asio/high_resolution_timer.hpp +0 -44
- data/ext/third_party/asio/asio/include/asio/impl/awaitable.hpp +0 -422
- data/ext/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +0 -491
- data/ext/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +0 -471
- data/ext/third_party/asio/asio/include/asio/impl/co_spawn.hpp +0 -160
- data/ext/third_party/asio/asio/include/asio/impl/compose.hpp +0 -533
- data/ext/third_party/asio/asio/include/asio/impl/connect.hpp +0 -872
- data/ext/third_party/asio/asio/include/asio/impl/defer.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/impl/detached.hpp +0 -130
- data/ext/third_party/asio/asio/include/asio/impl/dispatch.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/impl/error.ipp +0 -128
- data/ext/third_party/asio/asio/include/asio/impl/error_code.ipp +0 -206
- data/ext/third_party/asio/asio/include/asio/impl/execution_context.hpp +0 -109
- data/ext/third_party/asio/asio/include/asio/impl/execution_context.ipp +0 -82
- data/ext/third_party/asio/asio/include/asio/impl/executor.hpp +0 -387
- data/ext/third_party/asio/asio/include/asio/impl/executor.ipp +0 -38
- data/ext/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +0 -52
- data/ext/third_party/asio/asio/include/asio/impl/io_context.hpp +0 -353
- data/ext/third_party/asio/asio/include/asio/impl/io_context.ipp +0 -175
- data/ext/third_party/asio/asio/include/asio/impl/post.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/impl/read.hpp +0 -1135
- data/ext/third_party/asio/asio/include/asio/impl/read_at.hpp +0 -699
- data/ext/third_party/asio/asio/include/asio/impl/read_until.hpp +0 -3150
- data/ext/third_party/asio/asio/include/asio/impl/redirect_error.hpp +0 -372
- data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +0 -554
- data/ext/third_party/asio/asio/include/asio/impl/spawn.hpp +0 -490
- data/ext/third_party/asio/asio/include/asio/impl/src.cpp +0 -25
- data/ext/third_party/asio/asio/include/asio/impl/src.hpp +0 -82
- data/ext/third_party/asio/asio/include/asio/impl/system_context.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/impl/system_context.ipp +0 -80
- data/ext/third_party/asio/asio/include/asio/impl/system_executor.hpp +0 -85
- data/ext/third_party/asio/asio/include/asio/impl/thread_pool.hpp +0 -127
- data/ext/third_party/asio/asio/include/asio/impl/thread_pool.ipp +0 -87
- data/ext/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +0 -276
- data/ext/third_party/asio/asio/include/asio/impl/use_future.hpp +0 -887
- data/ext/third_party/asio/asio/include/asio/impl/write.hpp +0 -1043
- data/ext/third_party/asio/asio/include/asio/impl/write_at.hpp +0 -624
- data/ext/third_party/asio/asio/include/asio/io_context.hpp +0 -872
- data/ext/third_party/asio/asio/include/asio/io_context_strand.hpp +0 -374
- data/ext/third_party/asio/asio/include/asio/io_service.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/io_service_strand.hpp +0 -20
- data/ext/third_party/asio/asio/include/asio/ip/address.hpp +0 -268
- data/ext/third_party/asio/asio/include/asio/ip/address_v4.hpp +0 -335
- data/ext/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +0 -162
- data/ext/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +0 -134
- data/ext/third_party/asio/asio/include/asio/ip/address_v6.hpp +0 -341
- data/ext/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +0 -183
- data/ext/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +0 -264
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +0 -1030
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +0 -113
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +0 -192
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +0 -244
- data/ext/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +0 -311
- data/ext/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +0 -141
- data/ext/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +0 -199
- data/ext/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +0 -566
- data/ext/third_party/asio/asio/include/asio/ip/host_name.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/ip/icmp.hpp +0 -115
- data/ext/third_party/asio/asio/include/asio/ip/impl/address.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address.ipp +0 -239
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +0 -210
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +0 -350
- data/ext/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +0 -54
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +0 -54
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +0 -216
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +0 -53
- data/ext/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +0 -185
- data/ext/third_party/asio/asio/include/asio/ip/multicast.hpp +0 -191
- data/ext/third_party/asio/asio/include/asio/ip/network_v4.hpp +0 -261
- data/ext/third_party/asio/asio/include/asio/ip/network_v6.hpp +0 -235
- data/ext/third_party/asio/asio/include/asio/ip/resolver_base.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +0 -43
- data/ext/third_party/asio/asio/include/asio/ip/tcp.hpp +0 -155
- data/ext/third_party/asio/asio/include/asio/ip/udp.hpp +0 -111
- data/ext/third_party/asio/asio/include/asio/ip/unicast.hpp +0 -70
- data/ext/third_party/asio/asio/include/asio/ip/v6_only.hpp +0 -69
- data/ext/third_party/asio/asio/include/asio/is_executor.hpp +0 -46
- data/ext/third_party/asio/asio/include/asio/is_read_buffered.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/is_write_buffered.hpp +0 -59
- data/ext/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +0 -247
- data/ext/third_party/asio/asio/include/asio/local/connect_pair.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +0 -80
- data/ext/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +0 -139
- data/ext/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +0 -136
- data/ext/third_party/asio/asio/include/asio/local/stream_protocol.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/packaged_task.hpp +0 -126
- data/ext/third_party/asio/asio/include/asio/placeholders.hpp +0 -151
- data/ext/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +0 -697
- data/ext/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +0 -470
- data/ext/third_party/asio/asio/include/asio/posix/descriptor.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/post.hpp +0 -123
- data/ext/third_party/asio/asio/include/asio/read.hpp +0 -1288
- data/ext/third_party/asio/asio/include/asio/read_at.hpp +0 -694
- data/ext/third_party/asio/asio/include/asio/read_until.hpp +0 -2863
- data/ext/third_party/asio/asio/include/asio/redirect_error.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/serial_port.hpp +0 -36
- data/ext/third_party/asio/asio/include/asio/serial_port_base.hpp +0 -167
- data/ext/third_party/asio/asio/include/asio/signal_set.hpp +0 -28
- data/ext/third_party/asio/asio/include/asio/socket_base.hpp +0 -559
- data/ext/third_party/asio/asio/include/asio/spawn.hpp +0 -336
- data/ext/third_party/asio/asio/include/asio/ssl/context.hpp +0 -761
- data/ext/third_party/asio/asio/include/asio/ssl/context_base.hpp +0 -209
- data/ext/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +0 -114
- data/ext/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +0 -160
- data/ext/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +0 -336
- data/ext/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +0 -165
- data/ext/third_party/asio/asio/include/asio/ssl/detail/io.hpp +0 -381
- data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +0 -101
- data/ext/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +0 -66
- data/ext/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +0 -64
- data/ext/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +0 -135
- data/ext/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +0 -62
- data/ext/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/error.hpp +0 -125
- data/ext/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +0 -90
- data/ext/third_party/asio/asio/include/asio/ssl/impl/context.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/impl/context.ipp +0 -1238
- data/ext/third_party/asio/asio/include/asio/ssl/impl/error.ipp +0 -102
- data/ext/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +0 -73
- data/ext/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +0 -164
- data/ext/third_party/asio/asio/include/asio/ssl/impl/src.hpp +0 -29
- data/ext/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +0 -98
- data/ext/third_party/asio/asio/include/asio/ssl/stream.hpp +0 -885
- data/ext/third_party/asio/asio/include/asio/ssl/stream_base.hpp +0 -52
- data/ext/third_party/asio/asio/include/asio/ssl/verify_context.hpp +0 -67
- data/ext/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +0 -63
- data/ext/third_party/asio/asio/include/asio/ssl.hpp +0 -28
- data/ext/third_party/asio/asio/include/asio/steady_timer.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/strand.hpp +0 -314
- data/ext/third_party/asio/asio/include/asio/streambuf.hpp +0 -33
- data/ext/third_party/asio/asio/include/asio/system_context.hpp +0 -81
- data/ext/third_party/asio/asio/include/asio/system_error.hpp +0 -131
- data/ext/third_party/asio/asio/include/asio/system_executor.hpp +0 -129
- data/ext/third_party/asio/asio/include/asio/system_timer.hpp +0 -42
- data/ext/third_party/asio/asio/include/asio/this_coro.hpp +0 -45
- data/ext/third_party/asio/asio/include/asio/thread.hpp +0 -92
- data/ext/third_party/asio/asio/include/asio/thread_pool.hpp +0 -235
- data/ext/third_party/asio/asio/include/asio/time_traits.hpp +0 -86
- data/ext/third_party/asio/asio/include/asio/ts/buffer.hpp +0 -24
- data/ext/third_party/asio/asio/include/asio/ts/executor.hpp +0 -34
- data/ext/third_party/asio/asio/include/asio/ts/internet.hpp +0 -40
- data/ext/third_party/asio/asio/include/asio/ts/io_context.hpp +0 -20
- data/ext/third_party/asio/asio/include/asio/ts/net.hpp +0 -26
- data/ext/third_party/asio/asio/include/asio/ts/netfwd.hpp +0 -203
- data/ext/third_party/asio/asio/include/asio/ts/socket.hpp +0 -27
- data/ext/third_party/asio/asio/include/asio/ts/timer.hpp +0 -26
- data/ext/third_party/asio/asio/include/asio/unyield.hpp +0 -21
- data/ext/third_party/asio/asio/include/asio/use_awaitable.hpp +0 -110
- data/ext/third_party/asio/asio/include/asio/use_future.hpp +0 -160
- data/ext/third_party/asio/asio/include/asio/uses_executor.hpp +0 -71
- data/ext/third_party/asio/asio/include/asio/version.hpp +0 -23
- data/ext/third_party/asio/asio/include/asio/wait_traits.hpp +0 -56
- data/ext/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +0 -435
- data/ext/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +0 -361
- data/ext/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +0 -490
- data/ext/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +0 -474
- data/ext/third_party/asio/asio/include/asio/windows/object_handle.hpp +0 -38
- data/ext/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +0 -39
- data/ext/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +0 -143
- data/ext/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/windows/stream_handle.hpp +0 -37
- data/ext/third_party/asio/asio/include/asio/write.hpp +0 -1246
- data/ext/third_party/asio/asio/include/asio/write_at.hpp +0 -702
- data/ext/third_party/asio/asio/include/asio/yield.hpp +0 -23
- data/ext/third_party/asio/asio/include/asio.hpp +0 -147
- data/ext/third_party/asio/asio/release.pl +0 -440
- data/ext/third_party/asio/asio/src/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/Makefile.am +0 -23
- data/ext/third_party/asio/asio/src/Makefile.mgw +0 -204
- data/ext/third_party/asio/asio/src/Makefile.msc +0 -497
- data/ext/third_party/asio/asio/src/asio.cpp +0 -11
- data/ext/third_party/asio/asio/src/asio_ssl.cpp +0 -11
- data/ext/third_party/asio/asio/src/doc/.gitignore +0 -5
- data/ext/third_party/asio/asio/src/doc/Jamfile.v2 +0 -62
- data/ext/third_party/asio/asio/src/doc/asio.png +0 -0
- data/ext/third_party/asio/asio/src/doc/asio.qbk +0 -127
- data/ext/third_party/asio/asio/src/doc/asioref.sty +0 -90
- data/ext/third_party/asio/asio/src/doc/asioref.xsl +0 -94
- data/ext/third_party/asio/asio/src/doc/boost_bind_dox.txt +0 -5
- data/ext/third_party/asio/asio/src/doc/doxy2qbk.pl +0 -22
- data/ext/third_party/asio/asio/src/doc/examples.qbk +0 -564
- data/ext/third_party/asio/asio/src/doc/history.qbk +0 -1794
- data/ext/third_party/asio/asio/src/doc/index.xml +0 -13
- data/ext/third_party/asio/asio/src/doc/makepdf.pl +0 -26
- data/ext/third_party/asio/asio/src/doc/net_ts.qbk +0 -479
- data/ext/third_party/asio/asio/src/doc/noncopyable_dox.txt +0 -3
- data/ext/third_party/asio/asio/src/doc/overview/allocation.qbk +0 -89
- data/ext/third_party/asio/asio/src/doc/overview/async.qbk +0 -185
- data/ext/third_party/asio/asio/src/doc/overview/async_op1.dot +0 -78
- data/ext/third_party/asio/asio/src/doc/overview/async_op1.png +0 -0
- data/ext/third_party/asio/asio/src/doc/overview/async_op2.dot +0 -78
- data/ext/third_party/asio/asio/src/doc/overview/async_op2.png +0 -0
- data/ext/third_party/asio/asio/src/doc/overview/basics.qbk +0 -106
- data/ext/third_party/asio/asio/src/doc/overview/bsd_sockets.qbk +0 -270
- data/ext/third_party/asio/asio/src/doc/overview/buffers.qbk +0 -163
- data/ext/third_party/asio/asio/src/doc/overview/concurrency_hint.qbk +0 -88
- data/ext/third_party/asio/asio/src/doc/overview/coroutine.qbk +0 -51
- data/ext/third_party/asio/asio/src/doc/overview/coroutines_ts.qbk +0 -97
- data/ext/third_party/asio/asio/src/doc/overview/cpp2011.qbk +0 -271
- data/ext/third_party/asio/asio/src/doc/overview/handler_tracking.qbk +0 -220
- data/ext/third_party/asio/asio/src/doc/overview/implementation.qbk +0 -305
- data/ext/third_party/asio/asio/src/doc/overview/iostreams.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/overview/line_based.qbk +0 -118
- data/ext/third_party/asio/asio/src/doc/overview/other_protocols.qbk +0 -94
- data/ext/third_party/asio/asio/src/doc/overview/posix.qbk +0 -152
- data/ext/third_party/asio/asio/src/doc/overview/proactor.dot +0 -100
- data/ext/third_party/asio/asio/src/doc/overview/proactor.png +0 -0
- data/ext/third_party/asio/asio/src/doc/overview/protocols.qbk +0 -149
- data/ext/third_party/asio/asio/src/doc/overview/rationale.qbk +0 -54
- data/ext/third_party/asio/asio/src/doc/overview/reactor.qbk +0 -44
- data/ext/third_party/asio/asio/src/doc/overview/serial_ports.qbk +0 -45
- data/ext/third_party/asio/asio/src/doc/overview/signals.qbk +0 -44
- data/ext/third_party/asio/asio/src/doc/overview/spawn.qbk +0 -102
- data/ext/third_party/asio/asio/src/doc/overview/ssl.qbk +0 -124
- data/ext/third_party/asio/asio/src/doc/overview/strands.qbk +0 -114
- data/ext/third_party/asio/asio/src/doc/overview/streams.qbk +0 -62
- data/ext/third_party/asio/asio/src/doc/overview/sync_op.dot +0 -67
- data/ext/third_party/asio/asio/src/doc/overview/sync_op.png +0 -0
- data/ext/third_party/asio/asio/src/doc/overview/threads.qbk +0 -67
- data/ext/third_party/asio/asio/src/doc/overview/timers.qbk +0 -52
- data/ext/third_party/asio/asio/src/doc/overview/windows.qbk +0 -126
- data/ext/third_party/asio/asio/src/doc/overview.qbk +0 -103
- data/ext/third_party/asio/asio/src/doc/project-root.jam +0 -1
- data/ext/third_party/asio/asio/src/doc/quickref.xml +0 -561
- data/ext/third_party/asio/asio/src/doc/reference.dox +0 -264
- data/ext/third_party/asio/asio/src/doc/reference.qbk +0 -125973
- data/ext/third_party/asio/asio/src/doc/reference.xsl +0 -1831
- data/ext/third_party/asio/asio/src/doc/release_checklist.htm +0 -68
- data/ext/third_party/asio/asio/src/doc/requirements/AcceptHandler.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/AcceptableProtocol.qbk +0 -25
- data/ext/third_party/asio/asio/src/doc/requirements/AsyncRandomAccessReadDevice.qbk +0 -56
- data/ext/third_party/asio/asio/src/doc/requirements/AsyncRandomAccessWriteDevice.qbk +0 -57
- data/ext/third_party/asio/asio/src/doc/requirements/AsyncReadStream.qbk +0 -50
- data/ext/third_party/asio/asio/src/doc/requirements/AsyncWriteStream.qbk +0 -48
- data/ext/third_party/asio/asio/src/doc/requirements/BufferedHandshakeHandler.qbk +0 -55
- data/ext/third_party/asio/asio/src/doc/requirements/CompletionCondition.qbk +0 -42
- data/ext/third_party/asio/asio/src/doc/requirements/CompletionHandler.qbk +0 -63
- data/ext/third_party/asio/asio/src/doc/requirements/ConnectCondition.qbk +0 -34
- data/ext/third_party/asio/asio/src/doc/requirements/ConnectHandler.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/ConstBufferSequence.qbk +0 -53
- data/ext/third_party/asio/asio/src/doc/requirements/DynamicBuffer.qbk +0 -16
- data/ext/third_party/asio/asio/src/doc/requirements/DynamicBuffer_v1.qbk +0 -93
- data/ext/third_party/asio/asio/src/doc/requirements/DynamicBuffer_v2.qbk +0 -94
- data/ext/third_party/asio/asio/src/doc/requirements/Endpoint.qbk +0 -97
- data/ext/third_party/asio/asio/src/doc/requirements/EndpointSequence.qbk +0 -30
- data/ext/third_party/asio/asio/src/doc/requirements/ExecutionContext.qbk +0 -36
- data/ext/third_party/asio/asio/src/doc/requirements/Executor.qbk +0 -141
- data/ext/third_party/asio/asio/src/doc/requirements/GettableSerialPortOption.qbk +0 -33
- data/ext/third_party/asio/asio/src/doc/requirements/GettableSocketOption.qbk +0 -67
- data/ext/third_party/asio/asio/src/doc/requirements/Handler.qbk +0 -64
- data/ext/third_party/asio/asio/src/doc/requirements/HandshakeHandler.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/InternetProtocol.qbk +0 -47
- data/ext/third_party/asio/asio/src/doc/requirements/IoControlCommand.qbk +0 -34
- data/ext/third_party/asio/asio/src/doc/requirements/IoObjectService.qbk +0 -62
- data/ext/third_party/asio/asio/src/doc/requirements/IteratorConnectHandler.qbk +0 -81
- data/ext/third_party/asio/asio/src/doc/requirements/LegacyCompletionHandler.qbk +0 -65
- data/ext/third_party/asio/asio/src/doc/requirements/MoveAcceptHandler.qbk +0 -61
- data/ext/third_party/asio/asio/src/doc/requirements/MutableBufferSequence.qbk +0 -54
- data/ext/third_party/asio/asio/src/doc/requirements/ProtoAllocator.qbk +0 -19
- data/ext/third_party/asio/asio/src/doc/requirements/Protocol.qbk +0 -56
- data/ext/third_party/asio/asio/src/doc/requirements/RangeConnectHandler.qbk +0 -82
- data/ext/third_party/asio/asio/src/doc/requirements/ReadHandler.qbk +0 -79
- data/ext/third_party/asio/asio/src/doc/requirements/ResolveHandler.qbk +0 -82
- data/ext/third_party/asio/asio/src/doc/requirements/Service.qbk +0 -40
- data/ext/third_party/asio/asio/src/doc/requirements/SettableSerialPortOption.qbk +0 -33
- data/ext/third_party/asio/asio/src/doc/requirements/SettableSocketOption.qbk +0 -54
- data/ext/third_party/asio/asio/src/doc/requirements/ShutdownHandler.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/SignalHandler.qbk +0 -79
- data/ext/third_party/asio/asio/src/doc/requirements/SyncRandomAccessReadDevice.qbk +0 -49
- data/ext/third_party/asio/asio/src/doc/requirements/SyncRandomAccessWriteDevice.qbk +0 -49
- data/ext/third_party/asio/asio/src/doc/requirements/SyncReadStream.qbk +0 -41
- data/ext/third_party/asio/asio/src/doc/requirements/SyncWriteStream.qbk +0 -39
- data/ext/third_party/asio/asio/src/doc/requirements/TimeTraits.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/WaitHandler.qbk +0 -72
- data/ext/third_party/asio/asio/src/doc/requirements/WaitTraits.qbk +0 -52
- data/ext/third_party/asio/asio/src/doc/requirements/WriteHandler.qbk +0 -79
- data/ext/third_party/asio/asio/src/doc/requirements/asynchronous_operations.qbk +0 -300
- data/ext/third_party/asio/asio/src/doc/requirements/asynchronous_socket_operations.qbk +0 -39
- data/ext/third_party/asio/asio/src/doc/requirements/read_write_operations.qbk +0 -34
- data/ext/third_party/asio/asio/src/doc/requirements/synchronous_socket_operations.qbk +0 -37
- data/ext/third_party/asio/asio/src/doc/std_exception_dox.txt +0 -7
- data/ext/third_party/asio/asio/src/doc/tutorial.dox +0 -226
- data/ext/third_party/asio/asio/src/doc/tutorial.qbk +0 -2387
- data/ext/third_party/asio/asio/src/doc/tutorial.xsl +0 -437
- data/ext/third_party/asio/asio/src/doc/using.qbk +0 -309
- data/ext/third_party/asio/asio/src/examples/cpp03/Makefile.am +0 -251
- data/ext/third_party/asio/asio/src/examples/cpp03/allocation/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/allocation/server.cpp +0 -285
- data/ext/third_party/asio/asio/src/examples/cpp03/buffers/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/buffers/reference_counted.cpp +0 -131
- data/ext/third_party/asio/asio/src/examples/cpp03/chat/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/chat/chat_client.cpp +0 -177
- data/ext/third_party/asio/asio/src/examples/cpp03/chat/chat_message.hpp +0 -93
- data/ext/third_party/asio/asio/src/examples/cpp03/chat/chat_server.cpp +0 -249
- data/ext/third_party/asio/asio/src/examples/cpp03/chat/posix_chat_client.cpp +0 -204
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/async_tcp_echo_server.cpp +0 -137
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/async_udp_echo_server.cpp +0 -92
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/blocking_tcp_echo_client.cpp +0 -59
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/blocking_tcp_echo_server.cpp +0 -79
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/blocking_udp_echo_client.cpp +0 -59
- data/ext/third_party/asio/asio/src/examples/cpp03/echo/blocking_udp_echo_server.cpp +0 -53
- data/ext/third_party/asio/asio/src/examples/cpp03/fork/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/fork/daemon.cpp +0 -190
- data/ext/third_party/asio/asio/src/examples/cpp03/fork/process_per_connection.cpp +0 -161
- data/ext/third_party/asio/asio/src/examples/cpp03/http/client/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/http/client/async_client.cpp +0 -204
- data/ext/third_party/asio/asio/src/examples/cpp03/http/client/sync_client.cpp +0 -106
- data/ext/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_1K.html +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_2K.html +0 -49
- data/ext/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_4K.html +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp03/http/doc_root/data_8K.html +0 -175
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/connection.cpp +0 -99
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/connection.hpp +0 -83
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/connection_manager.cpp +0 -38
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/connection_manager.hpp +0 -44
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/header.hpp +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/main.cpp +0 -44
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/mime_types.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/mime_types.hpp +0 -27
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/reply.cpp +0 -256
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/reply.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/request.hpp +0 -34
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/request_handler.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/request_handler.hpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/request_parser.cpp +0 -315
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/request_parser.hpp +0 -95
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/server.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server/server.hpp +0 -69
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/connection.cpp +0 -93
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/connection.hpp +0 -75
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/header.hpp +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/io_context_pool.cpp +0 -69
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/io_context_pool.hpp +0 -58
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/main.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/mime_types.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/mime_types.hpp +0 -27
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/reply.cpp +0 -256
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/reply.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/request.hpp +0 -34
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/request_handler.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/request_handler.hpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/request_parser.cpp +0 -315
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/request_parser.hpp +0 -95
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/server.cpp +0 -77
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server2/server.hpp +0 -68
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/connection.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/connection.hpp +0 -78
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/header.hpp +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/main.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/mime_types.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/mime_types.hpp +0 -27
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/reply.cpp +0 -256
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/reply.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/request.hpp +0 -34
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/request_handler.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/request_handler.hpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/request_parser.cpp +0 -315
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/request_parser.hpp +0 -95
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/server.cpp +0 -89
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server3/server.hpp +0 -70
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/file_handler.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/file_handler.hpp +0 -44
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/header.hpp +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/main.cpp +0 -58
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/mime_types.cpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/mime_types.hpp +0 -27
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/reply.cpp +0 -256
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/reply.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/request.hpp +0 -46
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/request_parser.cpp +0 -226
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/request_parser.hpp +0 -78
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/server.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/http/server4/server.hpp +0 -73
- data/ext/third_party/asio/asio/src/examples/cpp03/icmp/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/icmp/icmp_header.hpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp03/icmp/ipv4_header.hpp +0 -102
- data/ext/third_party/asio/asio/src/examples/cpp03/icmp/ping.cpp +0 -163
- data/ext/third_party/asio/asio/src/examples/cpp03/invocation/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/invocation/prioritised_handlers.cpp +0 -171
- data/ext/third_party/asio/asio/src/examples/cpp03/iostreams/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/iostreams/daytime_client.cpp +0 -44
- data/ext/third_party/asio/asio/src/examples/cpp03/iostreams/daytime_server.cpp +0 -51
- data/ext/third_party/asio/asio/src/examples/cpp03/iostreams/http_client.cpp +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp03/local/.gitignore +0 -13
- data/ext/third_party/asio/asio/src/examples/cpp03/local/connect_pair.cpp +0 -141
- data/ext/third_party/asio/asio/src/examples/cpp03/local/iostream_client.cpp +0 -62
- data/ext/third_party/asio/asio/src/examples/cpp03/local/stream_client.cpp +0 -61
- data/ext/third_party/asio/asio/src/examples/cpp03/local/stream_server.cpp +0 -141
- data/ext/third_party/asio/asio/src/examples/cpp03/multicast/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/multicast/receiver.cpp +0 -93
- data/ext/third_party/asio/asio/src/examples/cpp03/multicast/sender.cpp +0 -98
- data/ext/third_party/asio/asio/src/examples/cpp03/nonblocking/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/nonblocking/third_party_lib.cpp +0 -240
- data/ext/third_party/asio/asio/src/examples/cpp03/porthopper/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/porthopper/client.cpp +0 -192
- data/ext/third_party/asio/asio/src/examples/cpp03/porthopper/protocol.hpp +0 -156
- data/ext/third_party/asio/asio/src/examples/cpp03/porthopper/server.cpp +0 -187
- data/ext/third_party/asio/asio/src/examples/cpp03/serialization/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/serialization/client.cpp +0 -125
- data/ext/third_party/asio/asio/src/examples/cpp03/serialization/connection.hpp +0 -188
- data/ext/third_party/asio/asio/src/examples/cpp03/serialization/server.cpp +0 -123
- data/ext/third_party/asio/asio/src/examples/cpp03/serialization/stock.hpp +0 -50
- data/ext/third_party/asio/asio/src/examples/cpp03/services/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/services/basic_logger.hpp +0 -83
- data/ext/third_party/asio/asio/src/examples/cpp03/services/daytime_client.cpp +0 -97
- data/ext/third_party/asio/asio/src/examples/cpp03/services/logger.hpp +0 -24
- data/ext/third_party/asio/asio/src/examples/cpp03/services/logger_service.cpp +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/services/logger_service.hpp +0 -145
- data/ext/third_party/asio/asio/src/examples/cpp03/socks4/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/socks4/socks4.hpp +0 -144
- data/ext/third_party/asio/asio/src/examples/cpp03/socks4/sync_client.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp03/spawn/.gitignore +0 -12
- data/ext/third_party/asio/asio/src/examples/cpp03/spawn/echo_server.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp03/spawn/parallel_grep.cpp +0 -89
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/README +0 -8
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/ca.pem +0 -49
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/client.cpp +0 -157
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/dh2048.pem +0 -8
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/server.cpp +0 -170
- data/ext/third_party/asio/asio/src/examples/cpp03/ssl/server.pem +0 -71
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/async_tcp_client.cpp +0 -311
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_tcp_client.cpp +0 -191
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_token_tcp_client.cpp +0 -200
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/blocking_udp_client.cpp +0 -154
- data/ext/third_party/asio/asio/src/examples/cpp03/timeouts/server.cpp +0 -433
- data/ext/third_party/asio/asio/src/examples/cpp03/timers/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/timers/time_t_timer.cpp +0 -106
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime1/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime1/client.cpp +0 -57
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime2/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime2/server.cpp +0 -50
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime3/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime3/server.cpp +0 -119
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime4/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime4/client.cpp +0 -52
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime5/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime5/server.cpp +0 -53
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime6/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime6/server.cpp +0 -89
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime7/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime7/server.cpp +0 -160
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/daytime_dox.txt +0 -500
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/index_dox.txt +0 -48
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer1/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer1/timer.cpp +0 -24
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer2/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer2/timer.cpp +0 -29
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer3/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer3/timer.cpp +0 -43
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer4/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer4/timer.cpp +0 -54
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer5/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer5/timer.cpp +0 -80
- data/ext/third_party/asio/asio/src/examples/cpp03/tutorial/timer_dox.txt +0 -378
- data/ext/third_party/asio/asio/src/examples/cpp03/windows/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp03/windows/transmit_file.cpp +0 -177
- data/ext/third_party/asio/asio/src/examples/cpp11/Makefile.am +0 -161
- data/ext/third_party/asio/asio/src/examples/cpp11/allocation/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/allocation/server.cpp +0 -255
- data/ext/third_party/asio/asio/src/examples/cpp11/buffers/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/buffers/reference_counted.cpp +0 -122
- data/ext/third_party/asio/asio/src/examples/cpp11/chat/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/chat/chat_client.cpp +0 -167
- data/ext/third_party/asio/asio/src/examples/cpp11/chat/chat_message.hpp +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp11/chat/chat_server.cpp +0 -227
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/async_tcp_echo_server.cpp +0 -114
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/async_udp_echo_server.cpp +0 -82
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/blocking_tcp_echo_client.cpp +0 -55
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/blocking_tcp_echo_server.cpp +0 -74
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/blocking_udp_echo_client.cpp +0 -58
- data/ext/third_party/asio/asio/src/examples/cpp11/echo/blocking_udp_echo_server.cpp +0 -52
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/.gitignore +0 -5
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/actor.cpp +0 -286
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/bank_account_1.cpp +0 -54
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/bank_account_2.cpp +0 -54
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/fork_join.cpp +0 -328
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/pipeline.cpp +0 -299
- data/ext/third_party/asio/asio/src/examples/cpp11/executors/priority_scheduler.cpp +0 -174
- data/ext/third_party/asio/asio/src/examples/cpp11/fork/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/fork/daemon.cpp +0 -189
- data/ext/third_party/asio/asio/src/examples/cpp11/fork/process_per_connection.cpp +0 -162
- data/ext/third_party/asio/asio/src/examples/cpp11/futures/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/futures/daytime_client.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp11/handler_tracking/custom_tracking.hpp +0 -201
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/connection.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/connection.hpp +0 -79
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/connection_manager.cpp +0 -40
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/connection_manager.hpp +0 -48
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/header.hpp +0 -28
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/main.cpp +0 -43
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/mime_types.cpp +0 -45
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/mime_types.hpp +0 -27
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/reply.cpp +0 -255
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/reply.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/request.hpp +0 -34
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/request_handler.cpp +0 -121
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/request_handler.hpp +0 -47
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/request_parser.cpp +0 -315
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/request_parser.hpp +0 -96
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/server.cpp +0 -94
- data/ext/third_party/asio/asio/src/examples/cpp11/http/server/server.hpp +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp11/invocation/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/invocation/prioritised_handlers.cpp +0 -202
- data/ext/third_party/asio/asio/src/examples/cpp11/iostreams/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/iostreams/http_client.cpp +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp11/local/.gitignore +0 -13
- data/ext/third_party/asio/asio/src/examples/cpp11/local/connect_pair.cpp +0 -129
- data/ext/third_party/asio/asio/src/examples/cpp11/local/iostream_client.cpp +0 -61
- data/ext/third_party/asio/asio/src/examples/cpp11/local/stream_client.cpp +0 -60
- data/ext/third_party/asio/asio/src/examples/cpp11/local/stream_server.cpp +0 -121
- data/ext/third_party/asio/asio/src/examples/cpp11/multicast/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/multicast/receiver.cpp +0 -88
- data/ext/third_party/asio/asio/src/examples/cpp11/multicast/sender.cpp +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp11/nonblocking/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/nonblocking/third_party_lib.cpp +0 -212
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_1.cpp +0 -113
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_2.cpp +0 -131
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_3.cpp +0 -192
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_4.cpp +0 -207
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_5.cpp +0 -243
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_6.cpp +0 -302
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_7.cpp +0 -222
- data/ext/third_party/asio/asio/src/examples/cpp11/operations/composed_8.cpp +0 -217
- data/ext/third_party/asio/asio/src/examples/cpp11/socks4/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/socks4/socks4.hpp +0 -143
- data/ext/third_party/asio/asio/src/examples/cpp11/socks4/sync_client.cpp +0 -93
- data/ext/third_party/asio/asio/src/examples/cpp11/spawn/.gitignore +0 -12
- data/ext/third_party/asio/asio/src/examples/cpp11/spawn/echo_server.cpp +0 -111
- data/ext/third_party/asio/asio/src/examples/cpp11/spawn/parallel_grep.cpp +0 -84
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/README +0 -8
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/ca.pem +0 -49
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/client.cpp +0 -165
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/dh2048.pem +0 -8
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/server.cpp +0 -143
- data/ext/third_party/asio/asio/src/examples/cpp11/ssl/server.pem +0 -71
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/async_tcp_client.cpp +0 -311
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_tcp_client.cpp +0 -192
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_token_tcp_client.cpp +0 -197
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/blocking_udp_client.cpp +0 -155
- data/ext/third_party/asio/asio/src/examples/cpp11/timeouts/server.cpp +0 -433
- data/ext/third_party/asio/asio/src/examples/cpp11/timers/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp11/timers/time_t_timer.cpp +0 -106
- data/ext/third_party/asio/asio/src/examples/cpp14/Makefile.am +0 -64
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/async_tcp_echo_server.cpp +0 -117
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/async_udp_echo_server.cpp +0 -83
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/blocking_tcp_echo_client.cpp +0 -55
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/blocking_tcp_echo_server.cpp +0 -77
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/blocking_udp_echo_client.cpp +0 -59
- data/ext/third_party/asio/asio/src/examples/cpp14/echo/blocking_udp_echo_server.cpp +0 -53
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/.gitignore +0 -6
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/actor.cpp +0 -281
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/async_1.cpp +0 -47
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/async_2.cpp +0 -68
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/bank_account_1.cpp +0 -54
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/bank_account_2.cpp +0 -53
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/fork_join.cpp +0 -327
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/pipeline.cpp +0 -294
- data/ext/third_party/asio/asio/src/examples/cpp14/executors/priority_scheduler.cpp +0 -173
- data/ext/third_party/asio/asio/src/examples/cpp14/iostreams/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/examples/cpp14/iostreams/http_client.cpp +0 -91
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/.gitignore +0 -10
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_1.cpp +0 -113
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_2.cpp +0 -131
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_3.cpp +0 -186
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_4.cpp +0 -201
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_5.cpp +0 -238
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_6.cpp +0 -298
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_7.cpp +0 -219
- data/ext/third_party/asio/asio/src/examples/cpp14/operations/composed_8.cpp +0 -212
- data/ext/third_party/asio/asio/src/examples/cpp17/Makefile.am +0 -8
- data/ext/third_party/asio/asio/src/examples/cpp17/coroutines_ts/chat_server.cpp +0 -225
- data/ext/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server.cpp +0 -76
- data/ext/third_party/asio/asio/src/examples/cpp17/coroutines_ts/echo_server_with_default.cpp +0 -78
- data/ext/third_party/asio/asio/src/examples/cpp17/coroutines_ts/range_based_for.cpp +0 -107
- data/ext/third_party/asio/asio/src/examples/cpp17/coroutines_ts/refactored_echo_server.cpp +0 -85
- data/ext/third_party/asio/asio/src/tests/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/tests/Makefile.am +0 -432
- data/ext/third_party/asio/asio/src/tests/latency/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/tests/latency/allocator.hpp +0 -52
- data/ext/third_party/asio/asio/src/tests/latency/high_res_clock.hpp +0 -53
- data/ext/third_party/asio/asio/src/tests/latency/tcp_client.cpp +0 -124
- data/ext/third_party/asio/asio/src/tests/latency/tcp_server.cpp +0 -114
- data/ext/third_party/asio/asio/src/tests/latency/udp_client.cpp +0 -104
- data/ext/third_party/asio/asio/src/tests/latency/udp_server.cpp +0 -125
- data/ext/third_party/asio/asio/src/tests/performance/.gitignore +0 -11
- data/ext/third_party/asio/asio/src/tests/performance/client.cpp +0 -286
- data/ext/third_party/asio/asio/src/tests/performance/handler_allocator.hpp +0 -112
- data/ext/third_party/asio/asio/src/tests/performance/server.cpp +0 -233
- data/ext/third_party/asio/asio/src/tests/unit/.gitignore +0 -75
- data/ext/third_party/asio/asio/src/tests/unit/archetypes/async_ops.hpp +0 -415
- data/ext/third_party/asio/asio/src/tests/unit/archetypes/async_result.hpp +0 -94
- data/ext/third_party/asio/asio/src/tests/unit/archetypes/gettable_socket_option.hpp +0 -54
- data/ext/third_party/asio/asio/src/tests/unit/archetypes/io_control_command.hpp +0 -32
- data/ext/third_party/asio/asio/src/tests/unit/archetypes/settable_socket_option.hpp +0 -49
- data/ext/third_party/asio/asio/src/tests/unit/associated_allocator.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/associated_executor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/async_result.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/awaitable.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_datagram_socket.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_deadline_timer.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_raw_socket.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_seq_packet_socket.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_serial_port.cpp +0 -26
- data/ext/third_party/asio/asio/src/tests/unit/basic_signal_set.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_socket.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_socket_acceptor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_stream_socket.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_streambuf.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/basic_waitable_timer.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/bind_executor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/buffer.cpp +0 -830
- data/ext/third_party/asio/asio/src/tests/unit/buffered_read_stream.cpp +0 -338
- data/ext/third_party/asio/asio/src/tests/unit/buffered_stream.cpp +0 -364
- data/ext/third_party/asio/asio/src/tests/unit/buffered_write_stream.cpp +0 -353
- data/ext/third_party/asio/asio/src/tests/unit/buffers_iterator.cpp +0 -292
- data/ext/third_party/asio/asio/src/tests/unit/co_spawn.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/completion_condition.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/compose.cpp +0 -185
- data/ext/third_party/asio/asio/src/tests/unit/connect.cpp +0 -1190
- data/ext/third_party/asio/asio/src/tests/unit/coroutine.cpp +0 -112
- data/ext/third_party/asio/asio/src/tests/unit/deadline_timer.cpp +0 -392
- data/ext/third_party/asio/asio/src/tests/unit/defer.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/detached.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/dispatch.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/error.cpp +0 -89
- data/ext/third_party/asio/asio/src/tests/unit/execution_context.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/executor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/executor_work_guard.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/generic/.gitignore +0 -14
- data/ext/third_party/asio/asio/src/tests/unit/generic/basic_endpoint.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/generic/datagram_protocol.cpp +0 -263
- data/ext/third_party/asio/asio/src/tests/unit/generic/raw_protocol.cpp +0 -263
- data/ext/third_party/asio/asio/src/tests/unit/generic/seq_packet_protocol.cpp +0 -205
- data/ext/third_party/asio/asio/src/tests/unit/generic/stream_protocol.cpp +0 -248
- data/ext/third_party/asio/asio/src/tests/unit/high_resolution_timer.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/io_context.cpp +0 -362
- data/ext/third_party/asio/asio/src/tests/unit/io_context_strand.cpp +0 -325
- data/ext/third_party/asio/asio/src/tests/unit/ip/.gitignore +0 -27
- data/ext/third_party/asio/asio/src/tests/unit/ip/address.cpp +0 -144
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v4.cpp +0 -324
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v4_iterator.cpp +0 -27
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v4_range.cpp +0 -27
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v6.cpp +0 -409
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v6_iterator.cpp +0 -27
- data/ext/third_party/asio/asio/src/tests/unit/ip/address_v6_range.cpp +0 -27
- data/ext/third_party/asio/asio/src/tests/unit/ip/basic_endpoint.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/basic_resolver.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/basic_resolver_entry.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/basic_resolver_iterator.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/basic_resolver_query.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/host_name.cpp +0 -55
- data/ext/third_party/asio/asio/src/tests/unit/ip/icmp.cpp +0 -577
- data/ext/third_party/asio/asio/src/tests/unit/ip/multicast.cpp +0 -363
- data/ext/third_party/asio/asio/src/tests/unit/ip/network_v4.cpp +0 -314
- data/ext/third_party/asio/asio/src/tests/unit/ip/network_v6.cpp +0 -238
- data/ext/third_party/asio/asio/src/tests/unit/ip/resolver_query_base.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ip/tcp.cpp +0 -1346
- data/ext/third_party/asio/asio/src/tests/unit/ip/udp.cpp +0 -673
- data/ext/third_party/asio/asio/src/tests/unit/ip/unicast.cpp +0 -171
- data/ext/third_party/asio/asio/src/tests/unit/ip/v6_only.cpp +0 -135
- data/ext/third_party/asio/asio/src/tests/unit/is_read_buffered.cpp +0 -129
- data/ext/third_party/asio/asio/src/tests/unit/is_write_buffered.cpp +0 -129
- data/ext/third_party/asio/asio/src/tests/unit/local/.gitignore +0 -13
- data/ext/third_party/asio/asio/src/tests/unit/local/basic_endpoint.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/local/connect_pair.cpp +0 -76
- data/ext/third_party/asio/asio/src/tests/unit/local/datagram_protocol.cpp +0 -242
- data/ext/third_party/asio/asio/src/tests/unit/local/stream_protocol.cpp +0 -219
- data/ext/third_party/asio/asio/src/tests/unit/packaged_task.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/placeholders.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/posix/.gitignore +0 -14
- data/ext/third_party/asio/asio/src/tests/unit/posix/basic_descriptor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/posix/basic_stream_descriptor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/posix/descriptor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/posix/descriptor_base.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/posix/stream_descriptor.cpp +0 -183
- data/ext/third_party/asio/asio/src/tests/unit/post.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/read.cpp +0 -4997
- data/ext/third_party/asio/asio/src/tests/unit/read_at.cpp +0 -7502
- data/ext/third_party/asio/asio/src/tests/unit/read_until.cpp +0 -1658
- data/ext/third_party/asio/asio/src/tests/unit/redirect_error.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/serial_port.cpp +0 -173
- data/ext/third_party/asio/asio/src/tests/unit/serial_port_base.cpp +0 -99
- data/ext/third_party/asio/asio/src/tests/unit/signal_set.cpp +0 -95
- data/ext/third_party/asio/asio/src/tests/unit/socket_base.cpp +0 -650
- data/ext/third_party/asio/asio/src/tests/unit/ssl/.gitignore +0 -15
- data/ext/third_party/asio/asio/src/tests/unit/ssl/context.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ssl/context_base.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ssl/error.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ssl/host_name_verification.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ssl/rfc2818_verification.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ssl/stream.cpp +0 -191
- data/ext/third_party/asio/asio/src/tests/unit/ssl/stream_base.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/steady_timer.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/strand.cpp +0 -263
- data/ext/third_party/asio/asio/src/tests/unit/streambuf.cpp +0 -62
- data/ext/third_party/asio/asio/src/tests/unit/system_context.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/system_executor.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/system_timer.cpp +0 -399
- data/ext/third_party/asio/asio/src/tests/unit/this_coro.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/thread.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/time_traits.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/ts/.gitignore +0 -17
- data/ext/third_party/asio/asio/src/tests/unit/ts/buffer.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/executor.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/internet.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/io_context.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/net.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/netfwd.cpp +0 -33
- data/ext/third_party/asio/asio/src/tests/unit/ts/socket.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/ts/timer.cpp +0 -30
- data/ext/third_party/asio/asio/src/tests/unit/unit_test.hpp +0 -175
- data/ext/third_party/asio/asio/src/tests/unit/use_awaitable.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/use_future.cpp +0 -670
- data/ext/third_party/asio/asio/src/tests/unit/uses_executor.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/wait_traits.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/windows/.gitignore +0 -18
- data/ext/third_party/asio/asio/src/tests/unit/windows/basic_object_handle.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/windows/basic_overlapped_handle.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/windows/basic_random_access_handle.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/windows/basic_stream_handle.cpp +0 -25
- data/ext/third_party/asio/asio/src/tests/unit/windows/object_handle.cpp +0 -130
- data/ext/third_party/asio/asio/src/tests/unit/windows/overlapped_handle.cpp +0 -26
- data/ext/third_party/asio/asio/src/tests/unit/windows/overlapped_ptr.cpp +0 -107
- data/ext/third_party/asio/asio/src/tests/unit/windows/random_access_handle.cpp +0 -155
- data/ext/third_party/asio/asio/src/tests/unit/windows/stream_handle.cpp +0 -148
- data/ext/third_party/asio/asio/src/tests/unit/write.cpp +0 -4904
- data/ext/third_party/asio/asio/src/tests/unit/write_at.cpp +0 -7563
- data/ext/third_party/asio/asio/src/tools/handlerviz.pl +0 -299
- data/ext/third_party/asio/asio/tsify.pl +0 -574
- data/ext/third_party/gsl/.clang-format +0 -34
- data/ext/third_party/gsl/.github/workflows/main.yml +0 -94
- data/ext/third_party/gsl/.gitignore +0 -16
- data/ext/third_party/gsl/.travis.yml +0 -551
- data/ext/third_party/gsl/CMakeLists.txt +0 -119
- data/ext/third_party/gsl/CMakeSettings.json +0 -18
- data/ext/third_party/gsl/CONTRIBUTING.md +0 -29
- data/ext/third_party/gsl/GSL.natvis +0 -98
- data/ext/third_party/gsl/LICENSE +0 -21
- data/ext/third_party/gsl/README.md +0 -124
- data/ext/third_party/gsl/ThirdPartyNotices.txt +0 -41
- data/ext/third_party/gsl/appveyor.yml +0 -128
- data/ext/third_party/gsl/include/gsl/gsl +0 -29
- data/ext/third_party/gsl/include/gsl/gsl_algorithm +0 -61
- data/ext/third_party/gsl/include/gsl/gsl_assert +0 -133
- data/ext/third_party/gsl/include/gsl/gsl_byte +0 -209
- data/ext/third_party/gsl/include/gsl/gsl_util +0 -171
- data/ext/third_party/gsl/include/gsl/multi_span +0 -2273
- data/ext/third_party/gsl/include/gsl/pointers +0 -301
- data/ext/third_party/gsl/include/gsl/span +0 -764
- data/ext/third_party/gsl/include/gsl/span_ext +0 -198
- data/ext/third_party/gsl/include/gsl/string_span +0 -716
- data/ext/third_party/gsl/tests/CMakeLists.txt +0 -267
- data/ext/third_party/gsl/tests/CMakeLists.txt.in +0 -14
- data/ext/third_party/gsl/tests/algorithm_tests.cpp +0 -227
- data/ext/third_party/gsl/tests/assertion_tests.cpp +0 -61
- data/ext/third_party/gsl/tests/at_tests.cpp +0 -135
- data/ext/third_party/gsl/tests/bounds_tests.cpp +0 -102
- data/ext/third_party/gsl/tests/byte_tests.cpp +0 -129
- data/ext/third_party/gsl/tests/multi_span_tests.cpp +0 -1866
- data/ext/third_party/gsl/tests/no_exception_ensure_tests.cpp +0 -48
- data/ext/third_party/gsl/tests/notnull_tests.cpp +0 -535
- data/ext/third_party/gsl/tests/owner_tests.cpp +0 -43
- data/ext/third_party/gsl/tests/span_compatibility_tests.cpp +0 -1021
- data/ext/third_party/gsl/tests/span_ext_tests.cpp +0 -360
- data/ext/third_party/gsl/tests/span_tests.cpp +0 -1244
- data/ext/third_party/gsl/tests/strict_notnull_tests.cpp +0 -190
- data/ext/third_party/gsl/tests/strided_span_tests.cpp +0 -790
- data/ext/third_party/gsl/tests/string_span_tests.cpp +0 -1217
- data/ext/third_party/gsl/tests/utils_tests.cpp +0 -129
- data/ext/third_party/http_parser/.gitignore +0 -30
- data/ext/third_party/http_parser/.mailmap +0 -8
- data/ext/third_party/http_parser/.travis.yml +0 -13
- data/ext/third_party/http_parser/AUTHORS +0 -68
- data/ext/third_party/http_parser/LICENSE-MIT +0 -19
- data/ext/third_party/http_parser/Makefile +0 -160
- data/ext/third_party/http_parser/README.md +0 -246
- data/ext/third_party/http_parser/bench.c +0 -128
- data/ext/third_party/http_parser/contrib/parsertrace.c +0 -157
- data/ext/third_party/http_parser/contrib/url_parser.c +0 -47
- data/ext/third_party/http_parser/fuzzers/fuzz_parser.c +0 -26
- data/ext/third_party/http_parser/fuzzers/fuzz_url.c +0 -14
- data/ext/third_party/http_parser/http_parser.c +0 -2568
- data/ext/third_party/http_parser/http_parser.gyp +0 -111
- data/ext/third_party/http_parser/http_parser.h +0 -447
- data/ext/third_party/http_parser/test.c +0 -4600
- data/ext/third_party/json/.appveyor.yml +0 -44
- data/ext/third_party/json/.clang-format +0 -84
- data/ext/third_party/json/.conan/build.py +0 -80
- data/ext/third_party/json/.conan/test_package/CMakeLists.txt +0 -12
- data/ext/third_party/json/.conan/test_package/conanfile.py +0 -24
- data/ext/third_party/json/.conan/test_package/test_package.cpp +0 -16
- data/ext/third_party/json/.gitignore +0 -3
- data/ext/third_party/json/.travis.yml +0 -173
- data/ext/third_party/json/CMakeLists.txt +0 -44
- data/ext/third_party/json/LICENSE +0 -21
- data/ext/third_party/json/LICENSE.double-conversion +0 -32
- data/ext/third_party/json/LICENSE.itoa +0 -19
- data/ext/third_party/json/LICENSE.ryu +0 -201
- data/ext/third_party/json/Makefile +0 -77
- data/ext/third_party/json/README.md +0 -149
- data/ext/third_party/json/conanfile.py +0 -28
- data/ext/third_party/json/contrib/nlohmann/from_value.hpp +0 -62
- data/ext/third_party/json/contrib/nlohmann/json.hpp +0 -18928
- data/ext/third_party/json/contrib/nlohmann/to_value.hpp +0 -109
- data/ext/third_party/json/contrib/nlohmann.cpp +0 -48
- data/ext/third_party/json/doc/Advanced-Use-Cases.md +0 -83
- data/ext/third_party/json/doc/Batteries-Included.md +0 -212
- data/ext/third_party/json/doc/Binding-Traits.md +0 -319
- data/ext/third_party/json/doc/Changelog.md +0 -31
- data/ext/third_party/json/doc/Common-Use-Cases.md +0 -148
- data/ext/third_party/json/doc/Design-Decisions.md +0 -36
- data/ext/third_party/json/doc/Events-Interface.md +0 -140
- data/ext/third_party/json/doc/Getting-Started.md +0 -19
- data/ext/third_party/json/doc/Instance-Sharing.md +0 -163
- data/ext/third_party/json/doc/Interoperability.md +0 -75
- data/ext/third_party/json/doc/Overview.md +0 -24
- data/ext/third_party/json/doc/Overview.png +0 -0
- data/ext/third_party/json/doc/Parser-Interface.md +0 -84
- data/ext/third_party/json/doc/README.md +0 -78
- data/ext/third_party/json/doc/Scratchpad.md +0 -25
- data/ext/third_party/json/doc/Type-Traits.md +0 -364
- data/ext/third_party/json/doc/Types.png +0 -0
- data/ext/third_party/json/doc/Value-Class.md +0 -525
- data/ext/third_party/json/include/tao/json/basic_value.hpp +0 -941
- data/ext/third_party/json/include/tao/json/binary.hpp +0 -103
- data/ext/third_party/json/include/tao/json/binary_view.hpp +0 -31
- data/ext/third_party/json/include/tao/json/binding/constant.hpp +0 -232
- data/ext/third_party/json/include/tao/json/binding/element.hpp +0 -182
- data/ext/third_party/json/include/tao/json/binding/factory.hpp +0 -250
- data/ext/third_party/json/include/tao/json/binding/for_nothing_value.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/for_unknown_key.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/inherit.hpp +0 -14
- data/ext/third_party/json/include/tao/json/binding/internal/array.hpp +0 -103
- data/ext/third_party/json/include/tao/json/binding/internal/inherit.hpp +0 -45
- data/ext/third_party/json/include/tao/json/binding/internal/object.hpp +0 -267
- data/ext/third_party/json/include/tao/json/binding/internal/type_key.hpp +0 -54
- data/ext/third_party/json/include/tao/json/binding/member.hpp +0 -32
- data/ext/third_party/json/include/tao/json/binding/member_kind.hpp +0 -17
- data/ext/third_party/json/include/tao/json/binding/versions.hpp +0 -127
- data/ext/third_party/json/include/tao/json/binding.hpp +0 -71
- data/ext/third_party/json/include/tao/json/cbor/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/cbor/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/cbor/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/cbor/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/cbor/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/cbor/events/to_stream.hpp +0 -161
- data/ext/third_party/json/include/tao/json/cbor/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/cbor/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/cbor/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/cbor/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/cbor/internal/grammar.hpp +0 -417
- data/ext/third_party/json/include/tao/json/cbor/internal/major.hpp +0 -28
- data/ext/third_party/json/include/tao/json/cbor/parts_parser.hpp +0 -392
- data/ext/third_party/json/include/tao/json/cbor/to_stream.hpp +0 -27
- data/ext/third_party/json/include/tao/json/cbor/to_string.hpp +0 -28
- data/ext/third_party/json/include/tao/json/cbor.hpp +0 -18
- data/ext/third_party/json/include/tao/json/consume.hpp +0 -43
- data/ext/third_party/json/include/tao/json/consume_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/consume_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/contrib/array_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/deque_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/diff.hpp +0 -106
- data/ext/third_party/json/include/tao/json/contrib/get.hpp +0 -152
- data/ext/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +0 -92
- data/ext/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +0 -69
- data/ext/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +0 -105
- data/ext/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +0 -36
- data/ext/third_party/json/include/tao/json/contrib/list_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/map_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/multimap_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/multiset_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/pair_traits.hpp +0 -21
- data/ext/third_party/json/include/tao/json/contrib/patch.hpp +0 -105
- data/ext/third_party/json/include/tao/json/contrib/pointer_traits.hpp +0 -59
- data/ext/third_party/json/include/tao/json/contrib/position.hpp +0 -166
- data/ext/third_party/json/include/tao/json/contrib/reference.hpp +0 -115
- data/ext/third_party/json/include/tao/json/contrib/schema.hpp +0 -1851
- data/ext/third_party/json/include/tao/json/contrib/set_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +0 -90
- data/ext/third_party/json/include/tao/json/contrib/traits.hpp +0 -121
- data/ext/third_party/json/include/tao/json/contrib/tuple_traits.hpp +0 -51
- data/ext/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +0 -89
- data/ext/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +0 -43
- data/ext/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +0 -41
- data/ext/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +0 -45
- data/ext/third_party/json/include/tao/json/contrib/vector_traits.hpp +0 -51
- data/ext/third_party/json/include/tao/json/events/apply.hpp +0 -20
- data/ext/third_party/json/include/tao/json/events/binary_to_base64.hpp +0 -26
- data/ext/third_party/json/include/tao/json/events/binary_to_base64url.hpp +0 -28
- data/ext/third_party/json/include/tao/json/events/binary_to_exception.hpp +0 -27
- data/ext/third_party/json/include/tao/json/events/binary_to_hex.hpp +0 -26
- data/ext/third_party/json/include/tao/json/events/compare.hpp +0 -265
- data/ext/third_party/json/include/tao/json/events/debug.hpp +0 -145
- data/ext/third_party/json/include/tao/json/events/discard.hpp +0 -43
- data/ext/third_party/json/include/tao/json/events/from_file.hpp +0 -28
- data/ext/third_party/json/include/tao/json/events/from_input.hpp +0 -45
- data/ext/third_party/json/include/tao/json/events/from_stream.hpp +0 -33
- data/ext/third_party/json/include/tao/json/events/from_string.hpp +0 -38
- data/ext/third_party/json/include/tao/json/events/from_value.hpp +0 -202
- data/ext/third_party/json/include/tao/json/events/hash.hpp +0 -174
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +0 -50
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +0 -49
- data/ext/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +0 -48
- data/ext/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +0 -62
- data/ext/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +0 -57
- data/ext/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +0 -82
- data/ext/third_party/json/include/tao/json/events/limit_value_count.hpp +0 -46
- data/ext/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +0 -31
- data/ext/third_party/json/include/tao/json/events/non_finite_to_null.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/non_finite_to_string.hpp +0 -40
- data/ext/third_party/json/include/tao/json/events/prefer_signed.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/prefer_unsigned.hpp +0 -32
- data/ext/third_party/json/include/tao/json/events/produce.hpp +0 -22
- data/ext/third_party/json/include/tao/json/events/ref.hpp +0 -111
- data/ext/third_party/json/include/tao/json/events/statistics.hpp +0 -112
- data/ext/third_party/json/include/tao/json/events/tee.hpp +0 -386
- data/ext/third_party/json/include/tao/json/events/to_pretty_stream.hpp +0 -172
- data/ext/third_party/json/include/tao/json/events/to_stream.hpp +0 -142
- data/ext/third_party/json/include/tao/json/events/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/events/to_value.hpp +0 -137
- data/ext/third_party/json/include/tao/json/events/transformer.hpp +0 -70
- data/ext/third_party/json/include/tao/json/events/validate_event_order.hpp +0 -411
- data/ext/third_party/json/include/tao/json/events/validate_keys.hpp +0 -51
- data/ext/third_party/json/include/tao/json/events/virtual_base.hpp +0 -192
- data/ext/third_party/json/include/tao/json/events/virtual_ref.hpp +0 -170
- data/ext/third_party/json/include/tao/json/events.hpp +0 -47
- data/ext/third_party/json/include/tao/json/external/double.hpp +0 -1313
- data/ext/third_party/json/include/tao/json/external/itoa.hpp +0 -149
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/analyze_cycles.hpp +0 -127
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/counted.hpp +0 -23
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/generic.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/grammar_info.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/insert_guard.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/insert_rules.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/rule_info.hpp +0 -29
- data/ext/third_party/json/include/tao/json/external/pegtl/analysis/rule_type.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/analyze.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/apply_mode.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/argv_input.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/ascii.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/buffer_input.hpp +0 -212
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action.hpp +0 -38
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_state.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/change_action_and_states.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/change_control.hpp +0 -36
- data/ext/third_party/json/include/tao/json/external/pegtl/change_state.hpp +0 -50
- data/ext/third_party/json/include/tao/json/external/pegtl/change_states.hpp +0 -61
- data/ext/third_party/json/include/tao/json/external/pegtl/config.hpp +0 -11
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/abnf.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/alphabet.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/counter.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/http.hpp +0 -253
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/internal.hpp +0 -68
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf16.hpp +0 -200
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf32.hpp +0 -200
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/icu/utf8.hpp +0 -105
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/if_then.hpp +0 -55
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/integer.hpp +0 -446
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json.hpp +0 -88
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/json_pointer.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree.hpp +0 -561
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/parse_tree_to_dot.hpp +0 -104
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/raw_string.hpp +0 -225
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/remove_first_state.hpp +0 -86
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_one_min_max.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/rep_string.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/to_string.hpp +0 -38
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/tracer.hpp +0 -158
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/unescape.hpp +0 -199
- data/ext/third_party/json/include/tao/json/external/pegtl/contrib/uri.hpp +0 -106
- data/ext/third_party/json/include/tao/json/external/pegtl/cstream_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/disable_action.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_failure.hpp +0 -39
- data/ext/third_party/json/include/tao/json/external/pegtl/discard_input_on_success.hpp +0 -39
- data/ext/third_party/json/include/tao/json/external/pegtl/enable_action.hpp +0 -35
- data/ext/third_party/json/include/tao/json/external/pegtl/eol.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/eol_pair.hpp +0 -18
- data/ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/action.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/action_input.hpp +0 -107
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/alnum.hpp +0 -18
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/alpha.hpp +0 -18
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/always_false.hpp +0 -21
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/any.hpp +0 -58
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0.hpp +0 -50
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply0_single.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/apply_single.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/at.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bof.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bol.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump.hpp +0 -45
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bump_help.hpp +0 -29
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/bytes.hpp +0 -36
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/control.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_crlf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cr_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/crlf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstream_reader.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/cstring_reader.hpp +0 -40
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/demangle.hpp +0 -140
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/disable.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/discard.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/dusel_mode.hpp +0 -23
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/duseltronik.hpp +0 -187
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/enable.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/endian.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/endian_gcc.hpp +0 -206
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/endian_win.hpp +0 -106
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eof.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eol.hpp +0 -31
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/eolf.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_posix.hpp +0 -83
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_mapper_win32.hpp +0 -219
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_opener.hpp +0 -72
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/file_reader.hpp +0 -114
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_apply0.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/has_match.hpp +0 -56
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/identifier.hpp +0 -22
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_apply.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must.hpp +0 -48
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_must_else.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/if_then_else.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/input_pair.hpp +0 -29
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/istream_reader.hpp +0 -40
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/istring.hpp +0 -72
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/iterator.hpp +0 -52
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_crlf_eol.hpp +0 -37
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/lf_eol.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_must.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/list_tail_pad.hpp +0 -22
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/marker.hpp +0 -82
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/missing_apply0.hpp +0 -23
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/must.hpp +0 -72
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/not_at.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/one.hpp +0 -44
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/opt.hpp +0 -57
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pad_opt.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_char.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_mask_uint.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_mask_uint8.hpp +0 -34
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_uint.hpp +0 -45
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_uint8.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_utf16.hpp +0 -54
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_utf32.hpp +0 -43
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/peek_utf8.hpp +0 -90
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/pegtl_string.hpp +0 -90
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/plus.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/raise.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/range.hpp +0 -51
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/ranges.hpp +0 -93
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/read_uint.hpp +0 -77
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rematch.hpp +0 -69
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep.hpp +0 -66
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_min_max.hpp +0 -79
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rep_opt.hpp +0 -46
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/require.hpp +0 -42
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/result_on_found.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/rules.hpp +0 -61
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/seq.hpp +0 -73
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/skip_control.hpp +0 -25
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/sor.hpp +0 -60
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/star.hpp +0 -47
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/star_must.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/state.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/string.hpp +0 -58
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/trivial.hpp +0 -32
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/try_catch_type.hpp +0 -64
- data/ext/third_party/json/include/tao/json/external/pegtl/internal/until.hpp +0 -84
- data/ext/third_party/json/include/tao/json/external/pegtl/istream_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/external/pegtl/match.hpp +0 -73
- data/ext/third_party/json/include/tao/json/external/pegtl/memory_input.hpp +0 -381
- data/ext/third_party/json/include/tao/json/external/pegtl/mmap_input.hpp +0 -79
- data/ext/third_party/json/include/tao/json/external/pegtl/normal.hpp +0 -87
- data/ext/third_party/json/include/tao/json/external/pegtl/nothing.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/parse.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/pegtl/parse_error.hpp +0 -69
- data/ext/third_party/json/include/tao/json/external/pegtl/position.hpp +0 -75
- data/ext/third_party/json/include/tao/json/external/pegtl/read_input.hpp +0 -74
- data/ext/third_party/json/include/tao/json/external/pegtl/require_apply.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/require_apply0.hpp +0 -16
- data/ext/third_party/json/include/tao/json/external/pegtl/rewind_mode.hpp +0 -20
- data/ext/third_party/json/include/tao/json/external/pegtl/rules.hpp +0 -67
- data/ext/third_party/json/include/tao/json/external/pegtl/string_input.hpp +0 -66
- data/ext/third_party/json/include/tao/json/external/pegtl/tracking_mode.hpp +0 -19
- data/ext/third_party/json/include/tao/json/external/pegtl/uint16.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/uint32.hpp +0 -62
- data/ext/third_party/json/include/tao/json/external/pegtl/uint64.hpp +0 -63
- data/ext/third_party/json/include/tao/json/external/pegtl/uint8.hpp +0 -36
- data/ext/third_party/json/include/tao/json/external/pegtl/utf16.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/utf32.hpp +0 -49
- data/ext/third_party/json/include/tao/json/external/pegtl/utf8.hpp +0 -28
- data/ext/third_party/json/include/tao/json/external/pegtl/version.hpp +0 -13
- data/ext/third_party/json/include/tao/json/external/pegtl.hpp +0 -53
- data/ext/third_party/json/include/tao/json/external/ryu.hpp +0 -1216
- data/ext/third_party/json/include/tao/json/forward.hpp +0 -44
- data/ext/third_party/json/include/tao/json/from_file.hpp +0 -32
- data/ext/third_party/json/include/tao/json/from_input.hpp +0 -32
- data/ext/third_party/json/include/tao/json/from_stream.hpp +0 -45
- data/ext/third_party/json/include/tao/json/from_string.hpp +0 -41
- data/ext/third_party/json/include/tao/json/internal/action.hpp +0 -268
- data/ext/third_party/json/include/tao/json/internal/base64.hpp +0 -55
- data/ext/third_party/json/include/tao/json/internal/base64url.hpp +0 -53
- data/ext/third_party/json/include/tao/json/internal/endian.hpp +0 -60
- data/ext/third_party/json/include/tao/json/internal/endian_gcc.hpp +0 -198
- data/ext/third_party/json/include/tao/json/internal/endian_win.hpp +0 -103
- data/ext/third_party/json/include/tao/json/internal/errors.hpp +0 -85
- data/ext/third_party/json/include/tao/json/internal/escape.hpp +0 -77
- data/ext/third_party/json/include/tao/json/internal/format.hpp +0 -59
- data/ext/third_party/json/include/tao/json/internal/grammar.hpp +0 -229
- data/ext/third_party/json/include/tao/json/internal/hexdump.hpp +0 -31
- data/ext/third_party/json/include/tao/json/internal/identity.hpp +0 -22
- data/ext/third_party/json/include/tao/json/internal/number_state.hpp +0 -80
- data/ext/third_party/json/include/tao/json/internal/number_traits.hpp +0 -267
- data/ext/third_party/json/include/tao/json/internal/pair.hpp +0 -42
- data/ext/third_party/json/include/tao/json/internal/parse_util.hpp +0 -112
- data/ext/third_party/json/include/tao/json/internal/sha256.hpp +0 -218
- data/ext/third_party/json/include/tao/json/internal/single.hpp +0 -40
- data/ext/third_party/json/include/tao/json/internal/string_t.hpp +0 -35
- data/ext/third_party/json/include/tao/json/internal/type_traits.hpp +0 -113
- data/ext/third_party/json/include/tao/json/internal/unescape_action.hpp +0 -24
- data/ext/third_party/json/include/tao/json/internal/uri_fragment.hpp +0 -182
- data/ext/third_party/json/include/tao/json/jaxn/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/jaxn/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/jaxn/events/from_file.hpp +0 -28
- data/ext/third_party/json/include/tao/json/jaxn/events/from_input.hpp +0 -45
- data/ext/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/events/from_string.hpp +0 -39
- data/ext/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +0 -69
- data/ext/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +0 -67
- data/ext/third_party/json/include/tao/json/jaxn/events/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn/from_stream.hpp +0 -48
- data/ext/third_party/json/include/tao/json/jaxn/from_string.hpp +0 -42
- data/ext/third_party/json/include/tao/json/jaxn/internal/action.hpp +0 -355
- data/ext/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +0 -114
- data/ext/third_party/json/include/tao/json/jaxn/internal/errors.hpp +0 -108
- data/ext/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +0 -375
- data/ext/third_party/json/include/tao/json/jaxn/internal/integer.hpp +0 -256
- data/ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +0 -28
- data/ext/third_party/json/include/tao/json/jaxn/is_identifier.hpp +0 -27
- data/ext/third_party/json/include/tao/json/jaxn/parts_parser.hpp +0 -263
- data/ext/third_party/json/include/tao/json/jaxn/to_stream.hpp +0 -36
- data/ext/third_party/json/include/tao/json/jaxn/to_string.hpp +0 -33
- data/ext/third_party/json/include/tao/json/jaxn.hpp +0 -19
- data/ext/third_party/json/include/tao/json/message_extension.hpp +0 -49
- data/ext/third_party/json/include/tao/json/msgpack/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/msgpack/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/msgpack/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/msgpack/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/msgpack/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +0 -214
- data/ext/third_party/json/include/tao/json/msgpack/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/msgpack/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/msgpack/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/msgpack/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/msgpack/internal/format.hpp +0 -57
- data/ext/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +0 -249
- data/ext/third_party/json/include/tao/json/msgpack/parts_parser.hpp +0 -311
- data/ext/third_party/json/include/tao/json/msgpack/to_stream.hpp +0 -27
- data/ext/third_party/json/include/tao/json/msgpack/to_string.hpp +0 -28
- data/ext/third_party/json/include/tao/json/msgpack.hpp +0 -18
- data/ext/third_party/json/include/tao/json/operators.hpp +0 -494
- data/ext/third_party/json/include/tao/json/parts_parser.hpp +0 -306
- data/ext/third_party/json/include/tao/json/pointer.hpp +0 -432
- data/ext/third_party/json/include/tao/json/produce.hpp +0 -61
- data/ext/third_party/json/include/tao/json/self_contained.hpp +0 -143
- data/ext/third_party/json/include/tao/json/span.hpp +0 -568
- data/ext/third_party/json/include/tao/json/stream.hpp +0 -38
- data/ext/third_party/json/include/tao/json/to_stream.hpp +0 -42
- data/ext/third_party/json/include/tao/json/to_string.hpp +0 -23
- data/ext/third_party/json/include/tao/json/traits.hpp +0 -971
- data/ext/third_party/json/include/tao/json/type.hpp +0 -112
- data/ext/third_party/json/include/tao/json/ubjson/consume_file.hpp +0 -34
- data/ext/third_party/json/include/tao/json/ubjson/consume_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/ubjson/events/from_file.hpp +0 -27
- data/ext/third_party/json/include/tao/json/ubjson/events/from_input.hpp +0 -43
- data/ext/third_party/json/include/tao/json/ubjson/events/from_string.hpp +0 -37
- data/ext/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +0 -174
- data/ext/third_party/json/include/tao/json/ubjson/events/to_string.hpp +0 -31
- data/ext/third_party/json/include/tao/json/ubjson/from_file.hpp +0 -33
- data/ext/third_party/json/include/tao/json/ubjson/from_input.hpp +0 -33
- data/ext/third_party/json/include/tao/json/ubjson/from_string.hpp +0 -32
- data/ext/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +0 -413
- data/ext/third_party/json/include/tao/json/ubjson/internal/marker.hpp +0 -46
- data/ext/third_party/json/include/tao/json/ubjson/parts_parser.hpp +0 -393
- data/ext/third_party/json/include/tao/json/ubjson/to_stream.hpp +0 -28
- data/ext/third_party/json/include/tao/json/ubjson/to_string.hpp +0 -29
- data/ext/third_party/json/include/tao/json/ubjson.hpp +0 -18
- data/ext/third_party/json/include/tao/json/utf8.hpp +0 -57
- data/ext/third_party/json/include/tao/json/value.hpp +0 -12
- data/ext/third_party/json/include/tao/json.hpp +0 -45
- data/ext/third_party/json/src/example/json/CMakeLists.txt +0 -67
- data/ext/third_party/json/src/example/json/cbor_to_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/cbor_to_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/cbor_to_msgpack.cpp +0 -18
- data/ext/third_party/json/src/example/json/cbor_to_pretty_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/cbor_to_pretty_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/cbor_to_ubjson.cpp +0 -18
- data/ext/third_party/json/src/example/json/jaxn_to_cbor.cpp +0 -18
- data/ext/third_party/json/src/example/json/jaxn_to_cplusplus.cpp +0 -249
- data/ext/third_party/json/src/example/json/jaxn_to_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/jaxn_to_msgpack.cpp +0 -18
- data/ext/third_party/json/src/example/json/jaxn_to_pretty_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp +0 -18
- data/ext/third_party/json/src/example/json/json_to_cbor.cpp +0 -18
- data/ext/third_party/json/src/example/json/json_to_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/json_to_msgpack.cpp +0 -18
- data/ext/third_party/json/src/example/json/json_to_pretty_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/json_to_ubjson.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_cbor.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_pretty_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_pretty_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/msgpack_to_ubjson.cpp +0 -18
- data/ext/third_party/json/src/example/json/printf_doubles.cpp +0 -51
- data/ext/third_party/json/src/example/json/ubjson_to_cbor.cpp +0 -18
- data/ext/third_party/json/src/example/json/ubjson_to_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/ubjson_to_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/ubjson_to_msgpack.cpp +0 -18
- data/ext/third_party/json/src/example/json/ubjson_to_pretty_jaxn.cpp +0 -18
- data/ext/third_party/json/src/example/json/ubjson_to_pretty_json.cpp +0 -18
- data/ext/third_party/json/src/example/json/validate_event_order.cpp +0 -27
- data/ext/third_party/json/src/example/json/validate_integer.cpp +0 -56
- data/ext/third_party/json/src/perf/json/bench_mark.hpp +0 -43
- data/ext/third_party/json/src/perf/json/benchmark.cpp +0 -34
- data/ext/third_party/json/src/perf/json/parse_file.cpp +0 -17
- data/ext/third_party/json/src/perf/json/pretty_print_file.cpp +0 -19
- data/ext/third_party/json/src/perf/json/print_double.cpp +0 -34
- data/ext/third_party/json/src/perf/json/print_file.cpp +0 -19
- data/ext/third_party/json/src/perf/json/sizes.cpp +0 -24
- data/ext/third_party/json/src/perf/json/syntax_only.cpp +0 -27
- data/ext/third_party/json/src/test/json/CMakeLists.txt +0 -97
- data/ext/third_party/json/src/test/json/big_list_of_naughty_strings.cpp +0 -43
- data/ext/third_party/json/src/test/json/binding_array.cpp +0 -549
- data/ext/third_party/json/src/test/json/binding_factory.cpp +0 -265
- data/ext/third_party/json/src/test/json/binding_object.cpp +0 -208
- data/ext/third_party/json/src/test/json/binding_versions.cpp +0 -95
- data/ext/third_party/json/src/test/json/cbor.cpp +0 -149
- data/ext/third_party/json/src/test/json/cbor_parts_parser.cpp +0 -36
- data/ext/third_party/json/src/test/json/contrib_diff.cpp +0 -43
- data/ext/third_party/json/src/test/json/contrib_get.cpp +0 -42
- data/ext/third_party/json/src/test/json/contrib_patch_add.cpp +0 -75
- data/ext/third_party/json/src/test/json/contrib_patch_copy.cpp +0 -113
- data/ext/third_party/json/src/test/json/contrib_patch_move.cpp +0 -97
- data/ext/third_party/json/src/test/json/contrib_patch_remove.cpp +0 -85
- data/ext/third_party/json/src/test/json/contrib_patch_replace.cpp +0 -79
- data/ext/third_party/json/src/test/json/contrib_patch_test.cpp +0 -69
- data/ext/third_party/json/src/test/json/contrib_position.cpp +0 -48
- data/ext/third_party/json/src/test/json/contrib_reference.cpp +0 -44
- data/ext/third_party/json/src/test/json/contrib_schema.cpp +0 -132
- data/ext/third_party/json/src/test/json/contrib_traits.cpp +0 -258
- data/ext/third_party/json/src/test/json/double.cpp +0 -182
- data/ext/third_party/json/src/test/json/enable_implicit_constructor.cpp +0 -54
- data/ext/third_party/json/src/test/json/escape.cpp +0 -42
- data/ext/third_party/json/src/test/json/events_binary_to.cpp +0 -56
- data/ext/third_party/json/src/test/json/events_compare.cpp +0 -433
- data/ext/third_party/json/src/test/json/events_debug.cpp +0 -24
- data/ext/third_party/json/src/test/json/events_hash.cpp +0 -65
- data/ext/third_party/json/src/test/json/events_to_stream.cpp +0 -28
- data/ext/third_party/json/src/test/json/events_to_string.cpp +0 -25
- data/ext/third_party/json/src/test/json/include_json.cpp +0 -14
- data/ext/third_party/json/src/test/json/integer.cpp +0 -118
- data/ext/third_party/json/src/test/json/jaxn_ostream.cpp +0 -76
- data/ext/third_party/json/src/test/json/jaxn_parse.cpp +0 -239
- data/ext/third_party/json/src/test/json/jaxn_parts_parser.cpp +0 -220
- data/ext/third_party/json/src/test/json/json_ostream.cpp +0 -102
- data/ext/third_party/json/src/test/json/json_parse.cpp +0 -153
- data/ext/third_party/json/src/test/json/json_parts_parser.cpp +0 -124
- data/ext/third_party/json/src/test/json/json_pointer.cpp +0 -176
- data/ext/third_party/json/src/test/json/key_camel_case_to_snake_case.cpp +0 -38
- data/ext/third_party/json/src/test/json/key_snake_case_to_camel_case.cpp +0 -33
- data/ext/third_party/json/src/test/json/literal.cpp +0 -18
- data/ext/third_party/json/src/test/json/main.hpp +0 -20
- data/ext/third_party/json/src/test/json/make_events.hpp +0 -362
- data/ext/third_party/json/src/test/json/msgpack.cpp +0 -136
- data/ext/third_party/json/src/test/json/object_construction.cpp +0 -167
- data/ext/third_party/json/src/test/json/opaque_pointer.cpp +0 -192
- data/ext/third_party/json/src/test/json/operators.cpp +0 -494
- data/ext/third_party/json/src/test/json/optional.cpp +0 -79
- data/ext/third_party/json/src/test/json/public_base.cpp +0 -142
- data/ext/third_party/json/src/test/json/self_contained.cpp +0 -106
- data/ext/third_party/json/src/test/json/sha256.cpp +0 -38
- data/ext/third_party/json/src/test/json/string_view.cpp +0 -70
- data/ext/third_party/json/src/test/json/temporary_parsing.cpp +0 -339
- data/ext/third_party/json/src/test/json/test.hpp +0 -74
- data/ext/third_party/json/src/test/json/test_events.hpp +0 -250
- data/ext/third_party/json/src/test/json/test_types.hpp +0 -557
- data/ext/third_party/json/src/test/json/test_unhex.hpp +0 -42
- data/ext/third_party/json/src/test/json/type.cpp +0 -35
- data/ext/third_party/json/src/test/json/ubjson.cpp +0 -119
- data/ext/third_party/json/src/test/json/uri_fragment.cpp +0 -52
- data/ext/third_party/json/src/test/json/validate_event_interfaces.cpp +0 -177
- data/ext/third_party/json/src/test/json/validate_utf8.cpp +0 -37
- data/ext/third_party/json/src/test/json/value_access.cpp +0 -144
- data/ext/third_party/json/src/test/json/value_basics.cpp +0 -241
- data/ext/third_party/json/src/test/json/value_create.cpp +0 -372
- data/ext/third_party/json/src/test/json/value_ptr.cpp +0 -33
- data/ext/third_party/json/src/test/json/value_subscript.cpp +0 -89
- data/ext/third_party/json/src/test/json/with_arguments.cpp +0 -98
- data/ext/third_party/json/tests/blns.json +0 -496
- data/ext/third_party/json/tests/canada.json +0 -9
- data/ext/third_party/json/tests/citm_catalog.json +0 -50469
- data/ext/third_party/json/tests/draft4/additionalItems.json +0 -82
- data/ext/third_party/json/tests/draft4/additionalProperties.json +0 -88
- data/ext/third_party/json/tests/draft4/allOf.json +0 -112
- data/ext/third_party/json/tests/draft4/anyOf.json +0 -68
- data/ext/third_party/json/tests/draft4/default.json +0 -49
- data/ext/third_party/json/tests/draft4/definitions.json +0 -32
- data/ext/third_party/json/tests/draft4/dependencies.json +0 -113
- data/ext/third_party/json/tests/draft4/enum.json +0 -72
- data/ext/third_party/json/tests/draft4/items.json +0 -46
- data/ext/third_party/json/tests/draft4/maxItems.json +0 -28
- data/ext/third_party/json/tests/draft4/maxLength.json +0 -33
- data/ext/third_party/json/tests/draft4/maxProperties.json +0 -28
- data/ext/third_party/json/tests/draft4/maximum.json +0 -42
- data/ext/third_party/json/tests/draft4/minItems.json +0 -28
- data/ext/third_party/json/tests/draft4/minLength.json +0 -33
- data/ext/third_party/json/tests/draft4/minProperties.json +0 -28
- data/ext/third_party/json/tests/draft4/minimum.json +0 -42
- data/ext/third_party/json/tests/draft4/multipleOf.json +0 -60
- data/ext/third_party/json/tests/draft4/not.json +0 -96
- data/ext/third_party/json/tests/draft4/oneOf.json +0 -68
- data/ext/third_party/json/tests/draft4/optional/bignum.json +0 -107
- data/ext/third_party/json/tests/draft4/optional/format.json +0 -148
- data/ext/third_party/json/tests/draft4/optional/zeroTerminatedFloats.json +0 -15
- data/ext/third_party/json/tests/draft4/pattern.json +0 -34
- data/ext/third_party/json/tests/draft4/patternProperties.json +0 -110
- data/ext/third_party/json/tests/draft4/properties.json +0 -92
- data/ext/third_party/json/tests/draft4/ref.json +0 -179
- data/ext/third_party/json/tests/draft4/refRemote.json +0 -74
- data/ext/third_party/json/tests/draft4/required.json +0 -44
- data/ext/third_party/json/tests/draft4/type.json +0 -345
- data/ext/third_party/json/tests/draft4/uniqueItems.json +0 -79
- data/ext/third_party/json/tests/taocpp/binary.jaxn +0 -4
- data/ext/third_party/json/tests/taocpp/dateTime.json +0 -108
- data/ext/third_party/json/tests/taocpp/make_events.cbor +0 -0
- data/ext/third_party/json/tests/taocpp/number.json +0 -682
- data/ext/third_party/json/tests/taocpp/position.json +0 -8
- data/ext/third_party/json/tests/taocpp/schema.json +0 -378
- data/ext/third_party/json/tests/twitter.json +0 -15482
- data/ext/third_party/snappy/.appveyor.yml +0 -36
- data/ext/third_party/snappy/.gitignore +0 -8
- data/ext/third_party/snappy/.travis.yml +0 -98
- data/ext/third_party/snappy/AUTHORS +0 -1
- data/ext/third_party/snappy/CMakeLists.txt +0 -345
- data/ext/third_party/snappy/CONTRIBUTING.md +0 -26
- data/ext/third_party/snappy/COPYING +0 -54
- data/ext/third_party/snappy/NEWS +0 -188
- data/ext/third_party/snappy/README.md +0 -148
- data/ext/third_party/snappy/cmake/SnappyConfig.cmake.in +0 -33
- data/ext/third_party/snappy/cmake/config.h.in +0 -59
- data/ext/third_party/snappy/docs/README.md +0 -72
- data/ext/third_party/snappy/format_description.txt +0 -110
- data/ext/third_party/snappy/framing_format.txt +0 -135
- data/ext/third_party/snappy/snappy-c.cc +0 -90
- data/ext/third_party/snappy/snappy-c.h +0 -138
- data/ext/third_party/snappy/snappy-internal.h +0 -315
- data/ext/third_party/snappy/snappy-sinksource.cc +0 -121
- data/ext/third_party/snappy/snappy-sinksource.h +0 -182
- data/ext/third_party/snappy/snappy-stubs-internal.cc +0 -42
- data/ext/third_party/snappy/snappy-stubs-internal.h +0 -493
- data/ext/third_party/snappy/snappy-stubs-public.h.in +0 -63
- data/ext/third_party/snappy/snappy-test.cc +0 -613
- data/ext/third_party/snappy/snappy-test.h +0 -526
- data/ext/third_party/snappy/snappy.cc +0 -1770
- data/ext/third_party/snappy/snappy.h +0 -209
- data/ext/third_party/snappy/snappy_compress_fuzzer.cc +0 -60
- data/ext/third_party/snappy/snappy_uncompress_fuzzer.cc +0 -58
- data/ext/third_party/snappy/snappy_unittest.cc +0 -1512
- data/ext/third_party/snappy/testdata/alice29.txt +0 -3609
- data/ext/third_party/snappy/testdata/asyoulik.txt +0 -4122
- data/ext/third_party/snappy/testdata/baddata1.snappy +0 -0
- data/ext/third_party/snappy/testdata/baddata2.snappy +0 -0
- data/ext/third_party/snappy/testdata/baddata3.snappy +0 -0
- data/ext/third_party/snappy/testdata/fireworks.jpeg +0 -0
- data/ext/third_party/snappy/testdata/geo.protodata +0 -0
- data/ext/third_party/snappy/testdata/html +0 -1
- data/ext/third_party/snappy/testdata/html_x_4 +0 -1
- data/ext/third_party/snappy/testdata/kppkn.gtb +0 -0
- data/ext/third_party/snappy/testdata/lcet10.txt +0 -7519
- data/ext/third_party/snappy/testdata/paper-100k.pdf +2 -600
- data/ext/third_party/snappy/testdata/plrabn12.txt +0 -10699
- data/ext/third_party/snappy/testdata/urls.10K +0 -10000
- data/ext/third_party/spdlog/.clang-format +0 -108
- data/ext/third_party/spdlog/.clang-tidy +0 -54
- data/ext/third_party/spdlog/.gitattributes +0 -1
- data/ext/third_party/spdlog/.gitignore +0 -83
- data/ext/third_party/spdlog/.travis.yml +0 -112
- data/ext/third_party/spdlog/CMakeLists.txt +0 -324
- data/ext/third_party/spdlog/INSTALL +0 -24
- data/ext/third_party/spdlog/LICENSE +0 -26
- data/ext/third_party/spdlog/README.md +0 -423
- data/ext/third_party/spdlog/appveyor.yml +0 -51
- data/ext/third_party/spdlog/bench/CMakeLists.txt +0 -25
- data/ext/third_party/spdlog/bench/async_bench.cpp +0 -179
- data/ext/third_party/spdlog/bench/bench.cpp +0 -238
- data/ext/third_party/spdlog/bench/formatter-bench.cpp +0 -80
- data/ext/third_party/spdlog/bench/latency.cpp +0 -166
- data/ext/third_party/spdlog/bench/utils.h +0 -34
- data/ext/third_party/spdlog/cmake/ide.cmake +0 -18
- data/ext/third_party/spdlog/cmake/pch.h.in +0 -258
- data/ext/third_party/spdlog/cmake/spdlog.pc.in +0 -13
- data/ext/third_party/spdlog/cmake/spdlogCPack.cmake +0 -46
- data/ext/third_party/spdlog/cmake/spdlogConfig.cmake.in +0 -15
- data/ext/third_party/spdlog/cmake/utils.cmake +0 -61
- data/ext/third_party/spdlog/cmake/version.rc.in +0 -42
- data/ext/third_party/spdlog/example/CMakeLists.txt +0 -23
- data/ext/third_party/spdlog/example/example.cpp +0 -282
- data/ext/third_party/spdlog/include/spdlog/async.h +0 -93
- data/ext/third_party/spdlog/include/spdlog/async_logger-inl.h +0 -92
- data/ext/third_party/spdlog/include/spdlog/async_logger.h +0 -68
- data/ext/third_party/spdlog/include/spdlog/cfg/argv.h +0 -45
- data/ext/third_party/spdlog/include/spdlog/cfg/env.h +0 -36
- data/ext/third_party/spdlog/include/spdlog/cfg/helpers-inl.h +0 -103
- data/ext/third_party/spdlog/include/spdlog/cfg/helpers.h +0 -28
- data/ext/third_party/spdlog/include/spdlog/cfg/log_levels.h +0 -47
- data/ext/third_party/spdlog/include/spdlog/common-inl.h +0 -76
- data/ext/third_party/spdlog/include/spdlog/common.h +0 -246
- data/ext/third_party/spdlog/include/spdlog/details/backtracer-inl.h +0 -69
- data/ext/third_party/spdlog/include/spdlog/details/backtracer.h +0 -45
- data/ext/third_party/spdlog/include/spdlog/details/circular_q.h +0 -141
- data/ext/third_party/spdlog/include/spdlog/details/console_globals.h +0 -32
- data/ext/third_party/spdlog/include/spdlog/details/file_helper-inl.h +0 -132
- data/ext/third_party/spdlog/include/spdlog/details/file_helper.h +0 -59
- data/ext/third_party/spdlog/include/spdlog/details/fmt_helper.h +0 -108
- data/ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h +0 -37
- data/ext/third_party/spdlog/include/spdlog/details/log_msg.h +0 -36
- data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -58
- data/ext/third_party/spdlog/include/spdlog/details/log_msg_buffer.h +0 -33
- data/ext/third_party/spdlog/include/spdlog/details/mpmc_blocking_q.h +0 -120
- data/ext/third_party/spdlog/include/spdlog/details/null_mutex.h +0 -49
- data/ext/third_party/spdlog/include/spdlog/details/os-inl.h +0 -554
- data/ext/third_party/spdlog/include/spdlog/details/os.h +0 -111
- data/ext/third_party/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -49
- data/ext/third_party/spdlog/include/spdlog/details/periodic_worker.h +0 -40
- data/ext/third_party/spdlog/include/spdlog/details/registry-inl.h +0 -299
- data/ext/third_party/spdlog/include/spdlog/details/registry.h +0 -112
- data/ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h +0 -24
- data/ext/third_party/spdlog/include/spdlog/details/tcp_client-windows.h +0 -175
- data/ext/third_party/spdlog/include/spdlog/details/tcp_client.h +0 -145
- data/ext/third_party/spdlog/include/spdlog/details/thread_pool-inl.h +0 -124
- data/ext/third_party/spdlog/include/spdlog/details/thread_pool.h +0 -120
- data/ext/third_party/spdlog/include/spdlog/details/windows_include.h +0 -11
- data/ext/third_party/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -216
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/LICENSE.rst +0 -27
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -1119
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/color.h +0 -568
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/compile.h +0 -595
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/core.h +0 -1789
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1403
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/format.h +0 -3648
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/locale.h +0 -78
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -143
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/posix.h +0 -2
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/printf.h +0 -721
- data/ext/third_party/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -387
- data/ext/third_party/spdlog/include/spdlog/fmt/fmt.h +0 -25
- data/ext/third_party/spdlog/include/spdlog/fmt/ostr.h +0 -20
- data/ext/third_party/spdlog/include/spdlog/formatter.h +0 -18
- data/ext/third_party/spdlog/include/spdlog/fwd.h +0 -14
- data/ext/third_party/spdlog/include/spdlog/logger-inl.h +0 -253
- data/ext/third_party/spdlog/include/spdlog/logger.h +0 -392
- data/ext/third_party/spdlog/include/spdlog/pattern_formatter-inl.h +0 -1358
- data/ext/third_party/spdlog/include/spdlog/pattern_formatter.h +0 -126
- data/ext/third_party/spdlog/include/spdlog/sinks/android_sink.h +0 -119
- data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -143
- data/ext/third_party/spdlog/include/spdlog/sinks/ansicolor_sink.h +0 -118
- data/ext/third_party/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -63
- data/ext/third_party/spdlog/include/spdlog/sinks/base_sink.h +0 -52
- data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -43
- data/ext/third_party/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -58
- data/ext/third_party/spdlog/include/spdlog/sinks/daily_file_sink.h +0 -204
- data/ext/third_party/spdlog/include/spdlog/sinks/dist_sink.h +0 -97
- data/ext/third_party/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -90
- data/ext/third_party/spdlog/include/spdlog/sinks/msvc_sink.h +0 -49
- data/ext/third_party/spdlog/include/spdlog/sinks/null_sink.h +0 -44
- data/ext/third_party/spdlog/include/spdlog/sinks/ostream_sink.h +0 -50
- data/ext/third_party/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -72
- data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +0 -131
- data/ext/third_party/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -78
- data/ext/third_party/spdlog/include/spdlog/sinks/sink-inl.h +0 -25
- data/ext/third_party/spdlog/include/spdlog/sinks/sink.h +0 -35
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -38
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -45
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -94
- data/ext/third_party/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -80
- data/ext/third_party/spdlog/include/spdlog/sinks/syslog_sink.h +0 -109
- data/ext/third_party/spdlog/include/spdlog/sinks/systemd_sink.h +0 -103
- data/ext/third_party/spdlog/include/spdlog/sinks/tcp_sink.h +0 -81
- data/ext/third_party/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -266
- data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +0 -180
- data/ext/third_party/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -94
- data/ext/third_party/spdlog/include/spdlog/spdlog-inl.h +0 -115
- data/ext/third_party/spdlog/include/spdlog/spdlog.h +0 -340
- data/ext/third_party/spdlog/include/spdlog/tweakme.h +0 -116
- data/ext/third_party/spdlog/include/spdlog/version.h +0 -10
- data/ext/third_party/spdlog/logos/jetbrains-variant-4.svg +0 -43
- data/ext/third_party/spdlog/scripts/extract_version.py +0 -17
- data/ext/third_party/spdlog/scripts/format.sh +0 -16
- data/ext/third_party/spdlog/src/async.cpp +0 -13
- data/ext/third_party/spdlog/src/cfg.cpp +0 -8
- data/ext/third_party/spdlog/src/color_sinks.cpp +0 -51
- data/ext/third_party/spdlog/src/file_sinks.cpp +0 -20
- data/ext/third_party/spdlog/src/fmt.cpp +0 -189
- data/ext/third_party/spdlog/src/spdlog.cpp +0 -26
- data/ext/third_party/spdlog/src/stdout_sinks.cpp +0 -29
- data/ext/third_party/spdlog/tests/CMakeLists.txt +0 -70
- data/ext/third_party/spdlog/tests/catch.hpp +0 -15372
- data/ext/third_party/spdlog/tests/catch.license +0 -23
- data/ext/third_party/spdlog/tests/includes.h +0 -26
- data/ext/third_party/spdlog/tests/main.cpp +0 -2
- data/ext/third_party/spdlog/tests/test_async.cpp +0 -188
- data/ext/third_party/spdlog/tests/test_backtrace.cpp +0 -65
- data/ext/third_party/spdlog/tests/test_cfg.cpp +0 -93
- data/ext/third_party/spdlog/tests/test_create_dir.cpp +0 -80
- data/ext/third_party/spdlog/tests/test_daily_logger.cpp +0 -149
- data/ext/third_party/spdlog/tests/test_dup_filter.cpp +0 -88
- data/ext/third_party/spdlog/tests/test_errors.cpp +0 -118
- data/ext/third_party/spdlog/tests/test_eventlog.cpp +0 -71
- data/ext/third_party/spdlog/tests/test_file_helper.cpp +0 -102
- data/ext/third_party/spdlog/tests/test_file_logging.cpp +0 -98
- data/ext/third_party/spdlog/tests/test_fmt_helper.cpp +0 -86
- data/ext/third_party/spdlog/tests/test_macros.cpp +0 -60
- data/ext/third_party/spdlog/tests/test_misc.cpp +0 -271
- data/ext/third_party/spdlog/tests/test_mpmc_q.cpp +0 -106
- data/ext/third_party/spdlog/tests/test_pattern_formatter.cpp +0 -443
- data/ext/third_party/spdlog/tests/test_registry.cpp +0 -116
- data/ext/third_party/spdlog/tests/test_sink.h +0 -79
- data/ext/third_party/spdlog/tests/test_stdout_api.cpp +0 -98
- data/ext/third_party/spdlog/tests/test_systemd.cpp +0 -15
- data/ext/third_party/spdlog/tests/test_time_point.cpp +0 -36
- data/ext/third_party/spdlog/tests/utils.cpp +0 -125
- data/ext/third_party/spdlog/tests/utils.h +0 -18
- data/lib/couchbase/common_options.rb +0 -29
- data/lib/couchbase/libcouchbase.so +0 -0
- data/rbi/couchbase.rbi +0 -79
@@ -1,4997 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// read.cpp
|
3
|
-
// ~~~~~~~~
|
4
|
-
//
|
5
|
-
// Copyright (c) 2003-2020 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
|
-
// Disable autolinking for unit tests.
|
12
|
-
#if !defined(BOOST_ALL_NO_LIB)
|
13
|
-
#define BOOST_ALL_NO_LIB 1
|
14
|
-
#endif // !defined(BOOST_ALL_NO_LIB)
|
15
|
-
|
16
|
-
// Test that header file is self-contained.
|
17
|
-
#include "asio/read.hpp"
|
18
|
-
|
19
|
-
#include <cstring>
|
20
|
-
#include <vector>
|
21
|
-
#include "archetypes/async_result.hpp"
|
22
|
-
#include "asio/io_context.hpp"
|
23
|
-
#include "asio/post.hpp"
|
24
|
-
#include "asio/streambuf.hpp"
|
25
|
-
#include "unit_test.hpp"
|
26
|
-
|
27
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
28
|
-
# include <boost/bind/bind.hpp>
|
29
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
30
|
-
# include <functional>
|
31
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
32
|
-
|
33
|
-
#if defined(ASIO_HAS_BOOST_ARRAY)
|
34
|
-
#include <boost/array.hpp>
|
35
|
-
#endif // defined(ASIO_HAS_BOOST_ARRAY)
|
36
|
-
|
37
|
-
#if defined(ASIO_HAS_STD_ARRAY)
|
38
|
-
# include <array>
|
39
|
-
#endif // defined(ASIO_HAS_STD_ARRAY)
|
40
|
-
|
41
|
-
using namespace std; // For memcmp, memcpy and memset.
|
42
|
-
|
43
|
-
class test_stream
|
44
|
-
{
|
45
|
-
public:
|
46
|
-
typedef asio::io_context::executor_type executor_type;
|
47
|
-
|
48
|
-
test_stream(asio::io_context& io_context)
|
49
|
-
: io_context_(io_context),
|
50
|
-
length_(0),
|
51
|
-
position_(0),
|
52
|
-
next_read_length_(0)
|
53
|
-
{
|
54
|
-
}
|
55
|
-
|
56
|
-
executor_type get_executor() ASIO_NOEXCEPT
|
57
|
-
{
|
58
|
-
return io_context_.get_executor();
|
59
|
-
}
|
60
|
-
|
61
|
-
void reset(const void* data, size_t length)
|
62
|
-
{
|
63
|
-
ASIO_CHECK(length <= max_length);
|
64
|
-
|
65
|
-
memcpy(data_, data, length);
|
66
|
-
length_ = length;
|
67
|
-
position_ = 0;
|
68
|
-
next_read_length_ = length;
|
69
|
-
}
|
70
|
-
|
71
|
-
void next_read_length(size_t length)
|
72
|
-
{
|
73
|
-
next_read_length_ = length;
|
74
|
-
}
|
75
|
-
|
76
|
-
template <typename Iterator>
|
77
|
-
bool check_buffers(Iterator begin, Iterator end, size_t length)
|
78
|
-
{
|
79
|
-
if (length != position_)
|
80
|
-
return false;
|
81
|
-
|
82
|
-
Iterator iter = begin;
|
83
|
-
size_t checked_length = 0;
|
84
|
-
for (; iter != end && checked_length < length; ++iter)
|
85
|
-
{
|
86
|
-
size_t buffer_length = asio::buffer_size(*iter);
|
87
|
-
if (buffer_length > length - checked_length)
|
88
|
-
buffer_length = length - checked_length;
|
89
|
-
if (memcmp(data_ + checked_length, iter->data(), buffer_length) != 0)
|
90
|
-
return false;
|
91
|
-
checked_length += buffer_length;
|
92
|
-
}
|
93
|
-
|
94
|
-
return true;
|
95
|
-
}
|
96
|
-
|
97
|
-
template <typename Const_Buffers>
|
98
|
-
bool check_buffers(const Const_Buffers& buffers, size_t length)
|
99
|
-
{
|
100
|
-
return check_buffers(asio::buffer_sequence_begin(buffers),
|
101
|
-
asio::buffer_sequence_end(buffers), length);
|
102
|
-
}
|
103
|
-
|
104
|
-
template <typename Mutable_Buffers>
|
105
|
-
size_t read_some(const Mutable_Buffers& buffers)
|
106
|
-
{
|
107
|
-
size_t n = asio::buffer_copy(buffers,
|
108
|
-
asio::buffer(data_, length_) + position_,
|
109
|
-
next_read_length_);
|
110
|
-
position_ += n;
|
111
|
-
return n;
|
112
|
-
}
|
113
|
-
|
114
|
-
template <typename Mutable_Buffers>
|
115
|
-
size_t read_some(const Mutable_Buffers& buffers,
|
116
|
-
asio::error_code& ec)
|
117
|
-
{
|
118
|
-
ec = asio::error_code();
|
119
|
-
return read_some(buffers);
|
120
|
-
}
|
121
|
-
|
122
|
-
template <typename Mutable_Buffers, typename Handler>
|
123
|
-
void async_read_some(const Mutable_Buffers& buffers,
|
124
|
-
ASIO_MOVE_ARG(Handler) handler)
|
125
|
-
{
|
126
|
-
size_t bytes_transferred = read_some(buffers);
|
127
|
-
asio::post(get_executor(),
|
128
|
-
asio::detail::bind_handler(
|
129
|
-
ASIO_MOVE_CAST(Handler)(handler),
|
130
|
-
asio::error_code(), bytes_transferred));
|
131
|
-
}
|
132
|
-
|
133
|
-
private:
|
134
|
-
asio::io_context& io_context_;
|
135
|
-
enum { max_length = 8192 };
|
136
|
-
char data_[max_length];
|
137
|
-
size_t length_;
|
138
|
-
size_t position_;
|
139
|
-
size_t next_read_length_;
|
140
|
-
};
|
141
|
-
|
142
|
-
static const char read_data[]
|
143
|
-
= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
144
|
-
|
145
|
-
void test_2_arg_zero_buffers_read()
|
146
|
-
{
|
147
|
-
asio::io_context ioc;
|
148
|
-
test_stream s(ioc);
|
149
|
-
std::vector<asio::mutable_buffer> buffers;
|
150
|
-
|
151
|
-
size_t bytes_transferred = asio::read(s, buffers);
|
152
|
-
ASIO_CHECK(bytes_transferred == 0);
|
153
|
-
}
|
154
|
-
|
155
|
-
void test_2_arg_mutable_buffer_read()
|
156
|
-
{
|
157
|
-
asio::io_context ioc;
|
158
|
-
test_stream s(ioc);
|
159
|
-
char read_buf[sizeof(read_data)];
|
160
|
-
asio::mutable_buffer buffers
|
161
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
162
|
-
|
163
|
-
s.reset(read_data, sizeof(read_data));
|
164
|
-
memset(read_buf, 0, sizeof(read_buf));
|
165
|
-
size_t bytes_transferred = asio::read(s, buffers);
|
166
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
167
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
168
|
-
|
169
|
-
s.reset(read_data, sizeof(read_data));
|
170
|
-
s.next_read_length(1);
|
171
|
-
memset(read_buf, 0, sizeof(read_buf));
|
172
|
-
bytes_transferred = asio::read(s, buffers);
|
173
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
174
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
175
|
-
|
176
|
-
s.reset(read_data, sizeof(read_data));
|
177
|
-
s.next_read_length(10);
|
178
|
-
memset(read_buf, 0, sizeof(read_buf));
|
179
|
-
bytes_transferred = asio::read(s, buffers);
|
180
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
181
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
182
|
-
}
|
183
|
-
|
184
|
-
void test_2_arg_vector_buffers_read()
|
185
|
-
{
|
186
|
-
asio::io_context ioc;
|
187
|
-
test_stream s(ioc);
|
188
|
-
char read_buf[sizeof(read_data)];
|
189
|
-
std::vector<asio::mutable_buffer> buffers;
|
190
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
191
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
192
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
193
|
-
|
194
|
-
s.reset(read_data, sizeof(read_data));
|
195
|
-
memset(read_buf, 0, sizeof(read_buf));
|
196
|
-
size_t bytes_transferred = asio::read(s, buffers);
|
197
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
198
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
199
|
-
|
200
|
-
s.reset(read_data, sizeof(read_data));
|
201
|
-
s.next_read_length(1);
|
202
|
-
memset(read_buf, 0, sizeof(read_buf));
|
203
|
-
bytes_transferred = asio::read(s, buffers);
|
204
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
205
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
206
|
-
|
207
|
-
s.reset(read_data, sizeof(read_data));
|
208
|
-
s.next_read_length(10);
|
209
|
-
memset(read_buf, 0, sizeof(read_buf));
|
210
|
-
bytes_transferred = asio::read(s, buffers);
|
211
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
212
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
213
|
-
}
|
214
|
-
|
215
|
-
void test_2_arg_dynamic_string_read()
|
216
|
-
{
|
217
|
-
asio::io_context ioc;
|
218
|
-
test_stream s(ioc);
|
219
|
-
std::string data;
|
220
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
221
|
-
std::string::allocator_type> sb
|
222
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
223
|
-
|
224
|
-
s.reset(read_data, sizeof(read_data));
|
225
|
-
sb.consume(sb.size());
|
226
|
-
size_t bytes_transferred = asio::read(s, sb);
|
227
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
228
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
229
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
230
|
-
|
231
|
-
s.reset(read_data, sizeof(read_data));
|
232
|
-
s.next_read_length(1);
|
233
|
-
sb.consume(sb.size());
|
234
|
-
bytes_transferred = asio::read(s, sb);
|
235
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
236
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
237
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
238
|
-
|
239
|
-
s.reset(read_data, sizeof(read_data));
|
240
|
-
s.next_read_length(10);
|
241
|
-
sb.consume(sb.size());
|
242
|
-
bytes_transferred = asio::read(s, sb);
|
243
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
244
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
245
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
246
|
-
}
|
247
|
-
|
248
|
-
void test_2_arg_streambuf_read()
|
249
|
-
{
|
250
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
251
|
-
asio::io_context ioc;
|
252
|
-
test_stream s(ioc);
|
253
|
-
asio::streambuf sb(sizeof(read_data));
|
254
|
-
|
255
|
-
s.reset(read_data, sizeof(read_data));
|
256
|
-
sb.consume(sb.size());
|
257
|
-
size_t bytes_transferred = asio::read(s, sb);
|
258
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
259
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
260
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
261
|
-
|
262
|
-
s.reset(read_data, sizeof(read_data));
|
263
|
-
s.next_read_length(1);
|
264
|
-
sb.consume(sb.size());
|
265
|
-
bytes_transferred = asio::read(s, sb);
|
266
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
267
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
268
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
269
|
-
|
270
|
-
s.reset(read_data, sizeof(read_data));
|
271
|
-
s.next_read_length(10);
|
272
|
-
sb.consume(sb.size());
|
273
|
-
bytes_transferred = asio::read(s, sb);
|
274
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
275
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
276
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
277
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
278
|
-
}
|
279
|
-
|
280
|
-
void test_3_arg_nothrow_zero_buffers_read()
|
281
|
-
{
|
282
|
-
asio::io_context ioc;
|
283
|
-
test_stream s(ioc);
|
284
|
-
std::vector<asio::mutable_buffer> buffers;
|
285
|
-
|
286
|
-
asio::error_code error;
|
287
|
-
size_t bytes_transferred = asio::read(s, buffers, error);
|
288
|
-
ASIO_CHECK(bytes_transferred == 0);
|
289
|
-
ASIO_CHECK(!error);
|
290
|
-
}
|
291
|
-
|
292
|
-
void test_3_arg_nothrow_mutable_buffer_read()
|
293
|
-
{
|
294
|
-
asio::io_context ioc;
|
295
|
-
test_stream s(ioc);
|
296
|
-
char read_buf[sizeof(read_data)];
|
297
|
-
asio::mutable_buffer buffers
|
298
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
299
|
-
|
300
|
-
s.reset(read_data, sizeof(read_data));
|
301
|
-
memset(read_buf, 0, sizeof(read_buf));
|
302
|
-
asio::error_code error;
|
303
|
-
size_t bytes_transferred = asio::read(s, buffers, error);
|
304
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
305
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
306
|
-
ASIO_CHECK(!error);
|
307
|
-
|
308
|
-
s.reset(read_data, sizeof(read_data));
|
309
|
-
s.next_read_length(1);
|
310
|
-
memset(read_buf, 0, sizeof(read_buf));
|
311
|
-
bytes_transferred = asio::read(s, buffers, error);
|
312
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
313
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
314
|
-
ASIO_CHECK(!error);
|
315
|
-
|
316
|
-
s.reset(read_data, sizeof(read_data));
|
317
|
-
s.next_read_length(10);
|
318
|
-
memset(read_buf, 0, sizeof(read_buf));
|
319
|
-
bytes_transferred = asio::read(s, buffers, error);
|
320
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
321
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
322
|
-
ASIO_CHECK(!error);
|
323
|
-
}
|
324
|
-
|
325
|
-
void test_3_arg_nothrow_vector_buffers_read()
|
326
|
-
{
|
327
|
-
asio::io_context ioc;
|
328
|
-
test_stream s(ioc);
|
329
|
-
char read_buf[sizeof(read_data)];
|
330
|
-
std::vector<asio::mutable_buffer> buffers;
|
331
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
332
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
333
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
334
|
-
|
335
|
-
s.reset(read_data, sizeof(read_data));
|
336
|
-
memset(read_buf, 0, sizeof(read_buf));
|
337
|
-
asio::error_code error;
|
338
|
-
size_t bytes_transferred = asio::read(s, buffers, error);
|
339
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
340
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
341
|
-
ASIO_CHECK(!error);
|
342
|
-
|
343
|
-
s.reset(read_data, sizeof(read_data));
|
344
|
-
s.next_read_length(1);
|
345
|
-
memset(read_buf, 0, sizeof(read_buf));
|
346
|
-
bytes_transferred = asio::read(s, buffers, error);
|
347
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
348
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
349
|
-
ASIO_CHECK(!error);
|
350
|
-
|
351
|
-
s.reset(read_data, sizeof(read_data));
|
352
|
-
s.next_read_length(10);
|
353
|
-
memset(read_buf, 0, sizeof(read_buf));
|
354
|
-
bytes_transferred = asio::read(s, buffers, error);
|
355
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
356
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
357
|
-
ASIO_CHECK(!error);
|
358
|
-
}
|
359
|
-
|
360
|
-
void test_3_arg_nothrow_dynamic_string_read()
|
361
|
-
{
|
362
|
-
asio::io_context ioc;
|
363
|
-
test_stream s(ioc);
|
364
|
-
std::string data;
|
365
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
366
|
-
std::string::allocator_type> sb
|
367
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
368
|
-
|
369
|
-
s.reset(read_data, sizeof(read_data));
|
370
|
-
sb.consume(sb.size());
|
371
|
-
asio::error_code error;
|
372
|
-
size_t bytes_transferred = asio::read(s, sb, error);
|
373
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
374
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
375
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
376
|
-
ASIO_CHECK(!error);
|
377
|
-
|
378
|
-
s.reset(read_data, sizeof(read_data));
|
379
|
-
s.next_read_length(1);
|
380
|
-
sb.consume(sb.size());
|
381
|
-
bytes_transferred = asio::read(s, sb, error);
|
382
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
383
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
384
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
385
|
-
ASIO_CHECK(!error);
|
386
|
-
|
387
|
-
s.reset(read_data, sizeof(read_data));
|
388
|
-
s.next_read_length(10);
|
389
|
-
sb.consume(sb.size());
|
390
|
-
bytes_transferred = asio::read(s, sb, error);
|
391
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
392
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
393
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
394
|
-
ASIO_CHECK(!error);
|
395
|
-
}
|
396
|
-
|
397
|
-
void test_3_arg_nothrow_streambuf_read()
|
398
|
-
{
|
399
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
400
|
-
asio::io_context ioc;
|
401
|
-
test_stream s(ioc);
|
402
|
-
asio::streambuf sb(sizeof(read_data));
|
403
|
-
|
404
|
-
s.reset(read_data, sizeof(read_data));
|
405
|
-
sb.consume(sb.size());
|
406
|
-
asio::error_code error;
|
407
|
-
size_t bytes_transferred = asio::read(s, sb, error);
|
408
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
409
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
410
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
411
|
-
ASIO_CHECK(!error);
|
412
|
-
|
413
|
-
s.reset(read_data, sizeof(read_data));
|
414
|
-
s.next_read_length(1);
|
415
|
-
sb.consume(sb.size());
|
416
|
-
bytes_transferred = asio::read(s, sb, error);
|
417
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
418
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
419
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
420
|
-
ASIO_CHECK(!error);
|
421
|
-
|
422
|
-
s.reset(read_data, sizeof(read_data));
|
423
|
-
s.next_read_length(10);
|
424
|
-
sb.consume(sb.size());
|
425
|
-
bytes_transferred = asio::read(s, sb, error);
|
426
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
427
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
428
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
429
|
-
ASIO_CHECK(!error);
|
430
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
431
|
-
}
|
432
|
-
|
433
|
-
bool old_style_transfer_all(const asio::error_code& ec,
|
434
|
-
size_t /*bytes_transferred*/)
|
435
|
-
{
|
436
|
-
return !!ec;
|
437
|
-
}
|
438
|
-
|
439
|
-
struct short_transfer
|
440
|
-
{
|
441
|
-
short_transfer() {}
|
442
|
-
#if defined(ASIO_HAS_MOVE)
|
443
|
-
short_transfer(short_transfer&&) {}
|
444
|
-
#else // defined(ASIO_HAS_MOVE)
|
445
|
-
short_transfer(const short_transfer&) {}
|
446
|
-
#endif // defined(ASIO_HAS_MOVE)
|
447
|
-
size_t operator()(const asio::error_code& ec,
|
448
|
-
size_t /*bytes_transferred*/)
|
449
|
-
{
|
450
|
-
return !!ec ? 0 : 3;
|
451
|
-
}
|
452
|
-
};
|
453
|
-
|
454
|
-
void test_3_arg_mutable_buffer_read()
|
455
|
-
{
|
456
|
-
asio::io_context ioc;
|
457
|
-
test_stream s(ioc);
|
458
|
-
char read_buf[sizeof(read_data)];
|
459
|
-
asio::mutable_buffer buffers
|
460
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
461
|
-
|
462
|
-
s.reset(read_data, sizeof(read_data));
|
463
|
-
memset(read_buf, 0, sizeof(read_buf));
|
464
|
-
size_t bytes_transferred = asio::read(s, buffers,
|
465
|
-
asio::transfer_all());
|
466
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
467
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
468
|
-
|
469
|
-
s.reset(read_data, sizeof(read_data));
|
470
|
-
s.next_read_length(1);
|
471
|
-
memset(read_buf, 0, sizeof(read_buf));
|
472
|
-
bytes_transferred = asio::read(s, buffers,
|
473
|
-
asio::transfer_all());
|
474
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
475
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
476
|
-
|
477
|
-
s.reset(read_data, sizeof(read_data));
|
478
|
-
s.next_read_length(10);
|
479
|
-
memset(read_buf, 0, sizeof(read_buf));
|
480
|
-
bytes_transferred = asio::read(s, buffers,
|
481
|
-
asio::transfer_all());
|
482
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
483
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
484
|
-
|
485
|
-
s.reset(read_data, sizeof(read_data));
|
486
|
-
memset(read_buf, 0, sizeof(read_buf));
|
487
|
-
bytes_transferred = asio::read(s, buffers,
|
488
|
-
asio::transfer_at_least(1));
|
489
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
490
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
491
|
-
|
492
|
-
s.reset(read_data, sizeof(read_data));
|
493
|
-
s.next_read_length(1);
|
494
|
-
memset(read_buf, 0, sizeof(read_buf));
|
495
|
-
bytes_transferred = asio::read(s, buffers,
|
496
|
-
asio::transfer_at_least(1));
|
497
|
-
ASIO_CHECK(bytes_transferred == 1);
|
498
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
499
|
-
|
500
|
-
s.reset(read_data, sizeof(read_data));
|
501
|
-
s.next_read_length(10);
|
502
|
-
memset(read_buf, 0, sizeof(read_buf));
|
503
|
-
bytes_transferred = asio::read(s, buffers,
|
504
|
-
asio::transfer_at_least(1));
|
505
|
-
ASIO_CHECK(bytes_transferred == 10);
|
506
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
507
|
-
|
508
|
-
s.reset(read_data, sizeof(read_data));
|
509
|
-
memset(read_buf, 0, sizeof(read_buf));
|
510
|
-
bytes_transferred = asio::read(s, buffers,
|
511
|
-
asio::transfer_at_least(10));
|
512
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
513
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
514
|
-
|
515
|
-
s.reset(read_data, sizeof(read_data));
|
516
|
-
s.next_read_length(1);
|
517
|
-
memset(read_buf, 0, sizeof(read_buf));
|
518
|
-
bytes_transferred = asio::read(s, buffers,
|
519
|
-
asio::transfer_at_least(10));
|
520
|
-
ASIO_CHECK(bytes_transferred == 10);
|
521
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
522
|
-
|
523
|
-
s.reset(read_data, sizeof(read_data));
|
524
|
-
s.next_read_length(10);
|
525
|
-
memset(read_buf, 0, sizeof(read_buf));
|
526
|
-
bytes_transferred = asio::read(s, buffers,
|
527
|
-
asio::transfer_at_least(10));
|
528
|
-
ASIO_CHECK(bytes_transferred == 10);
|
529
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
530
|
-
|
531
|
-
s.reset(read_data, sizeof(read_data));
|
532
|
-
memset(read_buf, 0, sizeof(read_buf));
|
533
|
-
bytes_transferred = asio::read(s, buffers,
|
534
|
-
asio::transfer_at_least(42));
|
535
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
536
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
537
|
-
|
538
|
-
s.reset(read_data, sizeof(read_data));
|
539
|
-
s.next_read_length(1);
|
540
|
-
memset(read_buf, 0, sizeof(read_buf));
|
541
|
-
bytes_transferred = asio::read(s, buffers,
|
542
|
-
asio::transfer_at_least(42));
|
543
|
-
ASIO_CHECK(bytes_transferred == 42);
|
544
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
545
|
-
|
546
|
-
s.reset(read_data, sizeof(read_data));
|
547
|
-
s.next_read_length(10);
|
548
|
-
memset(read_buf, 0, sizeof(read_buf));
|
549
|
-
bytes_transferred = asio::read(s, buffers,
|
550
|
-
asio::transfer_at_least(42));
|
551
|
-
ASIO_CHECK(bytes_transferred == 50);
|
552
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
553
|
-
|
554
|
-
s.reset(read_data, sizeof(read_data));
|
555
|
-
memset(read_buf, 0, sizeof(read_buf));
|
556
|
-
bytes_transferred = asio::read(s, buffers,
|
557
|
-
asio::transfer_exactly(1));
|
558
|
-
ASIO_CHECK(bytes_transferred == 1);
|
559
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
560
|
-
|
561
|
-
s.reset(read_data, sizeof(read_data));
|
562
|
-
s.next_read_length(1);
|
563
|
-
memset(read_buf, 0, sizeof(read_buf));
|
564
|
-
bytes_transferred = asio::read(s, buffers,
|
565
|
-
asio::transfer_exactly(1));
|
566
|
-
ASIO_CHECK(bytes_transferred == 1);
|
567
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
568
|
-
|
569
|
-
s.reset(read_data, sizeof(read_data));
|
570
|
-
s.next_read_length(10);
|
571
|
-
memset(read_buf, 0, sizeof(read_buf));
|
572
|
-
bytes_transferred = asio::read(s, buffers,
|
573
|
-
asio::transfer_exactly(1));
|
574
|
-
ASIO_CHECK(bytes_transferred == 1);
|
575
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
576
|
-
|
577
|
-
s.reset(read_data, sizeof(read_data));
|
578
|
-
memset(read_buf, 0, sizeof(read_buf));
|
579
|
-
bytes_transferred = asio::read(s, buffers,
|
580
|
-
asio::transfer_exactly(10));
|
581
|
-
ASIO_CHECK(bytes_transferred == 10);
|
582
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
583
|
-
|
584
|
-
s.reset(read_data, sizeof(read_data));
|
585
|
-
s.next_read_length(1);
|
586
|
-
memset(read_buf, 0, sizeof(read_buf));
|
587
|
-
bytes_transferred = asio::read(s, buffers,
|
588
|
-
asio::transfer_exactly(10));
|
589
|
-
ASIO_CHECK(bytes_transferred == 10);
|
590
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
591
|
-
|
592
|
-
s.reset(read_data, sizeof(read_data));
|
593
|
-
s.next_read_length(10);
|
594
|
-
memset(read_buf, 0, sizeof(read_buf));
|
595
|
-
bytes_transferred = asio::read(s, buffers,
|
596
|
-
asio::transfer_exactly(10));
|
597
|
-
ASIO_CHECK(bytes_transferred == 10);
|
598
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
599
|
-
|
600
|
-
s.reset(read_data, sizeof(read_data));
|
601
|
-
memset(read_buf, 0, sizeof(read_buf));
|
602
|
-
bytes_transferred = asio::read(s, buffers,
|
603
|
-
asio::transfer_exactly(42));
|
604
|
-
ASIO_CHECK(bytes_transferred == 42);
|
605
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
606
|
-
|
607
|
-
s.reset(read_data, sizeof(read_data));
|
608
|
-
s.next_read_length(1);
|
609
|
-
memset(read_buf, 0, sizeof(read_buf));
|
610
|
-
bytes_transferred = asio::read(s, buffers,
|
611
|
-
asio::transfer_exactly(42));
|
612
|
-
ASIO_CHECK(bytes_transferred == 42);
|
613
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
614
|
-
|
615
|
-
s.reset(read_data, sizeof(read_data));
|
616
|
-
s.next_read_length(10);
|
617
|
-
memset(read_buf, 0, sizeof(read_buf));
|
618
|
-
bytes_transferred = asio::read(s, buffers,
|
619
|
-
asio::transfer_exactly(42));
|
620
|
-
ASIO_CHECK(bytes_transferred == 42);
|
621
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
622
|
-
|
623
|
-
s.reset(read_data, sizeof(read_data));
|
624
|
-
memset(read_buf, 0, sizeof(read_buf));
|
625
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
626
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
627
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
628
|
-
|
629
|
-
s.reset(read_data, sizeof(read_data));
|
630
|
-
s.next_read_length(1);
|
631
|
-
memset(read_buf, 0, sizeof(read_buf));
|
632
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
633
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
634
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
635
|
-
|
636
|
-
s.reset(read_data, sizeof(read_data));
|
637
|
-
s.next_read_length(10);
|
638
|
-
memset(read_buf, 0, sizeof(read_buf));
|
639
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
640
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
641
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
642
|
-
|
643
|
-
s.reset(read_data, sizeof(read_data));
|
644
|
-
memset(read_buf, 0, sizeof(read_buf));
|
645
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
646
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
647
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
648
|
-
|
649
|
-
s.reset(read_data, sizeof(read_data));
|
650
|
-
s.next_read_length(1);
|
651
|
-
memset(read_buf, 0, sizeof(read_buf));
|
652
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
653
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
654
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
655
|
-
|
656
|
-
s.reset(read_data, sizeof(read_data));
|
657
|
-
s.next_read_length(10);
|
658
|
-
memset(read_buf, 0, sizeof(read_buf));
|
659
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
660
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
661
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
662
|
-
}
|
663
|
-
|
664
|
-
void test_3_arg_vector_buffers_read()
|
665
|
-
{
|
666
|
-
asio::io_context ioc;
|
667
|
-
test_stream s(ioc);
|
668
|
-
char read_buf[sizeof(read_data)];
|
669
|
-
std::vector<asio::mutable_buffer> buffers;
|
670
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
671
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
672
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
673
|
-
|
674
|
-
s.reset(read_data, sizeof(read_data));
|
675
|
-
memset(read_buf, 0, sizeof(read_buf));
|
676
|
-
size_t bytes_transferred = asio::read(s, buffers,
|
677
|
-
asio::transfer_all());
|
678
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
679
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
680
|
-
|
681
|
-
s.reset(read_data, sizeof(read_data));
|
682
|
-
s.next_read_length(1);
|
683
|
-
memset(read_buf, 0, sizeof(read_buf));
|
684
|
-
bytes_transferred = asio::read(s, buffers,
|
685
|
-
asio::transfer_all());
|
686
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
687
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
688
|
-
|
689
|
-
s.reset(read_data, sizeof(read_data));
|
690
|
-
s.next_read_length(10);
|
691
|
-
memset(read_buf, 0, sizeof(read_buf));
|
692
|
-
bytes_transferred = asio::read(s, buffers,
|
693
|
-
asio::transfer_all());
|
694
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
695
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
696
|
-
|
697
|
-
s.reset(read_data, sizeof(read_data));
|
698
|
-
memset(read_buf, 0, sizeof(read_buf));
|
699
|
-
bytes_transferred = asio::read(s, buffers,
|
700
|
-
asio::transfer_at_least(1));
|
701
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
702
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
703
|
-
|
704
|
-
s.reset(read_data, sizeof(read_data));
|
705
|
-
s.next_read_length(1);
|
706
|
-
memset(read_buf, 0, sizeof(read_buf));
|
707
|
-
bytes_transferred = asio::read(s, buffers,
|
708
|
-
asio::transfer_at_least(1));
|
709
|
-
ASIO_CHECK(bytes_transferred == 1);
|
710
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
711
|
-
|
712
|
-
s.reset(read_data, sizeof(read_data));
|
713
|
-
s.next_read_length(10);
|
714
|
-
memset(read_buf, 0, sizeof(read_buf));
|
715
|
-
bytes_transferred = asio::read(s, buffers,
|
716
|
-
asio::transfer_at_least(1));
|
717
|
-
ASIO_CHECK(bytes_transferred == 10);
|
718
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
719
|
-
|
720
|
-
s.reset(read_data, sizeof(read_data));
|
721
|
-
memset(read_buf, 0, sizeof(read_buf));
|
722
|
-
bytes_transferred = asio::read(s, buffers,
|
723
|
-
asio::transfer_at_least(10));
|
724
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
725
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
726
|
-
|
727
|
-
s.reset(read_data, sizeof(read_data));
|
728
|
-
s.next_read_length(1);
|
729
|
-
memset(read_buf, 0, sizeof(read_buf));
|
730
|
-
bytes_transferred = asio::read(s, buffers,
|
731
|
-
asio::transfer_at_least(10));
|
732
|
-
ASIO_CHECK(bytes_transferred == 10);
|
733
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
734
|
-
|
735
|
-
s.reset(read_data, sizeof(read_data));
|
736
|
-
s.next_read_length(10);
|
737
|
-
memset(read_buf, 0, sizeof(read_buf));
|
738
|
-
bytes_transferred = asio::read(s, buffers,
|
739
|
-
asio::transfer_at_least(10));
|
740
|
-
ASIO_CHECK(bytes_transferred == 10);
|
741
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
742
|
-
|
743
|
-
s.reset(read_data, sizeof(read_data));
|
744
|
-
memset(read_buf, 0, sizeof(read_buf));
|
745
|
-
bytes_transferred = asio::read(s, buffers,
|
746
|
-
asio::transfer_at_least(42));
|
747
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
748
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
749
|
-
|
750
|
-
s.reset(read_data, sizeof(read_data));
|
751
|
-
s.next_read_length(1);
|
752
|
-
memset(read_buf, 0, sizeof(read_buf));
|
753
|
-
bytes_transferred = asio::read(s, buffers,
|
754
|
-
asio::transfer_at_least(42));
|
755
|
-
ASIO_CHECK(bytes_transferred == 42);
|
756
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
757
|
-
|
758
|
-
s.reset(read_data, sizeof(read_data));
|
759
|
-
s.next_read_length(10);
|
760
|
-
memset(read_buf, 0, sizeof(read_buf));
|
761
|
-
bytes_transferred = asio::read(s, buffers,
|
762
|
-
asio::transfer_at_least(42));
|
763
|
-
ASIO_CHECK(bytes_transferred == 50);
|
764
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
765
|
-
|
766
|
-
s.reset(read_data, sizeof(read_data));
|
767
|
-
memset(read_buf, 0, sizeof(read_buf));
|
768
|
-
bytes_transferred = asio::read(s, buffers,
|
769
|
-
asio::transfer_exactly(1));
|
770
|
-
ASIO_CHECK(bytes_transferred == 1);
|
771
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
772
|
-
|
773
|
-
s.reset(read_data, sizeof(read_data));
|
774
|
-
s.next_read_length(1);
|
775
|
-
memset(read_buf, 0, sizeof(read_buf));
|
776
|
-
bytes_transferred = asio::read(s, buffers,
|
777
|
-
asio::transfer_exactly(1));
|
778
|
-
ASIO_CHECK(bytes_transferred == 1);
|
779
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
780
|
-
|
781
|
-
s.reset(read_data, sizeof(read_data));
|
782
|
-
s.next_read_length(10);
|
783
|
-
memset(read_buf, 0, sizeof(read_buf));
|
784
|
-
bytes_transferred = asio::read(s, buffers,
|
785
|
-
asio::transfer_exactly(1));
|
786
|
-
ASIO_CHECK(bytes_transferred == 1);
|
787
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
788
|
-
|
789
|
-
s.reset(read_data, sizeof(read_data));
|
790
|
-
memset(read_buf, 0, sizeof(read_buf));
|
791
|
-
bytes_transferred = asio::read(s, buffers,
|
792
|
-
asio::transfer_exactly(10));
|
793
|
-
ASIO_CHECK(bytes_transferred == 10);
|
794
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
795
|
-
|
796
|
-
s.reset(read_data, sizeof(read_data));
|
797
|
-
s.next_read_length(1);
|
798
|
-
memset(read_buf, 0, sizeof(read_buf));
|
799
|
-
bytes_transferred = asio::read(s, buffers,
|
800
|
-
asio::transfer_exactly(10));
|
801
|
-
ASIO_CHECK(bytes_transferred == 10);
|
802
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
803
|
-
|
804
|
-
s.reset(read_data, sizeof(read_data));
|
805
|
-
s.next_read_length(10);
|
806
|
-
memset(read_buf, 0, sizeof(read_buf));
|
807
|
-
bytes_transferred = asio::read(s, buffers,
|
808
|
-
asio::transfer_exactly(10));
|
809
|
-
ASIO_CHECK(bytes_transferred == 10);
|
810
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
811
|
-
|
812
|
-
s.reset(read_data, sizeof(read_data));
|
813
|
-
memset(read_buf, 0, sizeof(read_buf));
|
814
|
-
bytes_transferred = asio::read(s, buffers,
|
815
|
-
asio::transfer_exactly(42));
|
816
|
-
ASIO_CHECK(bytes_transferred == 42);
|
817
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
818
|
-
|
819
|
-
s.reset(read_data, sizeof(read_data));
|
820
|
-
s.next_read_length(1);
|
821
|
-
memset(read_buf, 0, sizeof(read_buf));
|
822
|
-
bytes_transferred = asio::read(s, buffers,
|
823
|
-
asio::transfer_exactly(42));
|
824
|
-
ASIO_CHECK(bytes_transferred == 42);
|
825
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
826
|
-
|
827
|
-
s.reset(read_data, sizeof(read_data));
|
828
|
-
s.next_read_length(10);
|
829
|
-
memset(read_buf, 0, sizeof(read_buf));
|
830
|
-
bytes_transferred = asio::read(s, buffers,
|
831
|
-
asio::transfer_exactly(42));
|
832
|
-
ASIO_CHECK(bytes_transferred == 42);
|
833
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
834
|
-
|
835
|
-
s.reset(read_data, sizeof(read_data));
|
836
|
-
memset(read_buf, 0, sizeof(read_buf));
|
837
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
838
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
839
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
840
|
-
|
841
|
-
s.reset(read_data, sizeof(read_data));
|
842
|
-
s.next_read_length(1);
|
843
|
-
memset(read_buf, 0, sizeof(read_buf));
|
844
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
845
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
846
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
847
|
-
|
848
|
-
s.reset(read_data, sizeof(read_data));
|
849
|
-
s.next_read_length(10);
|
850
|
-
memset(read_buf, 0, sizeof(read_buf));
|
851
|
-
bytes_transferred = asio::read(s, buffers, old_style_transfer_all);
|
852
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
853
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
854
|
-
|
855
|
-
s.reset(read_data, sizeof(read_data));
|
856
|
-
memset(read_buf, 0, sizeof(read_buf));
|
857
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
858
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
859
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
860
|
-
|
861
|
-
s.reset(read_data, sizeof(read_data));
|
862
|
-
s.next_read_length(1);
|
863
|
-
memset(read_buf, 0, sizeof(read_buf));
|
864
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
865
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
866
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
867
|
-
|
868
|
-
s.reset(read_data, sizeof(read_data));
|
869
|
-
s.next_read_length(10);
|
870
|
-
memset(read_buf, 0, sizeof(read_buf));
|
871
|
-
bytes_transferred = asio::read(s, buffers, short_transfer());
|
872
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
873
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
874
|
-
}
|
875
|
-
|
876
|
-
void test_3_arg_dynamic_string_read()
|
877
|
-
{
|
878
|
-
asio::io_context ioc;
|
879
|
-
test_stream s(ioc);
|
880
|
-
std::string data;
|
881
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
882
|
-
std::string::allocator_type> sb
|
883
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
884
|
-
|
885
|
-
s.reset(read_data, sizeof(read_data));
|
886
|
-
sb.consume(sb.size());
|
887
|
-
size_t bytes_transferred = asio::read(s, sb,
|
888
|
-
asio::transfer_all());
|
889
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
890
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
891
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
892
|
-
|
893
|
-
s.reset(read_data, sizeof(read_data));
|
894
|
-
s.next_read_length(1);
|
895
|
-
sb.consume(sb.size());
|
896
|
-
bytes_transferred = asio::read(s, sb,
|
897
|
-
asio::transfer_all());
|
898
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
899
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
900
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
901
|
-
|
902
|
-
s.reset(read_data, sizeof(read_data));
|
903
|
-
s.next_read_length(10);
|
904
|
-
sb.consume(sb.size());
|
905
|
-
bytes_transferred = asio::read(s, sb,
|
906
|
-
asio::transfer_all());
|
907
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
908
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
909
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
910
|
-
|
911
|
-
s.reset(read_data, sizeof(read_data));
|
912
|
-
sb.consume(sb.size());
|
913
|
-
bytes_transferred = asio::read(s, sb,
|
914
|
-
asio::transfer_at_least(1));
|
915
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
916
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
917
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
918
|
-
|
919
|
-
s.reset(read_data, sizeof(read_data));
|
920
|
-
s.next_read_length(1);
|
921
|
-
sb.consume(sb.size());
|
922
|
-
bytes_transferred = asio::read(s, sb,
|
923
|
-
asio::transfer_at_least(1));
|
924
|
-
ASIO_CHECK(bytes_transferred == 1);
|
925
|
-
ASIO_CHECK(sb.size() == 1);
|
926
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
927
|
-
|
928
|
-
s.reset(read_data, sizeof(read_data));
|
929
|
-
s.next_read_length(10);
|
930
|
-
sb.consume(sb.size());
|
931
|
-
bytes_transferred = asio::read(s, sb,
|
932
|
-
asio::transfer_at_least(1));
|
933
|
-
ASIO_CHECK(bytes_transferred == 10);
|
934
|
-
ASIO_CHECK(sb.size() == 10);
|
935
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
936
|
-
|
937
|
-
s.reset(read_data, sizeof(read_data));
|
938
|
-
sb.consume(sb.size());
|
939
|
-
bytes_transferred = asio::read(s, sb,
|
940
|
-
asio::transfer_at_least(10));
|
941
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
942
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
943
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
944
|
-
|
945
|
-
s.reset(read_data, sizeof(read_data));
|
946
|
-
s.next_read_length(1);
|
947
|
-
sb.consume(sb.size());
|
948
|
-
bytes_transferred = asio::read(s, sb,
|
949
|
-
asio::transfer_at_least(10));
|
950
|
-
ASIO_CHECK(bytes_transferred == 10);
|
951
|
-
ASIO_CHECK(sb.size() == 10);
|
952
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
953
|
-
|
954
|
-
s.reset(read_data, sizeof(read_data));
|
955
|
-
s.next_read_length(10);
|
956
|
-
sb.consume(sb.size());
|
957
|
-
bytes_transferred = asio::read(s, sb,
|
958
|
-
asio::transfer_at_least(10));
|
959
|
-
ASIO_CHECK(bytes_transferred == 10);
|
960
|
-
ASIO_CHECK(sb.size() == 10);
|
961
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
962
|
-
|
963
|
-
s.reset(read_data, sizeof(read_data));
|
964
|
-
sb.consume(sb.size());
|
965
|
-
bytes_transferred = asio::read(s, sb,
|
966
|
-
asio::transfer_at_least(42));
|
967
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
968
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
969
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
970
|
-
|
971
|
-
s.reset(read_data, sizeof(read_data));
|
972
|
-
s.next_read_length(1);
|
973
|
-
sb.consume(sb.size());
|
974
|
-
bytes_transferred = asio::read(s, sb,
|
975
|
-
asio::transfer_at_least(42));
|
976
|
-
ASIO_CHECK(bytes_transferred == 42);
|
977
|
-
ASIO_CHECK(sb.size() == 42);
|
978
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
979
|
-
|
980
|
-
s.reset(read_data, sizeof(read_data));
|
981
|
-
s.next_read_length(10);
|
982
|
-
sb.consume(sb.size());
|
983
|
-
bytes_transferred = asio::read(s, sb,
|
984
|
-
asio::transfer_at_least(42));
|
985
|
-
ASIO_CHECK(bytes_transferred == 50);
|
986
|
-
ASIO_CHECK(sb.size() == 50);
|
987
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 50));
|
988
|
-
|
989
|
-
s.reset(read_data, sizeof(read_data));
|
990
|
-
sb.consume(sb.size());
|
991
|
-
bytes_transferred = asio::read(s, sb,
|
992
|
-
asio::transfer_exactly(1));
|
993
|
-
ASIO_CHECK(bytes_transferred == 1);
|
994
|
-
ASIO_CHECK(sb.size() == 1);
|
995
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
996
|
-
|
997
|
-
s.reset(read_data, sizeof(read_data));
|
998
|
-
s.next_read_length(1);
|
999
|
-
sb.consume(sb.size());
|
1000
|
-
bytes_transferred = asio::read(s, sb,
|
1001
|
-
asio::transfer_exactly(1));
|
1002
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1003
|
-
ASIO_CHECK(sb.size() == 1);
|
1004
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
1005
|
-
|
1006
|
-
s.reset(read_data, sizeof(read_data));
|
1007
|
-
s.next_read_length(10);
|
1008
|
-
sb.consume(sb.size());
|
1009
|
-
bytes_transferred = asio::read(s, sb,
|
1010
|
-
asio::transfer_exactly(1));
|
1011
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1012
|
-
ASIO_CHECK(sb.size() == 1);
|
1013
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
1014
|
-
|
1015
|
-
s.reset(read_data, sizeof(read_data));
|
1016
|
-
sb.consume(sb.size());
|
1017
|
-
bytes_transferred = asio::read(s, sb,
|
1018
|
-
asio::transfer_exactly(10));
|
1019
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1020
|
-
ASIO_CHECK(sb.size() == 10);
|
1021
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1022
|
-
|
1023
|
-
s.reset(read_data, sizeof(read_data));
|
1024
|
-
s.next_read_length(1);
|
1025
|
-
sb.consume(sb.size());
|
1026
|
-
bytes_transferred = asio::read(s, sb,
|
1027
|
-
asio::transfer_exactly(10));
|
1028
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1029
|
-
ASIO_CHECK(sb.size() == 10);
|
1030
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1031
|
-
|
1032
|
-
s.reset(read_data, sizeof(read_data));
|
1033
|
-
s.next_read_length(10);
|
1034
|
-
sb.consume(sb.size());
|
1035
|
-
bytes_transferred = asio::read(s, sb,
|
1036
|
-
asio::transfer_exactly(10));
|
1037
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1038
|
-
ASIO_CHECK(sb.size() == 10);
|
1039
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1040
|
-
|
1041
|
-
s.reset(read_data, sizeof(read_data));
|
1042
|
-
sb.consume(sb.size());
|
1043
|
-
bytes_transferred = asio::read(s, sb,
|
1044
|
-
asio::transfer_exactly(42));
|
1045
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1046
|
-
ASIO_CHECK(sb.size() == 42);
|
1047
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
1048
|
-
|
1049
|
-
s.reset(read_data, sizeof(read_data));
|
1050
|
-
s.next_read_length(1);
|
1051
|
-
sb.consume(sb.size());
|
1052
|
-
bytes_transferred = asio::read(s, sb,
|
1053
|
-
asio::transfer_exactly(42));
|
1054
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1055
|
-
ASIO_CHECK(sb.size() == 42);
|
1056
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
1057
|
-
|
1058
|
-
s.reset(read_data, sizeof(read_data));
|
1059
|
-
s.next_read_length(10);
|
1060
|
-
sb.consume(sb.size());
|
1061
|
-
bytes_transferred = asio::read(s, sb,
|
1062
|
-
asio::transfer_exactly(42));
|
1063
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1064
|
-
ASIO_CHECK(sb.size() == 42);
|
1065
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
1066
|
-
|
1067
|
-
s.reset(read_data, sizeof(read_data));
|
1068
|
-
sb.consume(sb.size());
|
1069
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1070
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1071
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1072
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1073
|
-
|
1074
|
-
s.reset(read_data, sizeof(read_data));
|
1075
|
-
s.next_read_length(1);
|
1076
|
-
sb.consume(sb.size());
|
1077
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1078
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1079
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1080
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1081
|
-
|
1082
|
-
s.reset(read_data, sizeof(read_data));
|
1083
|
-
s.next_read_length(10);
|
1084
|
-
sb.consume(sb.size());
|
1085
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1086
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1087
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1088
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1089
|
-
|
1090
|
-
s.reset(read_data, sizeof(read_data));
|
1091
|
-
sb.consume(sb.size());
|
1092
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1093
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1094
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1095
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1096
|
-
|
1097
|
-
s.reset(read_data, sizeof(read_data));
|
1098
|
-
s.next_read_length(1);
|
1099
|
-
sb.consume(sb.size());
|
1100
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1101
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1102
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1103
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1104
|
-
|
1105
|
-
s.reset(read_data, sizeof(read_data));
|
1106
|
-
s.next_read_length(10);
|
1107
|
-
sb.consume(sb.size());
|
1108
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1109
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1110
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1111
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1112
|
-
}
|
1113
|
-
|
1114
|
-
void test_3_arg_streambuf_read()
|
1115
|
-
{
|
1116
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
1117
|
-
asio::io_context ioc;
|
1118
|
-
test_stream s(ioc);
|
1119
|
-
asio::streambuf sb(sizeof(read_data));
|
1120
|
-
|
1121
|
-
s.reset(read_data, sizeof(read_data));
|
1122
|
-
sb.consume(sb.size());
|
1123
|
-
size_t bytes_transferred = asio::read(s, sb,
|
1124
|
-
asio::transfer_all());
|
1125
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1126
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1127
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1128
|
-
|
1129
|
-
s.reset(read_data, sizeof(read_data));
|
1130
|
-
s.next_read_length(1);
|
1131
|
-
sb.consume(sb.size());
|
1132
|
-
bytes_transferred = asio::read(s, sb,
|
1133
|
-
asio::transfer_all());
|
1134
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1135
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1136
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1137
|
-
|
1138
|
-
s.reset(read_data, sizeof(read_data));
|
1139
|
-
s.next_read_length(10);
|
1140
|
-
sb.consume(sb.size());
|
1141
|
-
bytes_transferred = asio::read(s, sb,
|
1142
|
-
asio::transfer_all());
|
1143
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1144
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1145
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1146
|
-
|
1147
|
-
s.reset(read_data, sizeof(read_data));
|
1148
|
-
sb.consume(sb.size());
|
1149
|
-
bytes_transferred = asio::read(s, sb,
|
1150
|
-
asio::transfer_at_least(1));
|
1151
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1152
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1153
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1154
|
-
|
1155
|
-
s.reset(read_data, sizeof(read_data));
|
1156
|
-
s.next_read_length(1);
|
1157
|
-
sb.consume(sb.size());
|
1158
|
-
bytes_transferred = asio::read(s, sb,
|
1159
|
-
asio::transfer_at_least(1));
|
1160
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1161
|
-
ASIO_CHECK(sb.size() == 1);
|
1162
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
1163
|
-
|
1164
|
-
s.reset(read_data, sizeof(read_data));
|
1165
|
-
s.next_read_length(10);
|
1166
|
-
sb.consume(sb.size());
|
1167
|
-
bytes_transferred = asio::read(s, sb,
|
1168
|
-
asio::transfer_at_least(1));
|
1169
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1170
|
-
ASIO_CHECK(sb.size() == 10);
|
1171
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1172
|
-
|
1173
|
-
s.reset(read_data, sizeof(read_data));
|
1174
|
-
sb.consume(sb.size());
|
1175
|
-
bytes_transferred = asio::read(s, sb,
|
1176
|
-
asio::transfer_at_least(10));
|
1177
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1178
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1179
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1180
|
-
|
1181
|
-
s.reset(read_data, sizeof(read_data));
|
1182
|
-
s.next_read_length(1);
|
1183
|
-
sb.consume(sb.size());
|
1184
|
-
bytes_transferred = asio::read(s, sb,
|
1185
|
-
asio::transfer_at_least(10));
|
1186
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1187
|
-
ASIO_CHECK(sb.size() == 10);
|
1188
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1189
|
-
|
1190
|
-
s.reset(read_data, sizeof(read_data));
|
1191
|
-
s.next_read_length(10);
|
1192
|
-
sb.consume(sb.size());
|
1193
|
-
bytes_transferred = asio::read(s, sb,
|
1194
|
-
asio::transfer_at_least(10));
|
1195
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1196
|
-
ASIO_CHECK(sb.size() == 10);
|
1197
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1198
|
-
|
1199
|
-
s.reset(read_data, sizeof(read_data));
|
1200
|
-
sb.consume(sb.size());
|
1201
|
-
bytes_transferred = asio::read(s, sb,
|
1202
|
-
asio::transfer_at_least(42));
|
1203
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1204
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1205
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1206
|
-
|
1207
|
-
s.reset(read_data, sizeof(read_data));
|
1208
|
-
s.next_read_length(1);
|
1209
|
-
sb.consume(sb.size());
|
1210
|
-
bytes_transferred = asio::read(s, sb,
|
1211
|
-
asio::transfer_at_least(42));
|
1212
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1213
|
-
ASIO_CHECK(sb.size() == 42);
|
1214
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
1215
|
-
|
1216
|
-
s.reset(read_data, sizeof(read_data));
|
1217
|
-
s.next_read_length(10);
|
1218
|
-
sb.consume(sb.size());
|
1219
|
-
bytes_transferred = asio::read(s, sb,
|
1220
|
-
asio::transfer_at_least(42));
|
1221
|
-
ASIO_CHECK(bytes_transferred == 50);
|
1222
|
-
ASIO_CHECK(sb.size() == 50);
|
1223
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 50));
|
1224
|
-
|
1225
|
-
s.reset(read_data, sizeof(read_data));
|
1226
|
-
sb.consume(sb.size());
|
1227
|
-
bytes_transferred = asio::read(s, sb,
|
1228
|
-
asio::transfer_exactly(1));
|
1229
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1230
|
-
ASIO_CHECK(sb.size() == 1);
|
1231
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
1232
|
-
|
1233
|
-
s.reset(read_data, sizeof(read_data));
|
1234
|
-
s.next_read_length(1);
|
1235
|
-
sb.consume(sb.size());
|
1236
|
-
bytes_transferred = asio::read(s, sb,
|
1237
|
-
asio::transfer_exactly(1));
|
1238
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1239
|
-
ASIO_CHECK(sb.size() == 1);
|
1240
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
1241
|
-
|
1242
|
-
s.reset(read_data, sizeof(read_data));
|
1243
|
-
s.next_read_length(10);
|
1244
|
-
sb.consume(sb.size());
|
1245
|
-
bytes_transferred = asio::read(s, sb,
|
1246
|
-
asio::transfer_exactly(1));
|
1247
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1248
|
-
ASIO_CHECK(sb.size() == 1);
|
1249
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
1250
|
-
|
1251
|
-
s.reset(read_data, sizeof(read_data));
|
1252
|
-
sb.consume(sb.size());
|
1253
|
-
bytes_transferred = asio::read(s, sb,
|
1254
|
-
asio::transfer_exactly(10));
|
1255
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1256
|
-
ASIO_CHECK(sb.size() == 10);
|
1257
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1258
|
-
|
1259
|
-
s.reset(read_data, sizeof(read_data));
|
1260
|
-
s.next_read_length(1);
|
1261
|
-
sb.consume(sb.size());
|
1262
|
-
bytes_transferred = asio::read(s, sb,
|
1263
|
-
asio::transfer_exactly(10));
|
1264
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1265
|
-
ASIO_CHECK(sb.size() == 10);
|
1266
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1267
|
-
|
1268
|
-
s.reset(read_data, sizeof(read_data));
|
1269
|
-
s.next_read_length(10);
|
1270
|
-
sb.consume(sb.size());
|
1271
|
-
bytes_transferred = asio::read(s, sb,
|
1272
|
-
asio::transfer_exactly(10));
|
1273
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1274
|
-
ASIO_CHECK(sb.size() == 10);
|
1275
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
1276
|
-
|
1277
|
-
s.reset(read_data, sizeof(read_data));
|
1278
|
-
sb.consume(sb.size());
|
1279
|
-
bytes_transferred = asio::read(s, sb,
|
1280
|
-
asio::transfer_exactly(42));
|
1281
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1282
|
-
ASIO_CHECK(sb.size() == 42);
|
1283
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
1284
|
-
|
1285
|
-
s.reset(read_data, sizeof(read_data));
|
1286
|
-
s.next_read_length(1);
|
1287
|
-
sb.consume(sb.size());
|
1288
|
-
bytes_transferred = asio::read(s, sb,
|
1289
|
-
asio::transfer_exactly(42));
|
1290
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1291
|
-
ASIO_CHECK(sb.size() == 42);
|
1292
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
1293
|
-
|
1294
|
-
s.reset(read_data, sizeof(read_data));
|
1295
|
-
s.next_read_length(10);
|
1296
|
-
sb.consume(sb.size());
|
1297
|
-
bytes_transferred = asio::read(s, sb,
|
1298
|
-
asio::transfer_exactly(42));
|
1299
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1300
|
-
ASIO_CHECK(sb.size() == 42);
|
1301
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
1302
|
-
|
1303
|
-
s.reset(read_data, sizeof(read_data));
|
1304
|
-
sb.consume(sb.size());
|
1305
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1306
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1307
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1308
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1309
|
-
|
1310
|
-
s.reset(read_data, sizeof(read_data));
|
1311
|
-
s.next_read_length(1);
|
1312
|
-
sb.consume(sb.size());
|
1313
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1314
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1315
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1316
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1317
|
-
|
1318
|
-
s.reset(read_data, sizeof(read_data));
|
1319
|
-
s.next_read_length(10);
|
1320
|
-
sb.consume(sb.size());
|
1321
|
-
bytes_transferred = asio::read(s, sb, old_style_transfer_all);
|
1322
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1323
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1324
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1325
|
-
|
1326
|
-
s.reset(read_data, sizeof(read_data));
|
1327
|
-
sb.consume(sb.size());
|
1328
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1329
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1330
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1331
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1332
|
-
|
1333
|
-
s.reset(read_data, sizeof(read_data));
|
1334
|
-
s.next_read_length(1);
|
1335
|
-
sb.consume(sb.size());
|
1336
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1337
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1338
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1339
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1340
|
-
|
1341
|
-
s.reset(read_data, sizeof(read_data));
|
1342
|
-
s.next_read_length(10);
|
1343
|
-
sb.consume(sb.size());
|
1344
|
-
bytes_transferred = asio::read(s, sb, short_transfer());
|
1345
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1346
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1347
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
1348
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
1349
|
-
}
|
1350
|
-
|
1351
|
-
void test_4_arg_mutable_buffer_read()
|
1352
|
-
{
|
1353
|
-
asio::io_context ioc;
|
1354
|
-
test_stream s(ioc);
|
1355
|
-
char read_buf[sizeof(read_data)];
|
1356
|
-
asio::mutable_buffer buffers
|
1357
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
1358
|
-
|
1359
|
-
s.reset(read_data, sizeof(read_data));
|
1360
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1361
|
-
asio::error_code error;
|
1362
|
-
size_t bytes_transferred = asio::read(s, buffers,
|
1363
|
-
asio::transfer_all(), error);
|
1364
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1365
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1366
|
-
ASIO_CHECK(!error);
|
1367
|
-
|
1368
|
-
s.reset(read_data, sizeof(read_data));
|
1369
|
-
s.next_read_length(1);
|
1370
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1371
|
-
error = asio::error_code();
|
1372
|
-
bytes_transferred = asio::read(s, buffers,
|
1373
|
-
asio::transfer_all(), error);
|
1374
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1375
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1376
|
-
ASIO_CHECK(!error);
|
1377
|
-
|
1378
|
-
s.reset(read_data, sizeof(read_data));
|
1379
|
-
s.next_read_length(10);
|
1380
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1381
|
-
error = asio::error_code();
|
1382
|
-
bytes_transferred = asio::read(s, buffers,
|
1383
|
-
asio::transfer_all(), error);
|
1384
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1385
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1386
|
-
ASIO_CHECK(!error);
|
1387
|
-
|
1388
|
-
s.reset(read_data, sizeof(read_data));
|
1389
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1390
|
-
error = asio::error_code();
|
1391
|
-
bytes_transferred = asio::read(s, buffers,
|
1392
|
-
asio::transfer_at_least(1), error);
|
1393
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1394
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1395
|
-
ASIO_CHECK(!error);
|
1396
|
-
|
1397
|
-
s.reset(read_data, sizeof(read_data));
|
1398
|
-
s.next_read_length(1);
|
1399
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1400
|
-
error = asio::error_code();
|
1401
|
-
bytes_transferred = asio::read(s, buffers,
|
1402
|
-
asio::transfer_at_least(1), error);
|
1403
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1404
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1405
|
-
ASIO_CHECK(!error);
|
1406
|
-
|
1407
|
-
s.reset(read_data, sizeof(read_data));
|
1408
|
-
s.next_read_length(10);
|
1409
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1410
|
-
error = asio::error_code();
|
1411
|
-
bytes_transferred = asio::read(s, buffers,
|
1412
|
-
asio::transfer_at_least(1), error);
|
1413
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1414
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1415
|
-
ASIO_CHECK(!error);
|
1416
|
-
|
1417
|
-
s.reset(read_data, sizeof(read_data));
|
1418
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1419
|
-
error = asio::error_code();
|
1420
|
-
bytes_transferred = asio::read(s, buffers,
|
1421
|
-
asio::transfer_at_least(10), error);
|
1422
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1423
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1424
|
-
ASIO_CHECK(!error);
|
1425
|
-
|
1426
|
-
s.reset(read_data, sizeof(read_data));
|
1427
|
-
s.next_read_length(1);
|
1428
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1429
|
-
error = asio::error_code();
|
1430
|
-
bytes_transferred = asio::read(s, buffers,
|
1431
|
-
asio::transfer_at_least(10), error);
|
1432
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1433
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1434
|
-
ASIO_CHECK(!error);
|
1435
|
-
|
1436
|
-
s.reset(read_data, sizeof(read_data));
|
1437
|
-
s.next_read_length(10);
|
1438
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1439
|
-
error = asio::error_code();
|
1440
|
-
bytes_transferred = asio::read(s, buffers,
|
1441
|
-
asio::transfer_at_least(10), error);
|
1442
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1443
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1444
|
-
ASIO_CHECK(!error);
|
1445
|
-
|
1446
|
-
s.reset(read_data, sizeof(read_data));
|
1447
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1448
|
-
error = asio::error_code();
|
1449
|
-
bytes_transferred = asio::read(s, buffers,
|
1450
|
-
asio::transfer_at_least(42), error);
|
1451
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1452
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1453
|
-
ASIO_CHECK(!error);
|
1454
|
-
|
1455
|
-
s.reset(read_data, sizeof(read_data));
|
1456
|
-
s.next_read_length(1);
|
1457
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1458
|
-
error = asio::error_code();
|
1459
|
-
bytes_transferred = asio::read(s, buffers,
|
1460
|
-
asio::transfer_at_least(42), error);
|
1461
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1462
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1463
|
-
ASIO_CHECK(!error);
|
1464
|
-
|
1465
|
-
s.reset(read_data, sizeof(read_data));
|
1466
|
-
s.next_read_length(10);
|
1467
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1468
|
-
error = asio::error_code();
|
1469
|
-
bytes_transferred = asio::read(s, buffers,
|
1470
|
-
asio::transfer_at_least(42), error);
|
1471
|
-
ASIO_CHECK(bytes_transferred == 50);
|
1472
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
1473
|
-
ASIO_CHECK(!error);
|
1474
|
-
|
1475
|
-
s.reset(read_data, sizeof(read_data));
|
1476
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1477
|
-
error = asio::error_code();
|
1478
|
-
bytes_transferred = asio::read(s, buffers,
|
1479
|
-
asio::transfer_exactly(1), error);
|
1480
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1481
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1482
|
-
ASIO_CHECK(!error);
|
1483
|
-
|
1484
|
-
s.reset(read_data, sizeof(read_data));
|
1485
|
-
s.next_read_length(1);
|
1486
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1487
|
-
error = asio::error_code();
|
1488
|
-
bytes_transferred = asio::read(s, buffers,
|
1489
|
-
asio::transfer_exactly(1), error);
|
1490
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1491
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1492
|
-
ASIO_CHECK(!error);
|
1493
|
-
|
1494
|
-
s.reset(read_data, sizeof(read_data));
|
1495
|
-
s.next_read_length(10);
|
1496
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1497
|
-
error = asio::error_code();
|
1498
|
-
bytes_transferred = asio::read(s, buffers,
|
1499
|
-
asio::transfer_exactly(1), error);
|
1500
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1501
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1502
|
-
ASIO_CHECK(!error);
|
1503
|
-
|
1504
|
-
s.reset(read_data, sizeof(read_data));
|
1505
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1506
|
-
error = asio::error_code();
|
1507
|
-
bytes_transferred = asio::read(s, buffers,
|
1508
|
-
asio::transfer_exactly(10), error);
|
1509
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1510
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1511
|
-
ASIO_CHECK(!error);
|
1512
|
-
|
1513
|
-
s.reset(read_data, sizeof(read_data));
|
1514
|
-
s.next_read_length(1);
|
1515
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1516
|
-
error = asio::error_code();
|
1517
|
-
bytes_transferred = asio::read(s, buffers,
|
1518
|
-
asio::transfer_exactly(10), error);
|
1519
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1520
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1521
|
-
ASIO_CHECK(!error);
|
1522
|
-
|
1523
|
-
s.reset(read_data, sizeof(read_data));
|
1524
|
-
s.next_read_length(10);
|
1525
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1526
|
-
error = asio::error_code();
|
1527
|
-
bytes_transferred = asio::read(s, buffers,
|
1528
|
-
asio::transfer_exactly(10), error);
|
1529
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1530
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1531
|
-
ASIO_CHECK(!error);
|
1532
|
-
|
1533
|
-
s.reset(read_data, sizeof(read_data));
|
1534
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1535
|
-
error = asio::error_code();
|
1536
|
-
bytes_transferred = asio::read(s, buffers,
|
1537
|
-
asio::transfer_exactly(42), error);
|
1538
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1539
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1540
|
-
ASIO_CHECK(!error);
|
1541
|
-
|
1542
|
-
s.reset(read_data, sizeof(read_data));
|
1543
|
-
s.next_read_length(1);
|
1544
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1545
|
-
error = asio::error_code();
|
1546
|
-
bytes_transferred = asio::read(s, buffers,
|
1547
|
-
asio::transfer_exactly(42), error);
|
1548
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1549
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1550
|
-
ASIO_CHECK(!error);
|
1551
|
-
|
1552
|
-
s.reset(read_data, sizeof(read_data));
|
1553
|
-
s.next_read_length(10);
|
1554
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1555
|
-
error = asio::error_code();
|
1556
|
-
bytes_transferred = asio::read(s, buffers,
|
1557
|
-
asio::transfer_exactly(42), error);
|
1558
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1559
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1560
|
-
ASIO_CHECK(!error);
|
1561
|
-
|
1562
|
-
s.reset(read_data, sizeof(read_data));
|
1563
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1564
|
-
bytes_transferred = asio::read(s, buffers,
|
1565
|
-
old_style_transfer_all, error);
|
1566
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1567
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1568
|
-
ASIO_CHECK(!error);
|
1569
|
-
|
1570
|
-
s.reset(read_data, sizeof(read_data));
|
1571
|
-
s.next_read_length(1);
|
1572
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1573
|
-
error = asio::error_code();
|
1574
|
-
bytes_transferred = asio::read(s, buffers,
|
1575
|
-
old_style_transfer_all, error);
|
1576
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1577
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1578
|
-
ASIO_CHECK(!error);
|
1579
|
-
|
1580
|
-
s.reset(read_data, sizeof(read_data));
|
1581
|
-
s.next_read_length(10);
|
1582
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1583
|
-
error = asio::error_code();
|
1584
|
-
bytes_transferred = asio::read(s, buffers,
|
1585
|
-
old_style_transfer_all, error);
|
1586
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1587
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1588
|
-
ASIO_CHECK(!error);
|
1589
|
-
|
1590
|
-
s.reset(read_data, sizeof(read_data));
|
1591
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1592
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1593
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1594
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1595
|
-
ASIO_CHECK(!error);
|
1596
|
-
|
1597
|
-
s.reset(read_data, sizeof(read_data));
|
1598
|
-
s.next_read_length(1);
|
1599
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1600
|
-
error = asio::error_code();
|
1601
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1602
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1603
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1604
|
-
ASIO_CHECK(!error);
|
1605
|
-
|
1606
|
-
s.reset(read_data, sizeof(read_data));
|
1607
|
-
s.next_read_length(10);
|
1608
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1609
|
-
error = asio::error_code();
|
1610
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1611
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1612
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1613
|
-
ASIO_CHECK(!error);
|
1614
|
-
}
|
1615
|
-
|
1616
|
-
void test_4_arg_vector_buffers_read()
|
1617
|
-
{
|
1618
|
-
asio::io_context ioc;
|
1619
|
-
test_stream s(ioc);
|
1620
|
-
char read_buf[sizeof(read_data)];
|
1621
|
-
std::vector<asio::mutable_buffer> buffers;
|
1622
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
1623
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
1624
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
1625
|
-
|
1626
|
-
s.reset(read_data, sizeof(read_data));
|
1627
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1628
|
-
asio::error_code error;
|
1629
|
-
size_t bytes_transferred = asio::read(s, buffers,
|
1630
|
-
asio::transfer_all(), error);
|
1631
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1632
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1633
|
-
ASIO_CHECK(!error);
|
1634
|
-
|
1635
|
-
s.reset(read_data, sizeof(read_data));
|
1636
|
-
s.next_read_length(1);
|
1637
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1638
|
-
error = asio::error_code();
|
1639
|
-
bytes_transferred = asio::read(s, buffers,
|
1640
|
-
asio::transfer_all(), error);
|
1641
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1642
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1643
|
-
ASIO_CHECK(!error);
|
1644
|
-
|
1645
|
-
s.reset(read_data, sizeof(read_data));
|
1646
|
-
s.next_read_length(10);
|
1647
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1648
|
-
error = asio::error_code();
|
1649
|
-
bytes_transferred = asio::read(s, buffers,
|
1650
|
-
asio::transfer_all(), error);
|
1651
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1652
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1653
|
-
ASIO_CHECK(!error);
|
1654
|
-
|
1655
|
-
s.reset(read_data, sizeof(read_data));
|
1656
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1657
|
-
error = asio::error_code();
|
1658
|
-
bytes_transferred = asio::read(s, buffers,
|
1659
|
-
asio::transfer_at_least(1), error);
|
1660
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1661
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1662
|
-
ASIO_CHECK(!error);
|
1663
|
-
|
1664
|
-
s.reset(read_data, sizeof(read_data));
|
1665
|
-
s.next_read_length(1);
|
1666
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1667
|
-
error = asio::error_code();
|
1668
|
-
bytes_transferred = asio::read(s, buffers,
|
1669
|
-
asio::transfer_at_least(1), error);
|
1670
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1671
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1672
|
-
ASIO_CHECK(!error);
|
1673
|
-
|
1674
|
-
s.reset(read_data, sizeof(read_data));
|
1675
|
-
s.next_read_length(10);
|
1676
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1677
|
-
error = asio::error_code();
|
1678
|
-
bytes_transferred = asio::read(s, buffers,
|
1679
|
-
asio::transfer_at_least(1), error);
|
1680
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1681
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1682
|
-
ASIO_CHECK(!error);
|
1683
|
-
|
1684
|
-
s.reset(read_data, sizeof(read_data));
|
1685
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1686
|
-
error = asio::error_code();
|
1687
|
-
bytes_transferred = asio::read(s, buffers,
|
1688
|
-
asio::transfer_at_least(10), error);
|
1689
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1690
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1691
|
-
ASIO_CHECK(!error);
|
1692
|
-
|
1693
|
-
s.reset(read_data, sizeof(read_data));
|
1694
|
-
s.next_read_length(1);
|
1695
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1696
|
-
error = asio::error_code();
|
1697
|
-
bytes_transferred = asio::read(s, buffers,
|
1698
|
-
asio::transfer_at_least(10), error);
|
1699
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1700
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1701
|
-
ASIO_CHECK(!error);
|
1702
|
-
|
1703
|
-
s.reset(read_data, sizeof(read_data));
|
1704
|
-
s.next_read_length(10);
|
1705
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1706
|
-
error = asio::error_code();
|
1707
|
-
bytes_transferred = asio::read(s, buffers,
|
1708
|
-
asio::transfer_at_least(10), error);
|
1709
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1710
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1711
|
-
ASIO_CHECK(!error);
|
1712
|
-
|
1713
|
-
s.reset(read_data, sizeof(read_data));
|
1714
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1715
|
-
error = asio::error_code();
|
1716
|
-
bytes_transferred = asio::read(s, buffers,
|
1717
|
-
asio::transfer_at_least(42), error);
|
1718
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1719
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1720
|
-
ASIO_CHECK(!error);
|
1721
|
-
|
1722
|
-
s.reset(read_data, sizeof(read_data));
|
1723
|
-
s.next_read_length(1);
|
1724
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1725
|
-
error = asio::error_code();
|
1726
|
-
bytes_transferred = asio::read(s, buffers,
|
1727
|
-
asio::transfer_at_least(42), error);
|
1728
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1729
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1730
|
-
ASIO_CHECK(!error);
|
1731
|
-
|
1732
|
-
s.reset(read_data, sizeof(read_data));
|
1733
|
-
s.next_read_length(10);
|
1734
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1735
|
-
error = asio::error_code();
|
1736
|
-
bytes_transferred = asio::read(s, buffers,
|
1737
|
-
asio::transfer_at_least(42), error);
|
1738
|
-
ASIO_CHECK(bytes_transferred == 50);
|
1739
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
1740
|
-
ASIO_CHECK(!error);
|
1741
|
-
|
1742
|
-
s.reset(read_data, sizeof(read_data));
|
1743
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1744
|
-
error = asio::error_code();
|
1745
|
-
bytes_transferred = asio::read(s, buffers,
|
1746
|
-
asio::transfer_exactly(1), error);
|
1747
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1748
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1749
|
-
ASIO_CHECK(!error);
|
1750
|
-
|
1751
|
-
s.reset(read_data, sizeof(read_data));
|
1752
|
-
s.next_read_length(1);
|
1753
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1754
|
-
error = asio::error_code();
|
1755
|
-
bytes_transferred = asio::read(s, buffers,
|
1756
|
-
asio::transfer_exactly(1), error);
|
1757
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1758
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1759
|
-
ASIO_CHECK(!error);
|
1760
|
-
|
1761
|
-
s.reset(read_data, sizeof(read_data));
|
1762
|
-
s.next_read_length(10);
|
1763
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1764
|
-
error = asio::error_code();
|
1765
|
-
bytes_transferred = asio::read(s, buffers,
|
1766
|
-
asio::transfer_exactly(1), error);
|
1767
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1768
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
1769
|
-
ASIO_CHECK(!error);
|
1770
|
-
|
1771
|
-
s.reset(read_data, sizeof(read_data));
|
1772
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1773
|
-
error = asio::error_code();
|
1774
|
-
bytes_transferred = asio::read(s, buffers,
|
1775
|
-
asio::transfer_exactly(10), error);
|
1776
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1777
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1778
|
-
ASIO_CHECK(!error);
|
1779
|
-
|
1780
|
-
s.reset(read_data, sizeof(read_data));
|
1781
|
-
s.next_read_length(1);
|
1782
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1783
|
-
error = asio::error_code();
|
1784
|
-
bytes_transferred = asio::read(s, buffers,
|
1785
|
-
asio::transfer_exactly(10), error);
|
1786
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1787
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1788
|
-
ASIO_CHECK(!error);
|
1789
|
-
|
1790
|
-
s.reset(read_data, sizeof(read_data));
|
1791
|
-
s.next_read_length(10);
|
1792
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1793
|
-
error = asio::error_code();
|
1794
|
-
bytes_transferred = asio::read(s, buffers,
|
1795
|
-
asio::transfer_exactly(10), error);
|
1796
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1797
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
1798
|
-
ASIO_CHECK(!error);
|
1799
|
-
|
1800
|
-
s.reset(read_data, sizeof(read_data));
|
1801
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1802
|
-
error = asio::error_code();
|
1803
|
-
bytes_transferred = asio::read(s, buffers,
|
1804
|
-
asio::transfer_exactly(42), error);
|
1805
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1806
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1807
|
-
ASIO_CHECK(!error);
|
1808
|
-
|
1809
|
-
s.reset(read_data, sizeof(read_data));
|
1810
|
-
s.next_read_length(1);
|
1811
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1812
|
-
error = asio::error_code();
|
1813
|
-
bytes_transferred = asio::read(s, buffers,
|
1814
|
-
asio::transfer_exactly(42), error);
|
1815
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1816
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1817
|
-
ASIO_CHECK(!error);
|
1818
|
-
|
1819
|
-
s.reset(read_data, sizeof(read_data));
|
1820
|
-
s.next_read_length(10);
|
1821
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1822
|
-
error = asio::error_code();
|
1823
|
-
bytes_transferred = asio::read(s, buffers,
|
1824
|
-
asio::transfer_exactly(42), error);
|
1825
|
-
ASIO_CHECK(bytes_transferred == 42);
|
1826
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
1827
|
-
ASIO_CHECK(!error);
|
1828
|
-
|
1829
|
-
s.reset(read_data, sizeof(read_data));
|
1830
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1831
|
-
bytes_transferred = asio::read(s, buffers,
|
1832
|
-
old_style_transfer_all, error);
|
1833
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1834
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1835
|
-
ASIO_CHECK(!error);
|
1836
|
-
|
1837
|
-
s.reset(read_data, sizeof(read_data));
|
1838
|
-
s.next_read_length(1);
|
1839
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1840
|
-
error = asio::error_code();
|
1841
|
-
bytes_transferred = asio::read(s, buffers,
|
1842
|
-
old_style_transfer_all, error);
|
1843
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1844
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1845
|
-
ASIO_CHECK(!error);
|
1846
|
-
|
1847
|
-
s.reset(read_data, sizeof(read_data));
|
1848
|
-
s.next_read_length(10);
|
1849
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1850
|
-
error = asio::error_code();
|
1851
|
-
bytes_transferred = asio::read(s, buffers,
|
1852
|
-
old_style_transfer_all, error);
|
1853
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1854
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1855
|
-
ASIO_CHECK(!error);
|
1856
|
-
|
1857
|
-
s.reset(read_data, sizeof(read_data));
|
1858
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1859
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1860
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1861
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1862
|
-
ASIO_CHECK(!error);
|
1863
|
-
|
1864
|
-
s.reset(read_data, sizeof(read_data));
|
1865
|
-
s.next_read_length(1);
|
1866
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1867
|
-
error = asio::error_code();
|
1868
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1869
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1870
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1871
|
-
ASIO_CHECK(!error);
|
1872
|
-
|
1873
|
-
s.reset(read_data, sizeof(read_data));
|
1874
|
-
s.next_read_length(10);
|
1875
|
-
memset(read_buf, 0, sizeof(read_buf));
|
1876
|
-
error = asio::error_code();
|
1877
|
-
bytes_transferred = asio::read(s, buffers, short_transfer(), error);
|
1878
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1879
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
1880
|
-
ASIO_CHECK(!error);
|
1881
|
-
}
|
1882
|
-
|
1883
|
-
void test_4_arg_dynamic_string_read()
|
1884
|
-
{
|
1885
|
-
asio::io_context ioc;
|
1886
|
-
test_stream s(ioc);
|
1887
|
-
std::string data;
|
1888
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
1889
|
-
std::string::allocator_type> sb
|
1890
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
1891
|
-
|
1892
|
-
s.reset(read_data, sizeof(read_data));
|
1893
|
-
sb.consume(sb.size());
|
1894
|
-
asio::error_code error;
|
1895
|
-
size_t bytes_transferred = asio::read(s, sb,
|
1896
|
-
asio::transfer_all(), error);
|
1897
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1898
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1899
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1900
|
-
ASIO_CHECK(!error);
|
1901
|
-
|
1902
|
-
s.reset(read_data, sizeof(read_data));
|
1903
|
-
s.next_read_length(1);
|
1904
|
-
sb.consume(sb.size());
|
1905
|
-
error = asio::error_code();
|
1906
|
-
bytes_transferred = asio::read(s, sb,
|
1907
|
-
asio::transfer_all(), error);
|
1908
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1909
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1910
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1911
|
-
ASIO_CHECK(!error);
|
1912
|
-
|
1913
|
-
s.reset(read_data, sizeof(read_data));
|
1914
|
-
s.next_read_length(10);
|
1915
|
-
sb.consume(sb.size());
|
1916
|
-
error = asio::error_code();
|
1917
|
-
bytes_transferred = asio::read(s, sb,
|
1918
|
-
asio::transfer_all(), error);
|
1919
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1920
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1921
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1922
|
-
ASIO_CHECK(!error);
|
1923
|
-
|
1924
|
-
s.reset(read_data, sizeof(read_data));
|
1925
|
-
sb.consume(sb.size());
|
1926
|
-
error = asio::error_code();
|
1927
|
-
bytes_transferred = asio::read(s, sb,
|
1928
|
-
asio::transfer_at_least(1), error);
|
1929
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1930
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1931
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1932
|
-
ASIO_CHECK(!error);
|
1933
|
-
|
1934
|
-
s.reset(read_data, sizeof(read_data));
|
1935
|
-
s.next_read_length(1);
|
1936
|
-
sb.consume(sb.size());
|
1937
|
-
error = asio::error_code();
|
1938
|
-
bytes_transferred = asio::read(s, sb,
|
1939
|
-
asio::transfer_at_least(1), error);
|
1940
|
-
ASIO_CHECK(bytes_transferred == 1);
|
1941
|
-
ASIO_CHECK(sb.size() == 1);
|
1942
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
1943
|
-
ASIO_CHECK(!error);
|
1944
|
-
|
1945
|
-
s.reset(read_data, sizeof(read_data));
|
1946
|
-
s.next_read_length(10);
|
1947
|
-
sb.consume(sb.size());
|
1948
|
-
error = asio::error_code();
|
1949
|
-
bytes_transferred = asio::read(s, sb,
|
1950
|
-
asio::transfer_at_least(1), error);
|
1951
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1952
|
-
ASIO_CHECK(sb.size() == 10);
|
1953
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1954
|
-
ASIO_CHECK(!error);
|
1955
|
-
|
1956
|
-
s.reset(read_data, sizeof(read_data));
|
1957
|
-
sb.consume(sb.size());
|
1958
|
-
error = asio::error_code();
|
1959
|
-
bytes_transferred = asio::read(s, sb,
|
1960
|
-
asio::transfer_at_least(10), error);
|
1961
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1962
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1963
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1964
|
-
ASIO_CHECK(!error);
|
1965
|
-
|
1966
|
-
s.reset(read_data, sizeof(read_data));
|
1967
|
-
s.next_read_length(1);
|
1968
|
-
sb.consume(sb.size());
|
1969
|
-
error = asio::error_code();
|
1970
|
-
bytes_transferred = asio::read(s, sb,
|
1971
|
-
asio::transfer_at_least(10), error);
|
1972
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1973
|
-
ASIO_CHECK(sb.size() == 10);
|
1974
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1975
|
-
ASIO_CHECK(!error);
|
1976
|
-
|
1977
|
-
s.reset(read_data, sizeof(read_data));
|
1978
|
-
s.next_read_length(10);
|
1979
|
-
sb.consume(sb.size());
|
1980
|
-
error = asio::error_code();
|
1981
|
-
bytes_transferred = asio::read(s, sb,
|
1982
|
-
asio::transfer_at_least(10), error);
|
1983
|
-
ASIO_CHECK(bytes_transferred == 10);
|
1984
|
-
ASIO_CHECK(sb.size() == 10);
|
1985
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
1986
|
-
ASIO_CHECK(!error);
|
1987
|
-
|
1988
|
-
s.reset(read_data, sizeof(read_data));
|
1989
|
-
sb.consume(sb.size());
|
1990
|
-
error = asio::error_code();
|
1991
|
-
bytes_transferred = asio::read(s, sb,
|
1992
|
-
asio::transfer_at_least(42), error);
|
1993
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
1994
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
1995
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
1996
|
-
ASIO_CHECK(!error);
|
1997
|
-
|
1998
|
-
s.reset(read_data, sizeof(read_data));
|
1999
|
-
s.next_read_length(1);
|
2000
|
-
sb.consume(sb.size());
|
2001
|
-
error = asio::error_code();
|
2002
|
-
bytes_transferred = asio::read(s, sb,
|
2003
|
-
asio::transfer_at_least(42), error);
|
2004
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2005
|
-
ASIO_CHECK(sb.size() == 42);
|
2006
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
2007
|
-
ASIO_CHECK(!error);
|
2008
|
-
|
2009
|
-
s.reset(read_data, sizeof(read_data));
|
2010
|
-
s.next_read_length(10);
|
2011
|
-
sb.consume(sb.size());
|
2012
|
-
error = asio::error_code();
|
2013
|
-
bytes_transferred = asio::read(s, sb,
|
2014
|
-
asio::transfer_at_least(42), error);
|
2015
|
-
ASIO_CHECK(bytes_transferred == 50);
|
2016
|
-
ASIO_CHECK(sb.size() == 50);
|
2017
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 50));
|
2018
|
-
ASIO_CHECK(!error);
|
2019
|
-
|
2020
|
-
s.reset(read_data, sizeof(read_data));
|
2021
|
-
sb.consume(sb.size());
|
2022
|
-
error = asio::error_code();
|
2023
|
-
bytes_transferred = asio::read(s, sb,
|
2024
|
-
asio::transfer_exactly(1), error);
|
2025
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2026
|
-
ASIO_CHECK(sb.size() == 1);
|
2027
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
2028
|
-
ASIO_CHECK(!error);
|
2029
|
-
|
2030
|
-
s.reset(read_data, sizeof(read_data));
|
2031
|
-
s.next_read_length(1);
|
2032
|
-
sb.consume(sb.size());
|
2033
|
-
error = asio::error_code();
|
2034
|
-
bytes_transferred = asio::read(s, sb,
|
2035
|
-
asio::transfer_exactly(1), error);
|
2036
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2037
|
-
ASIO_CHECK(sb.size() == 1);
|
2038
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
2039
|
-
ASIO_CHECK(!error);
|
2040
|
-
|
2041
|
-
s.reset(read_data, sizeof(read_data));
|
2042
|
-
s.next_read_length(10);
|
2043
|
-
sb.consume(sb.size());
|
2044
|
-
error = asio::error_code();
|
2045
|
-
bytes_transferred = asio::read(s, sb,
|
2046
|
-
asio::transfer_exactly(1), error);
|
2047
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2048
|
-
ASIO_CHECK(sb.size() == 1);
|
2049
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
2050
|
-
ASIO_CHECK(!error);
|
2051
|
-
|
2052
|
-
s.reset(read_data, sizeof(read_data));
|
2053
|
-
sb.consume(sb.size());
|
2054
|
-
error = asio::error_code();
|
2055
|
-
bytes_transferred = asio::read(s, sb,
|
2056
|
-
asio::transfer_exactly(10), error);
|
2057
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2058
|
-
ASIO_CHECK(sb.size() == 10);
|
2059
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
2060
|
-
ASIO_CHECK(!error);
|
2061
|
-
|
2062
|
-
s.reset(read_data, sizeof(read_data));
|
2063
|
-
s.next_read_length(1);
|
2064
|
-
sb.consume(sb.size());
|
2065
|
-
error = asio::error_code();
|
2066
|
-
bytes_transferred = asio::read(s, sb,
|
2067
|
-
asio::transfer_exactly(10), error);
|
2068
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2069
|
-
ASIO_CHECK(sb.size() == 10);
|
2070
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
2071
|
-
ASIO_CHECK(!error);
|
2072
|
-
|
2073
|
-
s.reset(read_data, sizeof(read_data));
|
2074
|
-
s.next_read_length(10);
|
2075
|
-
sb.consume(sb.size());
|
2076
|
-
error = asio::error_code();
|
2077
|
-
bytes_transferred = asio::read(s, sb,
|
2078
|
-
asio::transfer_exactly(10), error);
|
2079
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2080
|
-
ASIO_CHECK(sb.size() == 10);
|
2081
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
2082
|
-
ASIO_CHECK(!error);
|
2083
|
-
|
2084
|
-
s.reset(read_data, sizeof(read_data));
|
2085
|
-
sb.consume(sb.size());
|
2086
|
-
error = asio::error_code();
|
2087
|
-
bytes_transferred = asio::read(s, sb,
|
2088
|
-
asio::transfer_exactly(42), error);
|
2089
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2090
|
-
ASIO_CHECK(sb.size() == 42);
|
2091
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
2092
|
-
ASIO_CHECK(!error);
|
2093
|
-
|
2094
|
-
s.reset(read_data, sizeof(read_data));
|
2095
|
-
s.next_read_length(1);
|
2096
|
-
sb.consume(sb.size());
|
2097
|
-
error = asio::error_code();
|
2098
|
-
bytes_transferred = asio::read(s, sb,
|
2099
|
-
asio::transfer_exactly(42), error);
|
2100
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2101
|
-
ASIO_CHECK(sb.size() == 42);
|
2102
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
2103
|
-
ASIO_CHECK(!error);
|
2104
|
-
|
2105
|
-
s.reset(read_data, sizeof(read_data));
|
2106
|
-
s.next_read_length(10);
|
2107
|
-
sb.consume(sb.size());
|
2108
|
-
error = asio::error_code();
|
2109
|
-
bytes_transferred = asio::read(s, sb,
|
2110
|
-
asio::transfer_exactly(42), error);
|
2111
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2112
|
-
ASIO_CHECK(sb.size() == 42);
|
2113
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
2114
|
-
ASIO_CHECK(!error);
|
2115
|
-
|
2116
|
-
s.reset(read_data, sizeof(read_data));
|
2117
|
-
sb.consume(sb.size());
|
2118
|
-
bytes_transferred = asio::read(s, sb,
|
2119
|
-
old_style_transfer_all, error);
|
2120
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2121
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2122
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2123
|
-
ASIO_CHECK(!error);
|
2124
|
-
|
2125
|
-
s.reset(read_data, sizeof(read_data));
|
2126
|
-
s.next_read_length(1);
|
2127
|
-
sb.consume(sb.size());
|
2128
|
-
error = asio::error_code();
|
2129
|
-
bytes_transferred = asio::read(s, sb,
|
2130
|
-
old_style_transfer_all, error);
|
2131
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2132
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2133
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2134
|
-
ASIO_CHECK(!error);
|
2135
|
-
|
2136
|
-
s.reset(read_data, sizeof(read_data));
|
2137
|
-
s.next_read_length(10);
|
2138
|
-
sb.consume(sb.size());
|
2139
|
-
error = asio::error_code();
|
2140
|
-
bytes_transferred = asio::read(s, sb,
|
2141
|
-
old_style_transfer_all, error);
|
2142
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2143
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2144
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2145
|
-
ASIO_CHECK(!error);
|
2146
|
-
|
2147
|
-
s.reset(read_data, sizeof(read_data));
|
2148
|
-
sb.consume(sb.size());
|
2149
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2150
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2151
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2152
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2153
|
-
ASIO_CHECK(!error);
|
2154
|
-
|
2155
|
-
s.reset(read_data, sizeof(read_data));
|
2156
|
-
s.next_read_length(1);
|
2157
|
-
sb.consume(sb.size());
|
2158
|
-
error = asio::error_code();
|
2159
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2160
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2161
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2162
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2163
|
-
ASIO_CHECK(!error);
|
2164
|
-
|
2165
|
-
s.reset(read_data, sizeof(read_data));
|
2166
|
-
s.next_read_length(10);
|
2167
|
-
sb.consume(sb.size());
|
2168
|
-
error = asio::error_code();
|
2169
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2170
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2171
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2172
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2173
|
-
ASIO_CHECK(!error);
|
2174
|
-
}
|
2175
|
-
|
2176
|
-
void test_4_arg_streambuf_read()
|
2177
|
-
{
|
2178
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
2179
|
-
asio::io_context ioc;
|
2180
|
-
test_stream s(ioc);
|
2181
|
-
asio::streambuf sb(sizeof(read_data));
|
2182
|
-
|
2183
|
-
s.reset(read_data, sizeof(read_data));
|
2184
|
-
sb.consume(sb.size());
|
2185
|
-
asio::error_code error;
|
2186
|
-
size_t bytes_transferred = asio::read(s, sb,
|
2187
|
-
asio::transfer_all(), error);
|
2188
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2189
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2190
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2191
|
-
ASIO_CHECK(!error);
|
2192
|
-
|
2193
|
-
s.reset(read_data, sizeof(read_data));
|
2194
|
-
s.next_read_length(1);
|
2195
|
-
sb.consume(sb.size());
|
2196
|
-
error = asio::error_code();
|
2197
|
-
bytes_transferred = asio::read(s, sb,
|
2198
|
-
asio::transfer_all(), error);
|
2199
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2200
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2201
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2202
|
-
ASIO_CHECK(!error);
|
2203
|
-
|
2204
|
-
s.reset(read_data, sizeof(read_data));
|
2205
|
-
s.next_read_length(10);
|
2206
|
-
sb.consume(sb.size());
|
2207
|
-
error = asio::error_code();
|
2208
|
-
bytes_transferred = asio::read(s, sb,
|
2209
|
-
asio::transfer_all(), error);
|
2210
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2211
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2212
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2213
|
-
ASIO_CHECK(!error);
|
2214
|
-
|
2215
|
-
s.reset(read_data, sizeof(read_data));
|
2216
|
-
sb.consume(sb.size());
|
2217
|
-
error = asio::error_code();
|
2218
|
-
bytes_transferred = asio::read(s, sb,
|
2219
|
-
asio::transfer_at_least(1), error);
|
2220
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2221
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2222
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2223
|
-
ASIO_CHECK(!error);
|
2224
|
-
|
2225
|
-
s.reset(read_data, sizeof(read_data));
|
2226
|
-
s.next_read_length(1);
|
2227
|
-
sb.consume(sb.size());
|
2228
|
-
error = asio::error_code();
|
2229
|
-
bytes_transferred = asio::read(s, sb,
|
2230
|
-
asio::transfer_at_least(1), error);
|
2231
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2232
|
-
ASIO_CHECK(sb.size() == 1);
|
2233
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
2234
|
-
ASIO_CHECK(!error);
|
2235
|
-
|
2236
|
-
s.reset(read_data, sizeof(read_data));
|
2237
|
-
s.next_read_length(10);
|
2238
|
-
sb.consume(sb.size());
|
2239
|
-
error = asio::error_code();
|
2240
|
-
bytes_transferred = asio::read(s, sb,
|
2241
|
-
asio::transfer_at_least(1), error);
|
2242
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2243
|
-
ASIO_CHECK(sb.size() == 10);
|
2244
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2245
|
-
ASIO_CHECK(!error);
|
2246
|
-
|
2247
|
-
s.reset(read_data, sizeof(read_data));
|
2248
|
-
sb.consume(sb.size());
|
2249
|
-
error = asio::error_code();
|
2250
|
-
bytes_transferred = asio::read(s, sb,
|
2251
|
-
asio::transfer_at_least(10), error);
|
2252
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2253
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2254
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2255
|
-
ASIO_CHECK(!error);
|
2256
|
-
|
2257
|
-
s.reset(read_data, sizeof(read_data));
|
2258
|
-
s.next_read_length(1);
|
2259
|
-
sb.consume(sb.size());
|
2260
|
-
error = asio::error_code();
|
2261
|
-
bytes_transferred = asio::read(s, sb,
|
2262
|
-
asio::transfer_at_least(10), error);
|
2263
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2264
|
-
ASIO_CHECK(sb.size() == 10);
|
2265
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2266
|
-
ASIO_CHECK(!error);
|
2267
|
-
|
2268
|
-
s.reset(read_data, sizeof(read_data));
|
2269
|
-
s.next_read_length(10);
|
2270
|
-
sb.consume(sb.size());
|
2271
|
-
error = asio::error_code();
|
2272
|
-
bytes_transferred = asio::read(s, sb,
|
2273
|
-
asio::transfer_at_least(10), error);
|
2274
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2275
|
-
ASIO_CHECK(sb.size() == 10);
|
2276
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2277
|
-
ASIO_CHECK(!error);
|
2278
|
-
|
2279
|
-
s.reset(read_data, sizeof(read_data));
|
2280
|
-
sb.consume(sb.size());
|
2281
|
-
error = asio::error_code();
|
2282
|
-
bytes_transferred = asio::read(s, sb,
|
2283
|
-
asio::transfer_at_least(42), error);
|
2284
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2285
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2286
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2287
|
-
ASIO_CHECK(!error);
|
2288
|
-
|
2289
|
-
s.reset(read_data, sizeof(read_data));
|
2290
|
-
s.next_read_length(1);
|
2291
|
-
sb.consume(sb.size());
|
2292
|
-
error = asio::error_code();
|
2293
|
-
bytes_transferred = asio::read(s, sb,
|
2294
|
-
asio::transfer_at_least(42), error);
|
2295
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2296
|
-
ASIO_CHECK(sb.size() == 42);
|
2297
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
2298
|
-
ASIO_CHECK(!error);
|
2299
|
-
|
2300
|
-
s.reset(read_data, sizeof(read_data));
|
2301
|
-
s.next_read_length(10);
|
2302
|
-
sb.consume(sb.size());
|
2303
|
-
error = asio::error_code();
|
2304
|
-
bytes_transferred = asio::read(s, sb,
|
2305
|
-
asio::transfer_at_least(42), error);
|
2306
|
-
ASIO_CHECK(bytes_transferred == 50);
|
2307
|
-
ASIO_CHECK(sb.size() == 50);
|
2308
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 50));
|
2309
|
-
ASIO_CHECK(!error);
|
2310
|
-
|
2311
|
-
s.reset(read_data, sizeof(read_data));
|
2312
|
-
sb.consume(sb.size());
|
2313
|
-
error = asio::error_code();
|
2314
|
-
bytes_transferred = asio::read(s, sb,
|
2315
|
-
asio::transfer_exactly(1), error);
|
2316
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2317
|
-
ASIO_CHECK(sb.size() == 1);
|
2318
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
2319
|
-
ASIO_CHECK(!error);
|
2320
|
-
|
2321
|
-
s.reset(read_data, sizeof(read_data));
|
2322
|
-
s.next_read_length(1);
|
2323
|
-
sb.consume(sb.size());
|
2324
|
-
error = asio::error_code();
|
2325
|
-
bytes_transferred = asio::read(s, sb,
|
2326
|
-
asio::transfer_exactly(1), error);
|
2327
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2328
|
-
ASIO_CHECK(sb.size() == 1);
|
2329
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
2330
|
-
ASIO_CHECK(!error);
|
2331
|
-
|
2332
|
-
s.reset(read_data, sizeof(read_data));
|
2333
|
-
s.next_read_length(10);
|
2334
|
-
sb.consume(sb.size());
|
2335
|
-
error = asio::error_code();
|
2336
|
-
bytes_transferred = asio::read(s, sb,
|
2337
|
-
asio::transfer_exactly(1), error);
|
2338
|
-
ASIO_CHECK(bytes_transferred == 1);
|
2339
|
-
ASIO_CHECK(sb.size() == 1);
|
2340
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
2341
|
-
ASIO_CHECK(!error);
|
2342
|
-
|
2343
|
-
s.reset(read_data, sizeof(read_data));
|
2344
|
-
sb.consume(sb.size());
|
2345
|
-
error = asio::error_code();
|
2346
|
-
bytes_transferred = asio::read(s, sb,
|
2347
|
-
asio::transfer_exactly(10), error);
|
2348
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2349
|
-
ASIO_CHECK(sb.size() == 10);
|
2350
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2351
|
-
ASIO_CHECK(!error);
|
2352
|
-
|
2353
|
-
s.reset(read_data, sizeof(read_data));
|
2354
|
-
s.next_read_length(1);
|
2355
|
-
sb.consume(sb.size());
|
2356
|
-
error = asio::error_code();
|
2357
|
-
bytes_transferred = asio::read(s, sb,
|
2358
|
-
asio::transfer_exactly(10), error);
|
2359
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2360
|
-
ASIO_CHECK(sb.size() == 10);
|
2361
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2362
|
-
ASIO_CHECK(!error);
|
2363
|
-
|
2364
|
-
s.reset(read_data, sizeof(read_data));
|
2365
|
-
s.next_read_length(10);
|
2366
|
-
sb.consume(sb.size());
|
2367
|
-
error = asio::error_code();
|
2368
|
-
bytes_transferred = asio::read(s, sb,
|
2369
|
-
asio::transfer_exactly(10), error);
|
2370
|
-
ASIO_CHECK(bytes_transferred == 10);
|
2371
|
-
ASIO_CHECK(sb.size() == 10);
|
2372
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
2373
|
-
ASIO_CHECK(!error);
|
2374
|
-
|
2375
|
-
s.reset(read_data, sizeof(read_data));
|
2376
|
-
sb.consume(sb.size());
|
2377
|
-
error = asio::error_code();
|
2378
|
-
bytes_transferred = asio::read(s, sb,
|
2379
|
-
asio::transfer_exactly(42), error);
|
2380
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2381
|
-
ASIO_CHECK(sb.size() == 42);
|
2382
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
2383
|
-
ASIO_CHECK(!error);
|
2384
|
-
|
2385
|
-
s.reset(read_data, sizeof(read_data));
|
2386
|
-
s.next_read_length(1);
|
2387
|
-
sb.consume(sb.size());
|
2388
|
-
error = asio::error_code();
|
2389
|
-
bytes_transferred = asio::read(s, sb,
|
2390
|
-
asio::transfer_exactly(42), error);
|
2391
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2392
|
-
ASIO_CHECK(sb.size() == 42);
|
2393
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
2394
|
-
ASIO_CHECK(!error);
|
2395
|
-
|
2396
|
-
s.reset(read_data, sizeof(read_data));
|
2397
|
-
s.next_read_length(10);
|
2398
|
-
sb.consume(sb.size());
|
2399
|
-
error = asio::error_code();
|
2400
|
-
bytes_transferred = asio::read(s, sb,
|
2401
|
-
asio::transfer_exactly(42), error);
|
2402
|
-
ASIO_CHECK(bytes_transferred == 42);
|
2403
|
-
ASIO_CHECK(sb.size() == 42);
|
2404
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
2405
|
-
ASIO_CHECK(!error);
|
2406
|
-
|
2407
|
-
s.reset(read_data, sizeof(read_data));
|
2408
|
-
sb.consume(sb.size());
|
2409
|
-
bytes_transferred = asio::read(s, sb,
|
2410
|
-
old_style_transfer_all, error);
|
2411
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2412
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2413
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2414
|
-
ASIO_CHECK(!error);
|
2415
|
-
|
2416
|
-
s.reset(read_data, sizeof(read_data));
|
2417
|
-
s.next_read_length(1);
|
2418
|
-
sb.consume(sb.size());
|
2419
|
-
error = asio::error_code();
|
2420
|
-
bytes_transferred = asio::read(s, sb,
|
2421
|
-
old_style_transfer_all, error);
|
2422
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2423
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2424
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2425
|
-
ASIO_CHECK(!error);
|
2426
|
-
|
2427
|
-
s.reset(read_data, sizeof(read_data));
|
2428
|
-
s.next_read_length(10);
|
2429
|
-
sb.consume(sb.size());
|
2430
|
-
error = asio::error_code();
|
2431
|
-
bytes_transferred = asio::read(s, sb,
|
2432
|
-
old_style_transfer_all, error);
|
2433
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2434
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2435
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2436
|
-
ASIO_CHECK(!error);
|
2437
|
-
|
2438
|
-
s.reset(read_data, sizeof(read_data));
|
2439
|
-
sb.consume(sb.size());
|
2440
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2441
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2442
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2443
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2444
|
-
ASIO_CHECK(!error);
|
2445
|
-
|
2446
|
-
s.reset(read_data, sizeof(read_data));
|
2447
|
-
s.next_read_length(1);
|
2448
|
-
sb.consume(sb.size());
|
2449
|
-
error = asio::error_code();
|
2450
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2451
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2452
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2453
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2454
|
-
ASIO_CHECK(!error);
|
2455
|
-
|
2456
|
-
s.reset(read_data, sizeof(read_data));
|
2457
|
-
s.next_read_length(10);
|
2458
|
-
sb.consume(sb.size());
|
2459
|
-
error = asio::error_code();
|
2460
|
-
bytes_transferred = asio::read(s, sb, short_transfer(), error);
|
2461
|
-
ASIO_CHECK(bytes_transferred == sizeof(read_data));
|
2462
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2463
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2464
|
-
ASIO_CHECK(!error);
|
2465
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
2466
|
-
}
|
2467
|
-
|
2468
|
-
void async_read_handler(const asio::error_code& e,
|
2469
|
-
size_t bytes_transferred, size_t expected_bytes_transferred, bool* called)
|
2470
|
-
{
|
2471
|
-
*called = true;
|
2472
|
-
ASIO_CHECK(!e);
|
2473
|
-
ASIO_CHECK(bytes_transferred == expected_bytes_transferred);
|
2474
|
-
}
|
2475
|
-
|
2476
|
-
void test_3_arg_mutable_buffer_async_read()
|
2477
|
-
{
|
2478
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2479
|
-
namespace bindns = boost;
|
2480
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2481
|
-
namespace bindns = std;
|
2482
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2483
|
-
using bindns::placeholders::_1;
|
2484
|
-
using bindns::placeholders::_2;
|
2485
|
-
|
2486
|
-
asio::io_context ioc;
|
2487
|
-
test_stream s(ioc);
|
2488
|
-
char read_buf[sizeof(read_data)];
|
2489
|
-
asio::mutable_buffer buffers
|
2490
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
2491
|
-
|
2492
|
-
s.reset(read_data, sizeof(read_data));
|
2493
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2494
|
-
bool called = false;
|
2495
|
-
asio::async_read(s, buffers,
|
2496
|
-
bindns::bind(async_read_handler,
|
2497
|
-
_1, _2, sizeof(read_data), &called));
|
2498
|
-
ioc.restart();
|
2499
|
-
ioc.run();
|
2500
|
-
ASIO_CHECK(called);
|
2501
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2502
|
-
|
2503
|
-
s.reset(read_data, sizeof(read_data));
|
2504
|
-
s.next_read_length(1);
|
2505
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2506
|
-
called = false;
|
2507
|
-
asio::async_read(s, buffers,
|
2508
|
-
bindns::bind(async_read_handler,
|
2509
|
-
_1, _2, sizeof(read_data), &called));
|
2510
|
-
ioc.restart();
|
2511
|
-
ioc.run();
|
2512
|
-
ASIO_CHECK(called);
|
2513
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2514
|
-
|
2515
|
-
s.reset(read_data, sizeof(read_data));
|
2516
|
-
s.next_read_length(10);
|
2517
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2518
|
-
called = false;
|
2519
|
-
asio::async_read(s, buffers,
|
2520
|
-
bindns::bind(async_read_handler,
|
2521
|
-
_1, _2, sizeof(read_data), &called));
|
2522
|
-
ioc.restart();
|
2523
|
-
ioc.run();
|
2524
|
-
ASIO_CHECK(called);
|
2525
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2526
|
-
|
2527
|
-
s.reset(read_data, sizeof(read_data));
|
2528
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2529
|
-
int i = asio::async_read(s, buffers, archetypes::lazy_handler());
|
2530
|
-
ASIO_CHECK(i == 42);
|
2531
|
-
ioc.restart();
|
2532
|
-
ioc.run();
|
2533
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2534
|
-
}
|
2535
|
-
|
2536
|
-
void test_3_arg_boost_array_buffers_async_read()
|
2537
|
-
{
|
2538
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2539
|
-
namespace bindns = boost;
|
2540
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2541
|
-
namespace bindns = std;
|
2542
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2543
|
-
using bindns::placeholders::_1;
|
2544
|
-
using bindns::placeholders::_2;
|
2545
|
-
|
2546
|
-
#if defined(ASIO_HAS_BOOST_ARRAY)
|
2547
|
-
asio::io_context ioc;
|
2548
|
-
test_stream s(ioc);
|
2549
|
-
char read_buf[sizeof(read_data)];
|
2550
|
-
boost::array<asio::mutable_buffer, 2> buffers = { {
|
2551
|
-
asio::buffer(read_buf, 32),
|
2552
|
-
asio::buffer(read_buf) + 32 } };
|
2553
|
-
|
2554
|
-
s.reset(read_data, sizeof(read_data));
|
2555
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2556
|
-
bool called = false;
|
2557
|
-
asio::async_read(s, buffers,
|
2558
|
-
bindns::bind(async_read_handler,
|
2559
|
-
_1, _2, sizeof(read_data), &called));
|
2560
|
-
ioc.restart();
|
2561
|
-
ioc.run();
|
2562
|
-
ASIO_CHECK(called);
|
2563
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2564
|
-
|
2565
|
-
s.reset(read_data, sizeof(read_data));
|
2566
|
-
s.next_read_length(1);
|
2567
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2568
|
-
called = false;
|
2569
|
-
asio::async_read(s, buffers,
|
2570
|
-
bindns::bind(async_read_handler,
|
2571
|
-
_1, _2, sizeof(read_data), &called));
|
2572
|
-
ioc.restart();
|
2573
|
-
ioc.run();
|
2574
|
-
ASIO_CHECK(called);
|
2575
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2576
|
-
|
2577
|
-
s.reset(read_data, sizeof(read_data));
|
2578
|
-
s.next_read_length(10);
|
2579
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2580
|
-
called = false;
|
2581
|
-
asio::async_read(s, buffers,
|
2582
|
-
bindns::bind(async_read_handler,
|
2583
|
-
_1, _2, sizeof(read_data), &called));
|
2584
|
-
ioc.restart();
|
2585
|
-
ioc.run();
|
2586
|
-
ASIO_CHECK(called);
|
2587
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2588
|
-
|
2589
|
-
s.reset(read_data, sizeof(read_data));
|
2590
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2591
|
-
int i = asio::async_read(s, buffers, archetypes::lazy_handler());
|
2592
|
-
ASIO_CHECK(i == 42);
|
2593
|
-
ioc.restart();
|
2594
|
-
ioc.run();
|
2595
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2596
|
-
#endif // defined(ASIO_HAS_BOOST_ARRAY)
|
2597
|
-
}
|
2598
|
-
|
2599
|
-
void test_3_arg_std_array_buffers_async_read()
|
2600
|
-
{
|
2601
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2602
|
-
namespace bindns = boost;
|
2603
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2604
|
-
namespace bindns = std;
|
2605
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2606
|
-
using bindns::placeholders::_1;
|
2607
|
-
using bindns::placeholders::_2;
|
2608
|
-
|
2609
|
-
#if defined(ASIO_HAS_STD_ARRAY)
|
2610
|
-
asio::io_context ioc;
|
2611
|
-
test_stream s(ioc);
|
2612
|
-
char read_buf[sizeof(read_data)];
|
2613
|
-
std::array<asio::mutable_buffer, 2> buffers = { {
|
2614
|
-
asio::buffer(read_buf, 32),
|
2615
|
-
asio::buffer(read_buf) + 32 } };
|
2616
|
-
|
2617
|
-
s.reset(read_data, sizeof(read_data));
|
2618
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2619
|
-
bool called = false;
|
2620
|
-
asio::async_read(s, buffers,
|
2621
|
-
bindns::bind(async_read_handler,
|
2622
|
-
_1, _2, sizeof(read_data), &called));
|
2623
|
-
ioc.restart();
|
2624
|
-
ioc.run();
|
2625
|
-
ASIO_CHECK(called);
|
2626
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2627
|
-
|
2628
|
-
s.reset(read_data, sizeof(read_data));
|
2629
|
-
s.next_read_length(1);
|
2630
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2631
|
-
called = false;
|
2632
|
-
asio::async_read(s, buffers,
|
2633
|
-
bindns::bind(async_read_handler,
|
2634
|
-
_1, _2, sizeof(read_data), &called));
|
2635
|
-
ioc.restart();
|
2636
|
-
ioc.run();
|
2637
|
-
ASIO_CHECK(called);
|
2638
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2639
|
-
|
2640
|
-
s.reset(read_data, sizeof(read_data));
|
2641
|
-
s.next_read_length(10);
|
2642
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2643
|
-
called = false;
|
2644
|
-
asio::async_read(s, buffers,
|
2645
|
-
bindns::bind(async_read_handler,
|
2646
|
-
_1, _2, sizeof(read_data), &called));
|
2647
|
-
ioc.restart();
|
2648
|
-
ioc.run();
|
2649
|
-
ASIO_CHECK(called);
|
2650
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2651
|
-
|
2652
|
-
s.reset(read_data, sizeof(read_data));
|
2653
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2654
|
-
int i = asio::async_read(s, buffers, archetypes::lazy_handler());
|
2655
|
-
ASIO_CHECK(i == 42);
|
2656
|
-
ioc.restart();
|
2657
|
-
ioc.run();
|
2658
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2659
|
-
#endif // defined(ASIO_HAS_STD_ARRAY)
|
2660
|
-
}
|
2661
|
-
|
2662
|
-
void test_3_arg_vector_buffers_async_read()
|
2663
|
-
{
|
2664
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2665
|
-
namespace bindns = boost;
|
2666
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2667
|
-
namespace bindns = std;
|
2668
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2669
|
-
using bindns::placeholders::_1;
|
2670
|
-
using bindns::placeholders::_2;
|
2671
|
-
|
2672
|
-
asio::io_context ioc;
|
2673
|
-
test_stream s(ioc);
|
2674
|
-
char read_buf[sizeof(read_data)];
|
2675
|
-
std::vector<asio::mutable_buffer> buffers;
|
2676
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
2677
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
2678
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
2679
|
-
|
2680
|
-
s.reset(read_data, sizeof(read_data));
|
2681
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2682
|
-
bool called = false;
|
2683
|
-
asio::async_read(s, buffers,
|
2684
|
-
bindns::bind(async_read_handler,
|
2685
|
-
_1, _2, sizeof(read_data), &called));
|
2686
|
-
ioc.restart();
|
2687
|
-
ioc.run();
|
2688
|
-
ASIO_CHECK(called);
|
2689
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2690
|
-
|
2691
|
-
s.reset(read_data, sizeof(read_data));
|
2692
|
-
s.next_read_length(1);
|
2693
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2694
|
-
called = false;
|
2695
|
-
asio::async_read(s, buffers,
|
2696
|
-
bindns::bind(async_read_handler,
|
2697
|
-
_1, _2, sizeof(read_data), &called));
|
2698
|
-
ioc.restart();
|
2699
|
-
ioc.run();
|
2700
|
-
ASIO_CHECK(called);
|
2701
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2702
|
-
|
2703
|
-
s.reset(read_data, sizeof(read_data));
|
2704
|
-
s.next_read_length(10);
|
2705
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2706
|
-
called = false;
|
2707
|
-
asio::async_read(s, buffers,
|
2708
|
-
bindns::bind(async_read_handler,
|
2709
|
-
_1, _2, sizeof(read_data), &called));
|
2710
|
-
ioc.restart();
|
2711
|
-
ioc.run();
|
2712
|
-
ASIO_CHECK(called);
|
2713
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2714
|
-
|
2715
|
-
s.reset(read_data, sizeof(read_data));
|
2716
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2717
|
-
int i = asio::async_read(s, buffers, archetypes::lazy_handler());
|
2718
|
-
ASIO_CHECK(i == 42);
|
2719
|
-
ioc.restart();
|
2720
|
-
ioc.run();
|
2721
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2722
|
-
}
|
2723
|
-
|
2724
|
-
void test_3_arg_dynamic_string_async_read()
|
2725
|
-
{
|
2726
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2727
|
-
namespace bindns = boost;
|
2728
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2729
|
-
namespace bindns = std;
|
2730
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2731
|
-
using bindns::placeholders::_1;
|
2732
|
-
using bindns::placeholders::_2;
|
2733
|
-
|
2734
|
-
asio::io_context ioc;
|
2735
|
-
test_stream s(ioc);
|
2736
|
-
std::string data;
|
2737
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
2738
|
-
std::string::allocator_type> sb
|
2739
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
2740
|
-
|
2741
|
-
s.reset(read_data, sizeof(read_data));
|
2742
|
-
sb.consume(sb.size());
|
2743
|
-
bool called = false;
|
2744
|
-
asio::async_read(s, sb,
|
2745
|
-
bindns::bind(async_read_handler,
|
2746
|
-
_1, _2, sizeof(read_data), &called));
|
2747
|
-
ioc.restart();
|
2748
|
-
ioc.run();
|
2749
|
-
ASIO_CHECK(called);
|
2750
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2751
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2752
|
-
|
2753
|
-
s.reset(read_data, sizeof(read_data));
|
2754
|
-
s.next_read_length(1);
|
2755
|
-
sb.consume(sb.size());
|
2756
|
-
called = false;
|
2757
|
-
asio::async_read(s, sb,
|
2758
|
-
bindns::bind(async_read_handler,
|
2759
|
-
_1, _2, sizeof(read_data), &called));
|
2760
|
-
ioc.restart();
|
2761
|
-
ioc.run();
|
2762
|
-
ASIO_CHECK(called);
|
2763
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2764
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2765
|
-
|
2766
|
-
s.reset(read_data, sizeof(read_data));
|
2767
|
-
s.next_read_length(10);
|
2768
|
-
sb.consume(sb.size());
|
2769
|
-
called = false;
|
2770
|
-
asio::async_read(s, sb,
|
2771
|
-
bindns::bind(async_read_handler,
|
2772
|
-
_1, _2, sizeof(read_data), &called));
|
2773
|
-
ioc.restart();
|
2774
|
-
ioc.run();
|
2775
|
-
ASIO_CHECK(called);
|
2776
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2777
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2778
|
-
|
2779
|
-
s.reset(read_data, sizeof(read_data));
|
2780
|
-
sb.consume(sb.size());
|
2781
|
-
int i = asio::async_read(s, sb, archetypes::lazy_handler());
|
2782
|
-
ASIO_CHECK(i == 42);
|
2783
|
-
ioc.restart();
|
2784
|
-
ioc.run();
|
2785
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2786
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
2787
|
-
}
|
2788
|
-
|
2789
|
-
void test_3_arg_streambuf_async_read()
|
2790
|
-
{
|
2791
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
2792
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2793
|
-
namespace bindns = boost;
|
2794
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2795
|
-
namespace bindns = std;
|
2796
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2797
|
-
using bindns::placeholders::_1;
|
2798
|
-
using bindns::placeholders::_2;
|
2799
|
-
|
2800
|
-
asio::io_context ioc;
|
2801
|
-
test_stream s(ioc);
|
2802
|
-
asio::streambuf sb(sizeof(read_data));
|
2803
|
-
|
2804
|
-
s.reset(read_data, sizeof(read_data));
|
2805
|
-
sb.consume(sb.size());
|
2806
|
-
bool called = false;
|
2807
|
-
asio::async_read(s, sb,
|
2808
|
-
bindns::bind(async_read_handler,
|
2809
|
-
_1, _2, sizeof(read_data), &called));
|
2810
|
-
ioc.restart();
|
2811
|
-
ioc.run();
|
2812
|
-
ASIO_CHECK(called);
|
2813
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2814
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2815
|
-
|
2816
|
-
s.reset(read_data, sizeof(read_data));
|
2817
|
-
s.next_read_length(1);
|
2818
|
-
sb.consume(sb.size());
|
2819
|
-
called = false;
|
2820
|
-
asio::async_read(s, sb,
|
2821
|
-
bindns::bind(async_read_handler,
|
2822
|
-
_1, _2, sizeof(read_data), &called));
|
2823
|
-
ioc.restart();
|
2824
|
-
ioc.run();
|
2825
|
-
ASIO_CHECK(called);
|
2826
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2827
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2828
|
-
|
2829
|
-
s.reset(read_data, sizeof(read_data));
|
2830
|
-
s.next_read_length(10);
|
2831
|
-
sb.consume(sb.size());
|
2832
|
-
called = false;
|
2833
|
-
asio::async_read(s, sb,
|
2834
|
-
bindns::bind(async_read_handler,
|
2835
|
-
_1, _2, sizeof(read_data), &called));
|
2836
|
-
ioc.restart();
|
2837
|
-
ioc.run();
|
2838
|
-
ASIO_CHECK(called);
|
2839
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2840
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2841
|
-
|
2842
|
-
s.reset(read_data, sizeof(read_data));
|
2843
|
-
sb.consume(sb.size());
|
2844
|
-
int i = asio::async_read(s, sb, archetypes::lazy_handler());
|
2845
|
-
ASIO_CHECK(i == 42);
|
2846
|
-
ioc.restart();
|
2847
|
-
ioc.run();
|
2848
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
2849
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
2850
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
2851
|
-
}
|
2852
|
-
|
2853
|
-
void test_4_arg_mutable_buffer_async_read()
|
2854
|
-
{
|
2855
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
2856
|
-
namespace bindns = boost;
|
2857
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
2858
|
-
namespace bindns = std;
|
2859
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
2860
|
-
using bindns::placeholders::_1;
|
2861
|
-
using bindns::placeholders::_2;
|
2862
|
-
|
2863
|
-
asio::io_context ioc;
|
2864
|
-
test_stream s(ioc);
|
2865
|
-
char read_buf[sizeof(read_data)];
|
2866
|
-
asio::mutable_buffer buffers
|
2867
|
-
= asio::buffer(read_buf, sizeof(read_buf));
|
2868
|
-
|
2869
|
-
s.reset(read_data, sizeof(read_data));
|
2870
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2871
|
-
bool called = false;
|
2872
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
2873
|
-
bindns::bind(async_read_handler,
|
2874
|
-
_1, _2, sizeof(read_data), &called));
|
2875
|
-
ioc.restart();
|
2876
|
-
ioc.run();
|
2877
|
-
ASIO_CHECK(called);
|
2878
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2879
|
-
|
2880
|
-
s.reset(read_data, sizeof(read_data));
|
2881
|
-
s.next_read_length(1);
|
2882
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2883
|
-
called = false;
|
2884
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
2885
|
-
bindns::bind(async_read_handler,
|
2886
|
-
_1, _2, sizeof(read_data), &called));
|
2887
|
-
ioc.restart();
|
2888
|
-
ioc.run();
|
2889
|
-
ASIO_CHECK(called);
|
2890
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2891
|
-
|
2892
|
-
s.reset(read_data, sizeof(read_data));
|
2893
|
-
s.next_read_length(10);
|
2894
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2895
|
-
called = false;
|
2896
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
2897
|
-
bindns::bind(async_read_handler,
|
2898
|
-
_1, _2, sizeof(read_data), &called));
|
2899
|
-
ioc.restart();
|
2900
|
-
ioc.run();
|
2901
|
-
ASIO_CHECK(called);
|
2902
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2903
|
-
|
2904
|
-
s.reset(read_data, sizeof(read_data));
|
2905
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2906
|
-
called = false;
|
2907
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
2908
|
-
bindns::bind(async_read_handler,
|
2909
|
-
_1, _2, sizeof(read_data), &called));
|
2910
|
-
ioc.restart();
|
2911
|
-
ioc.run();
|
2912
|
-
ASIO_CHECK(called);
|
2913
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2914
|
-
|
2915
|
-
s.reset(read_data, sizeof(read_data));
|
2916
|
-
s.next_read_length(1);
|
2917
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2918
|
-
called = false;
|
2919
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
2920
|
-
bindns::bind(async_read_handler,
|
2921
|
-
_1, _2, 1, &called));
|
2922
|
-
ioc.restart();
|
2923
|
-
ioc.run();
|
2924
|
-
ASIO_CHECK(called);
|
2925
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
2926
|
-
|
2927
|
-
s.reset(read_data, sizeof(read_data));
|
2928
|
-
s.next_read_length(10);
|
2929
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2930
|
-
called = false;
|
2931
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
2932
|
-
bindns::bind(async_read_handler,
|
2933
|
-
_1, _2, 10, &called));
|
2934
|
-
ioc.restart();
|
2935
|
-
ioc.run();
|
2936
|
-
ASIO_CHECK(called);
|
2937
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
2938
|
-
|
2939
|
-
s.reset(read_data, sizeof(read_data));
|
2940
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2941
|
-
called = false;
|
2942
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
2943
|
-
bindns::bind(async_read_handler,
|
2944
|
-
_1, _2, sizeof(read_data), &called));
|
2945
|
-
ioc.restart();
|
2946
|
-
ioc.run();
|
2947
|
-
ASIO_CHECK(called);
|
2948
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2949
|
-
|
2950
|
-
s.reset(read_data, sizeof(read_data));
|
2951
|
-
s.next_read_length(1);
|
2952
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2953
|
-
called = false;
|
2954
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
2955
|
-
bindns::bind(async_read_handler,
|
2956
|
-
_1, _2, 10, &called));
|
2957
|
-
ioc.restart();
|
2958
|
-
ioc.run();
|
2959
|
-
ASIO_CHECK(called);
|
2960
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
2961
|
-
|
2962
|
-
s.reset(read_data, sizeof(read_data));
|
2963
|
-
s.next_read_length(10);
|
2964
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2965
|
-
called = false;
|
2966
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
2967
|
-
bindns::bind(async_read_handler,
|
2968
|
-
_1, _2, 10, &called));
|
2969
|
-
ioc.restart();
|
2970
|
-
ioc.run();
|
2971
|
-
ASIO_CHECK(called);
|
2972
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
2973
|
-
|
2974
|
-
s.reset(read_data, sizeof(read_data));
|
2975
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2976
|
-
called = false;
|
2977
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
2978
|
-
bindns::bind(async_read_handler,
|
2979
|
-
_1, _2, sizeof(read_data), &called));
|
2980
|
-
ioc.restart();
|
2981
|
-
ioc.run();
|
2982
|
-
ASIO_CHECK(called);
|
2983
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
2984
|
-
|
2985
|
-
s.reset(read_data, sizeof(read_data));
|
2986
|
-
s.next_read_length(1);
|
2987
|
-
memset(read_buf, 0, sizeof(read_buf));
|
2988
|
-
called = false;
|
2989
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
2990
|
-
bindns::bind(async_read_handler,
|
2991
|
-
_1, _2, 42, &called));
|
2992
|
-
ioc.restart();
|
2993
|
-
ioc.run();
|
2994
|
-
ASIO_CHECK(called);
|
2995
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
2996
|
-
|
2997
|
-
s.reset(read_data, sizeof(read_data));
|
2998
|
-
s.next_read_length(10);
|
2999
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3000
|
-
called = false;
|
3001
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3002
|
-
bindns::bind(async_read_handler,
|
3003
|
-
_1, _2, 50, &called));
|
3004
|
-
ioc.restart();
|
3005
|
-
ioc.run();
|
3006
|
-
ASIO_CHECK(called);
|
3007
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
3008
|
-
|
3009
|
-
s.reset(read_data, sizeof(read_data));
|
3010
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3011
|
-
called = false;
|
3012
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3013
|
-
bindns::bind(async_read_handler,
|
3014
|
-
_1, _2, 1, &called));
|
3015
|
-
ioc.restart();
|
3016
|
-
ioc.run();
|
3017
|
-
ASIO_CHECK(called);
|
3018
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3019
|
-
|
3020
|
-
s.reset(read_data, sizeof(read_data));
|
3021
|
-
s.next_read_length(1);
|
3022
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3023
|
-
called = false;
|
3024
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3025
|
-
bindns::bind(async_read_handler,
|
3026
|
-
_1, _2, 1, &called));
|
3027
|
-
ioc.restart();
|
3028
|
-
ioc.run();
|
3029
|
-
ASIO_CHECK(called);
|
3030
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3031
|
-
|
3032
|
-
s.reset(read_data, sizeof(read_data));
|
3033
|
-
s.next_read_length(10);
|
3034
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3035
|
-
called = false;
|
3036
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3037
|
-
bindns::bind(async_read_handler,
|
3038
|
-
_1, _2, 1, &called));
|
3039
|
-
ioc.restart();
|
3040
|
-
ioc.run();
|
3041
|
-
ASIO_CHECK(called);
|
3042
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3043
|
-
|
3044
|
-
s.reset(read_data, sizeof(read_data));
|
3045
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3046
|
-
called = false;
|
3047
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3048
|
-
bindns::bind(async_read_handler,
|
3049
|
-
_1, _2, 10, &called));
|
3050
|
-
ioc.restart();
|
3051
|
-
ioc.run();
|
3052
|
-
ASIO_CHECK(called);
|
3053
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3054
|
-
|
3055
|
-
s.reset(read_data, sizeof(read_data));
|
3056
|
-
s.next_read_length(1);
|
3057
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3058
|
-
called = false;
|
3059
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3060
|
-
bindns::bind(async_read_handler,
|
3061
|
-
_1, _2, 10, &called));
|
3062
|
-
ioc.restart();
|
3063
|
-
ioc.run();
|
3064
|
-
ASIO_CHECK(called);
|
3065
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3066
|
-
|
3067
|
-
s.reset(read_data, sizeof(read_data));
|
3068
|
-
s.next_read_length(10);
|
3069
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3070
|
-
called = false;
|
3071
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3072
|
-
bindns::bind(async_read_handler,
|
3073
|
-
_1, _2, 10, &called));
|
3074
|
-
ioc.restart();
|
3075
|
-
ioc.run();
|
3076
|
-
ASIO_CHECK(called);
|
3077
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3078
|
-
|
3079
|
-
s.reset(read_data, sizeof(read_data));
|
3080
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3081
|
-
called = false;
|
3082
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3083
|
-
bindns::bind(async_read_handler,
|
3084
|
-
_1, _2, 42, &called));
|
3085
|
-
ioc.restart();
|
3086
|
-
ioc.run();
|
3087
|
-
ASIO_CHECK(called);
|
3088
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3089
|
-
|
3090
|
-
s.reset(read_data, sizeof(read_data));
|
3091
|
-
s.next_read_length(1);
|
3092
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3093
|
-
called = false;
|
3094
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3095
|
-
bindns::bind(async_read_handler,
|
3096
|
-
_1, _2, 42, &called));
|
3097
|
-
ioc.restart();
|
3098
|
-
ioc.run();
|
3099
|
-
ASIO_CHECK(called);
|
3100
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3101
|
-
|
3102
|
-
s.reset(read_data, sizeof(read_data));
|
3103
|
-
s.next_read_length(10);
|
3104
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3105
|
-
called = false;
|
3106
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3107
|
-
bindns::bind(async_read_handler,
|
3108
|
-
_1, _2, 42, &called));
|
3109
|
-
ioc.restart();
|
3110
|
-
ioc.run();
|
3111
|
-
ASIO_CHECK(called);
|
3112
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3113
|
-
|
3114
|
-
s.reset(read_data, sizeof(read_data));
|
3115
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3116
|
-
called = false;
|
3117
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3118
|
-
bindns::bind(async_read_handler,
|
3119
|
-
_1, _2, sizeof(read_data), &called));
|
3120
|
-
ioc.restart();
|
3121
|
-
ioc.run();
|
3122
|
-
ASIO_CHECK(called);
|
3123
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3124
|
-
|
3125
|
-
s.reset(read_data, sizeof(read_data));
|
3126
|
-
s.next_read_length(1);
|
3127
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3128
|
-
called = false;
|
3129
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3130
|
-
bindns::bind(async_read_handler,
|
3131
|
-
_1, _2, sizeof(read_data), &called));
|
3132
|
-
ioc.restart();
|
3133
|
-
ioc.run();
|
3134
|
-
ASIO_CHECK(called);
|
3135
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3136
|
-
|
3137
|
-
s.reset(read_data, sizeof(read_data));
|
3138
|
-
s.next_read_length(10);
|
3139
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3140
|
-
called = false;
|
3141
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3142
|
-
bindns::bind(async_read_handler,
|
3143
|
-
_1, _2, sizeof(read_data), &called));
|
3144
|
-
ioc.restart();
|
3145
|
-
ioc.run();
|
3146
|
-
ASIO_CHECK(called);
|
3147
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3148
|
-
|
3149
|
-
s.reset(read_data, sizeof(read_data));
|
3150
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3151
|
-
called = false;
|
3152
|
-
asio::async_read(s, buffers, short_transfer(),
|
3153
|
-
bindns::bind(async_read_handler,
|
3154
|
-
_1, _2, sizeof(read_data), &called));
|
3155
|
-
ioc.restart();
|
3156
|
-
ioc.run();
|
3157
|
-
ASIO_CHECK(called);
|
3158
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3159
|
-
|
3160
|
-
s.reset(read_data, sizeof(read_data));
|
3161
|
-
s.next_read_length(1);
|
3162
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3163
|
-
called = false;
|
3164
|
-
asio::async_read(s, buffers, short_transfer(),
|
3165
|
-
bindns::bind(async_read_handler,
|
3166
|
-
_1, _2, sizeof(read_data), &called));
|
3167
|
-
ioc.restart();
|
3168
|
-
ioc.run();
|
3169
|
-
ASIO_CHECK(called);
|
3170
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3171
|
-
|
3172
|
-
s.reset(read_data, sizeof(read_data));
|
3173
|
-
s.next_read_length(10);
|
3174
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3175
|
-
called = false;
|
3176
|
-
asio::async_read(s, buffers, short_transfer(),
|
3177
|
-
bindns::bind(async_read_handler,
|
3178
|
-
_1, _2, sizeof(read_data), &called));
|
3179
|
-
ioc.restart();
|
3180
|
-
ioc.run();
|
3181
|
-
ASIO_CHECK(called);
|
3182
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3183
|
-
|
3184
|
-
s.reset(read_data, sizeof(read_data));
|
3185
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3186
|
-
int i = asio::async_read(s, buffers,
|
3187
|
-
short_transfer(), archetypes::lazy_handler());
|
3188
|
-
ASIO_CHECK(i == 42);
|
3189
|
-
ioc.restart();
|
3190
|
-
ioc.run();
|
3191
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3192
|
-
}
|
3193
|
-
|
3194
|
-
void test_4_arg_boost_array_buffers_async_read()
|
3195
|
-
{
|
3196
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
3197
|
-
namespace bindns = boost;
|
3198
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
3199
|
-
namespace bindns = std;
|
3200
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
3201
|
-
using bindns::placeholders::_1;
|
3202
|
-
using bindns::placeholders::_2;
|
3203
|
-
|
3204
|
-
#if defined(ASIO_HAS_BOOST_ARRAY)
|
3205
|
-
asio::io_context ioc;
|
3206
|
-
test_stream s(ioc);
|
3207
|
-
char read_buf[sizeof(read_data)];
|
3208
|
-
boost::array<asio::mutable_buffer, 2> buffers = { {
|
3209
|
-
asio::buffer(read_buf, 32),
|
3210
|
-
asio::buffer(read_buf) + 32 } };
|
3211
|
-
|
3212
|
-
s.reset(read_data, sizeof(read_data));
|
3213
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3214
|
-
bool called = false;
|
3215
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3216
|
-
bindns::bind(async_read_handler,
|
3217
|
-
_1, _2, sizeof(read_data), &called));
|
3218
|
-
ioc.restart();
|
3219
|
-
ioc.run();
|
3220
|
-
ASIO_CHECK(called);
|
3221
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3222
|
-
|
3223
|
-
s.reset(read_data, sizeof(read_data));
|
3224
|
-
s.next_read_length(1);
|
3225
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3226
|
-
called = false;
|
3227
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3228
|
-
bindns::bind(async_read_handler,
|
3229
|
-
_1, _2, sizeof(read_data), &called));
|
3230
|
-
ioc.restart();
|
3231
|
-
ioc.run();
|
3232
|
-
ASIO_CHECK(called);
|
3233
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3234
|
-
|
3235
|
-
s.reset(read_data, sizeof(read_data));
|
3236
|
-
s.next_read_length(10);
|
3237
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3238
|
-
called = false;
|
3239
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3240
|
-
bindns::bind(async_read_handler,
|
3241
|
-
_1, _2, sizeof(read_data), &called));
|
3242
|
-
ioc.restart();
|
3243
|
-
ioc.run();
|
3244
|
-
ASIO_CHECK(called);
|
3245
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3246
|
-
|
3247
|
-
s.reset(read_data, sizeof(read_data));
|
3248
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3249
|
-
called = false;
|
3250
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3251
|
-
bindns::bind(async_read_handler,
|
3252
|
-
_1, _2, sizeof(read_data), &called));
|
3253
|
-
ioc.restart();
|
3254
|
-
ioc.run();
|
3255
|
-
ASIO_CHECK(called);
|
3256
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3257
|
-
|
3258
|
-
s.reset(read_data, sizeof(read_data));
|
3259
|
-
s.next_read_length(1);
|
3260
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3261
|
-
called = false;
|
3262
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3263
|
-
bindns::bind(async_read_handler,
|
3264
|
-
_1, _2, 1, &called));
|
3265
|
-
ioc.restart();
|
3266
|
-
ioc.run();
|
3267
|
-
ASIO_CHECK(called);
|
3268
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3269
|
-
|
3270
|
-
s.reset(read_data, sizeof(read_data));
|
3271
|
-
s.next_read_length(10);
|
3272
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3273
|
-
called = false;
|
3274
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3275
|
-
bindns::bind(async_read_handler,
|
3276
|
-
_1, _2, 10, &called));
|
3277
|
-
ioc.restart();
|
3278
|
-
ioc.run();
|
3279
|
-
ASIO_CHECK(called);
|
3280
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3281
|
-
|
3282
|
-
s.reset(read_data, sizeof(read_data));
|
3283
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3284
|
-
called = false;
|
3285
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3286
|
-
bindns::bind(async_read_handler,
|
3287
|
-
_1, _2, sizeof(read_data), &called));
|
3288
|
-
ioc.restart();
|
3289
|
-
ioc.run();
|
3290
|
-
ASIO_CHECK(called);
|
3291
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3292
|
-
|
3293
|
-
s.reset(read_data, sizeof(read_data));
|
3294
|
-
s.next_read_length(1);
|
3295
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3296
|
-
called = false;
|
3297
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3298
|
-
bindns::bind(async_read_handler,
|
3299
|
-
_1, _2, 10, &called));
|
3300
|
-
ioc.restart();
|
3301
|
-
ioc.run();
|
3302
|
-
ASIO_CHECK(called);
|
3303
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3304
|
-
|
3305
|
-
s.reset(read_data, sizeof(read_data));
|
3306
|
-
s.next_read_length(10);
|
3307
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3308
|
-
called = false;
|
3309
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3310
|
-
bindns::bind(async_read_handler,
|
3311
|
-
_1, _2, 10, &called));
|
3312
|
-
ioc.restart();
|
3313
|
-
ioc.run();
|
3314
|
-
ASIO_CHECK(called);
|
3315
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3316
|
-
|
3317
|
-
s.reset(read_data, sizeof(read_data));
|
3318
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3319
|
-
called = false;
|
3320
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3321
|
-
bindns::bind(async_read_handler,
|
3322
|
-
_1, _2, sizeof(read_data), &called));
|
3323
|
-
ioc.restart();
|
3324
|
-
ioc.run();
|
3325
|
-
ASIO_CHECK(called);
|
3326
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3327
|
-
|
3328
|
-
s.reset(read_data, sizeof(read_data));
|
3329
|
-
s.next_read_length(1);
|
3330
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3331
|
-
called = false;
|
3332
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3333
|
-
bindns::bind(async_read_handler,
|
3334
|
-
_1, _2, 42, &called));
|
3335
|
-
ioc.restart();
|
3336
|
-
ioc.run();
|
3337
|
-
ASIO_CHECK(called);
|
3338
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3339
|
-
|
3340
|
-
s.reset(read_data, sizeof(read_data));
|
3341
|
-
s.next_read_length(10);
|
3342
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3343
|
-
called = false;
|
3344
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3345
|
-
bindns::bind(async_read_handler,
|
3346
|
-
_1, _2, 50, &called));
|
3347
|
-
ioc.restart();
|
3348
|
-
ioc.run();
|
3349
|
-
ASIO_CHECK(called);
|
3350
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
3351
|
-
|
3352
|
-
s.reset(read_data, sizeof(read_data));
|
3353
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3354
|
-
called = false;
|
3355
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3356
|
-
bindns::bind(async_read_handler,
|
3357
|
-
_1, _2, 1, &called));
|
3358
|
-
ioc.restart();
|
3359
|
-
ioc.run();
|
3360
|
-
ASIO_CHECK(called);
|
3361
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3362
|
-
|
3363
|
-
s.reset(read_data, sizeof(read_data));
|
3364
|
-
s.next_read_length(1);
|
3365
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3366
|
-
called = false;
|
3367
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3368
|
-
bindns::bind(async_read_handler,
|
3369
|
-
_1, _2, 1, &called));
|
3370
|
-
ioc.restart();
|
3371
|
-
ioc.run();
|
3372
|
-
ASIO_CHECK(called);
|
3373
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3374
|
-
|
3375
|
-
s.reset(read_data, sizeof(read_data));
|
3376
|
-
s.next_read_length(10);
|
3377
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3378
|
-
called = false;
|
3379
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3380
|
-
bindns::bind(async_read_handler,
|
3381
|
-
_1, _2, 1, &called));
|
3382
|
-
ioc.restart();
|
3383
|
-
ioc.run();
|
3384
|
-
ASIO_CHECK(called);
|
3385
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3386
|
-
|
3387
|
-
s.reset(read_data, sizeof(read_data));
|
3388
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3389
|
-
called = false;
|
3390
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3391
|
-
bindns::bind(async_read_handler,
|
3392
|
-
_1, _2, 10, &called));
|
3393
|
-
ioc.restart();
|
3394
|
-
ioc.run();
|
3395
|
-
ASIO_CHECK(called);
|
3396
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3397
|
-
|
3398
|
-
s.reset(read_data, sizeof(read_data));
|
3399
|
-
s.next_read_length(1);
|
3400
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3401
|
-
called = false;
|
3402
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3403
|
-
bindns::bind(async_read_handler,
|
3404
|
-
_1, _2, 10, &called));
|
3405
|
-
ioc.restart();
|
3406
|
-
ioc.run();
|
3407
|
-
ASIO_CHECK(called);
|
3408
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3409
|
-
|
3410
|
-
s.reset(read_data, sizeof(read_data));
|
3411
|
-
s.next_read_length(10);
|
3412
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3413
|
-
called = false;
|
3414
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3415
|
-
bindns::bind(async_read_handler,
|
3416
|
-
_1, _2, 10, &called));
|
3417
|
-
ioc.restart();
|
3418
|
-
ioc.run();
|
3419
|
-
ASIO_CHECK(called);
|
3420
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3421
|
-
|
3422
|
-
s.reset(read_data, sizeof(read_data));
|
3423
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3424
|
-
called = false;
|
3425
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3426
|
-
bindns::bind(async_read_handler,
|
3427
|
-
_1, _2, 42, &called));
|
3428
|
-
ioc.restart();
|
3429
|
-
ioc.run();
|
3430
|
-
ASIO_CHECK(called);
|
3431
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3432
|
-
|
3433
|
-
s.reset(read_data, sizeof(read_data));
|
3434
|
-
s.next_read_length(1);
|
3435
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3436
|
-
called = false;
|
3437
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3438
|
-
bindns::bind(async_read_handler,
|
3439
|
-
_1, _2, 42, &called));
|
3440
|
-
ioc.restart();
|
3441
|
-
ioc.run();
|
3442
|
-
ASIO_CHECK(called);
|
3443
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3444
|
-
|
3445
|
-
s.reset(read_data, sizeof(read_data));
|
3446
|
-
s.next_read_length(10);
|
3447
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3448
|
-
called = false;
|
3449
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3450
|
-
bindns::bind(async_read_handler,
|
3451
|
-
_1, _2, 42, &called));
|
3452
|
-
ioc.restart();
|
3453
|
-
ioc.run();
|
3454
|
-
ASIO_CHECK(called);
|
3455
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3456
|
-
|
3457
|
-
s.reset(read_data, sizeof(read_data));
|
3458
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3459
|
-
called = false;
|
3460
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3461
|
-
bindns::bind(async_read_handler,
|
3462
|
-
_1, _2, sizeof(read_data), &called));
|
3463
|
-
ioc.restart();
|
3464
|
-
ioc.run();
|
3465
|
-
ASIO_CHECK(called);
|
3466
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3467
|
-
|
3468
|
-
s.reset(read_data, sizeof(read_data));
|
3469
|
-
s.next_read_length(1);
|
3470
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3471
|
-
called = false;
|
3472
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3473
|
-
bindns::bind(async_read_handler,
|
3474
|
-
_1, _2, sizeof(read_data), &called));
|
3475
|
-
ioc.restart();
|
3476
|
-
ioc.run();
|
3477
|
-
ASIO_CHECK(called);
|
3478
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3479
|
-
|
3480
|
-
s.reset(read_data, sizeof(read_data));
|
3481
|
-
s.next_read_length(10);
|
3482
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3483
|
-
called = false;
|
3484
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3485
|
-
bindns::bind(async_read_handler,
|
3486
|
-
_1, _2, sizeof(read_data), &called));
|
3487
|
-
ioc.restart();
|
3488
|
-
ioc.run();
|
3489
|
-
ASIO_CHECK(called);
|
3490
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3491
|
-
|
3492
|
-
s.reset(read_data, sizeof(read_data));
|
3493
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3494
|
-
called = false;
|
3495
|
-
asio::async_read(s, buffers, short_transfer(),
|
3496
|
-
bindns::bind(async_read_handler,
|
3497
|
-
_1, _2, sizeof(read_data), &called));
|
3498
|
-
ioc.restart();
|
3499
|
-
ioc.run();
|
3500
|
-
ASIO_CHECK(called);
|
3501
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3502
|
-
|
3503
|
-
s.reset(read_data, sizeof(read_data));
|
3504
|
-
s.next_read_length(1);
|
3505
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3506
|
-
called = false;
|
3507
|
-
asio::async_read(s, buffers, short_transfer(),
|
3508
|
-
bindns::bind(async_read_handler,
|
3509
|
-
_1, _2, sizeof(read_data), &called));
|
3510
|
-
ioc.restart();
|
3511
|
-
ioc.run();
|
3512
|
-
ASIO_CHECK(called);
|
3513
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3514
|
-
|
3515
|
-
s.reset(read_data, sizeof(read_data));
|
3516
|
-
s.next_read_length(10);
|
3517
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3518
|
-
called = false;
|
3519
|
-
asio::async_read(s, buffers, short_transfer(),
|
3520
|
-
bindns::bind(async_read_handler,
|
3521
|
-
_1, _2, sizeof(read_data), &called));
|
3522
|
-
ioc.restart();
|
3523
|
-
ioc.run();
|
3524
|
-
ASIO_CHECK(called);
|
3525
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3526
|
-
|
3527
|
-
s.reset(read_data, sizeof(read_data));
|
3528
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3529
|
-
int i = asio::async_read(s, buffers,
|
3530
|
-
short_transfer(), archetypes::lazy_handler());
|
3531
|
-
ASIO_CHECK(i == 42);
|
3532
|
-
ioc.restart();
|
3533
|
-
ioc.run();
|
3534
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3535
|
-
#endif // defined(ASIO_HAS_BOOST_ARRAY)
|
3536
|
-
}
|
3537
|
-
|
3538
|
-
void test_4_arg_std_array_buffers_async_read()
|
3539
|
-
{
|
3540
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
3541
|
-
namespace bindns = boost;
|
3542
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
3543
|
-
namespace bindns = std;
|
3544
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
3545
|
-
using bindns::placeholders::_1;
|
3546
|
-
using bindns::placeholders::_2;
|
3547
|
-
|
3548
|
-
#if defined(ASIO_HAS_STD_ARRAY)
|
3549
|
-
asio::io_context ioc;
|
3550
|
-
test_stream s(ioc);
|
3551
|
-
char read_buf[sizeof(read_data)];
|
3552
|
-
std::array<asio::mutable_buffer, 2> buffers = { {
|
3553
|
-
asio::buffer(read_buf, 32),
|
3554
|
-
asio::buffer(read_buf) + 32 } };
|
3555
|
-
|
3556
|
-
s.reset(read_data, sizeof(read_data));
|
3557
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3558
|
-
bool called = false;
|
3559
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3560
|
-
bindns::bind(async_read_handler,
|
3561
|
-
_1, _2, sizeof(read_data), &called));
|
3562
|
-
ioc.restart();
|
3563
|
-
ioc.run();
|
3564
|
-
ASIO_CHECK(called);
|
3565
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3566
|
-
|
3567
|
-
s.reset(read_data, sizeof(read_data));
|
3568
|
-
s.next_read_length(1);
|
3569
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3570
|
-
called = false;
|
3571
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3572
|
-
bindns::bind(async_read_handler,
|
3573
|
-
_1, _2, sizeof(read_data), &called));
|
3574
|
-
ioc.restart();
|
3575
|
-
ioc.run();
|
3576
|
-
ASIO_CHECK(called);
|
3577
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3578
|
-
|
3579
|
-
s.reset(read_data, sizeof(read_data));
|
3580
|
-
s.next_read_length(10);
|
3581
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3582
|
-
called = false;
|
3583
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3584
|
-
bindns::bind(async_read_handler,
|
3585
|
-
_1, _2, sizeof(read_data), &called));
|
3586
|
-
ioc.restart();
|
3587
|
-
ioc.run();
|
3588
|
-
ASIO_CHECK(called);
|
3589
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3590
|
-
|
3591
|
-
s.reset(read_data, sizeof(read_data));
|
3592
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3593
|
-
called = false;
|
3594
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3595
|
-
bindns::bind(async_read_handler,
|
3596
|
-
_1, _2, sizeof(read_data), &called));
|
3597
|
-
ioc.restart();
|
3598
|
-
ioc.run();
|
3599
|
-
ASIO_CHECK(called);
|
3600
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3601
|
-
|
3602
|
-
s.reset(read_data, sizeof(read_data));
|
3603
|
-
s.next_read_length(1);
|
3604
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3605
|
-
called = false;
|
3606
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3607
|
-
bindns::bind(async_read_handler,
|
3608
|
-
_1, _2, 1, &called));
|
3609
|
-
ioc.restart();
|
3610
|
-
ioc.run();
|
3611
|
-
ASIO_CHECK(called);
|
3612
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3613
|
-
|
3614
|
-
s.reset(read_data, sizeof(read_data));
|
3615
|
-
s.next_read_length(10);
|
3616
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3617
|
-
called = false;
|
3618
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3619
|
-
bindns::bind(async_read_handler,
|
3620
|
-
_1, _2, 10, &called));
|
3621
|
-
ioc.restart();
|
3622
|
-
ioc.run();
|
3623
|
-
ASIO_CHECK(called);
|
3624
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3625
|
-
|
3626
|
-
s.reset(read_data, sizeof(read_data));
|
3627
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3628
|
-
called = false;
|
3629
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3630
|
-
bindns::bind(async_read_handler,
|
3631
|
-
_1, _2, sizeof(read_data), &called));
|
3632
|
-
ioc.restart();
|
3633
|
-
ioc.run();
|
3634
|
-
ASIO_CHECK(called);
|
3635
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3636
|
-
|
3637
|
-
s.reset(read_data, sizeof(read_data));
|
3638
|
-
s.next_read_length(1);
|
3639
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3640
|
-
called = false;
|
3641
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3642
|
-
bindns::bind(async_read_handler,
|
3643
|
-
_1, _2, 10, &called));
|
3644
|
-
ioc.restart();
|
3645
|
-
ioc.run();
|
3646
|
-
ASIO_CHECK(called);
|
3647
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3648
|
-
|
3649
|
-
s.reset(read_data, sizeof(read_data));
|
3650
|
-
s.next_read_length(10);
|
3651
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3652
|
-
called = false;
|
3653
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3654
|
-
bindns::bind(async_read_handler,
|
3655
|
-
_1, _2, 10, &called));
|
3656
|
-
ioc.restart();
|
3657
|
-
ioc.run();
|
3658
|
-
ASIO_CHECK(called);
|
3659
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3660
|
-
|
3661
|
-
s.reset(read_data, sizeof(read_data));
|
3662
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3663
|
-
called = false;
|
3664
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3665
|
-
bindns::bind(async_read_handler,
|
3666
|
-
_1, _2, sizeof(read_data), &called));
|
3667
|
-
ioc.restart();
|
3668
|
-
ioc.run();
|
3669
|
-
ASIO_CHECK(called);
|
3670
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3671
|
-
|
3672
|
-
s.reset(read_data, sizeof(read_data));
|
3673
|
-
s.next_read_length(1);
|
3674
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3675
|
-
called = false;
|
3676
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3677
|
-
bindns::bind(async_read_handler,
|
3678
|
-
_1, _2, 42, &called));
|
3679
|
-
ioc.restart();
|
3680
|
-
ioc.run();
|
3681
|
-
ASIO_CHECK(called);
|
3682
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3683
|
-
|
3684
|
-
s.reset(read_data, sizeof(read_data));
|
3685
|
-
s.next_read_length(10);
|
3686
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3687
|
-
called = false;
|
3688
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
3689
|
-
bindns::bind(async_read_handler,
|
3690
|
-
_1, _2, 50, &called));
|
3691
|
-
ioc.restart();
|
3692
|
-
ioc.run();
|
3693
|
-
ASIO_CHECK(called);
|
3694
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
3695
|
-
|
3696
|
-
s.reset(read_data, sizeof(read_data));
|
3697
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3698
|
-
called = false;
|
3699
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3700
|
-
bindns::bind(async_read_handler,
|
3701
|
-
_1, _2, 1, &called));
|
3702
|
-
ioc.restart();
|
3703
|
-
ioc.run();
|
3704
|
-
ASIO_CHECK(called);
|
3705
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3706
|
-
|
3707
|
-
s.reset(read_data, sizeof(read_data));
|
3708
|
-
s.next_read_length(1);
|
3709
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3710
|
-
called = false;
|
3711
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3712
|
-
bindns::bind(async_read_handler,
|
3713
|
-
_1, _2, 1, &called));
|
3714
|
-
ioc.restart();
|
3715
|
-
ioc.run();
|
3716
|
-
ASIO_CHECK(called);
|
3717
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3718
|
-
|
3719
|
-
s.reset(read_data, sizeof(read_data));
|
3720
|
-
s.next_read_length(10);
|
3721
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3722
|
-
called = false;
|
3723
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
3724
|
-
bindns::bind(async_read_handler,
|
3725
|
-
_1, _2, 1, &called));
|
3726
|
-
ioc.restart();
|
3727
|
-
ioc.run();
|
3728
|
-
ASIO_CHECK(called);
|
3729
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3730
|
-
|
3731
|
-
s.reset(read_data, sizeof(read_data));
|
3732
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3733
|
-
called = false;
|
3734
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3735
|
-
bindns::bind(async_read_handler,
|
3736
|
-
_1, _2, 10, &called));
|
3737
|
-
ioc.restart();
|
3738
|
-
ioc.run();
|
3739
|
-
ASIO_CHECK(called);
|
3740
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3741
|
-
|
3742
|
-
s.reset(read_data, sizeof(read_data));
|
3743
|
-
s.next_read_length(1);
|
3744
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3745
|
-
called = false;
|
3746
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3747
|
-
bindns::bind(async_read_handler,
|
3748
|
-
_1, _2, 10, &called));
|
3749
|
-
ioc.restart();
|
3750
|
-
ioc.run();
|
3751
|
-
ASIO_CHECK(called);
|
3752
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3753
|
-
|
3754
|
-
s.reset(read_data, sizeof(read_data));
|
3755
|
-
s.next_read_length(10);
|
3756
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3757
|
-
called = false;
|
3758
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
3759
|
-
bindns::bind(async_read_handler,
|
3760
|
-
_1, _2, 10, &called));
|
3761
|
-
ioc.restart();
|
3762
|
-
ioc.run();
|
3763
|
-
ASIO_CHECK(called);
|
3764
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3765
|
-
|
3766
|
-
s.reset(read_data, sizeof(read_data));
|
3767
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3768
|
-
called = false;
|
3769
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3770
|
-
bindns::bind(async_read_handler,
|
3771
|
-
_1, _2, 42, &called));
|
3772
|
-
ioc.restart();
|
3773
|
-
ioc.run();
|
3774
|
-
ASIO_CHECK(called);
|
3775
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3776
|
-
|
3777
|
-
s.reset(read_data, sizeof(read_data));
|
3778
|
-
s.next_read_length(1);
|
3779
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3780
|
-
called = false;
|
3781
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3782
|
-
bindns::bind(async_read_handler,
|
3783
|
-
_1, _2, 42, &called));
|
3784
|
-
ioc.restart();
|
3785
|
-
ioc.run();
|
3786
|
-
ASIO_CHECK(called);
|
3787
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3788
|
-
|
3789
|
-
s.reset(read_data, sizeof(read_data));
|
3790
|
-
s.next_read_length(10);
|
3791
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3792
|
-
called = false;
|
3793
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
3794
|
-
bindns::bind(async_read_handler,
|
3795
|
-
_1, _2, 42, &called));
|
3796
|
-
ioc.restart();
|
3797
|
-
ioc.run();
|
3798
|
-
ASIO_CHECK(called);
|
3799
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
3800
|
-
|
3801
|
-
s.reset(read_data, sizeof(read_data));
|
3802
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3803
|
-
called = false;
|
3804
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3805
|
-
bindns::bind(async_read_handler,
|
3806
|
-
_1, _2, sizeof(read_data), &called));
|
3807
|
-
ioc.restart();
|
3808
|
-
ioc.run();
|
3809
|
-
ASIO_CHECK(called);
|
3810
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3811
|
-
|
3812
|
-
s.reset(read_data, sizeof(read_data));
|
3813
|
-
s.next_read_length(1);
|
3814
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3815
|
-
called = false;
|
3816
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3817
|
-
bindns::bind(async_read_handler,
|
3818
|
-
_1, _2, sizeof(read_data), &called));
|
3819
|
-
ioc.restart();
|
3820
|
-
ioc.run();
|
3821
|
-
ASIO_CHECK(called);
|
3822
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3823
|
-
|
3824
|
-
s.reset(read_data, sizeof(read_data));
|
3825
|
-
s.next_read_length(10);
|
3826
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3827
|
-
called = false;
|
3828
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
3829
|
-
bindns::bind(async_read_handler,
|
3830
|
-
_1, _2, sizeof(read_data), &called));
|
3831
|
-
ioc.restart();
|
3832
|
-
ioc.run();
|
3833
|
-
ASIO_CHECK(called);
|
3834
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3835
|
-
|
3836
|
-
s.reset(read_data, sizeof(read_data));
|
3837
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3838
|
-
called = false;
|
3839
|
-
asio::async_read(s, buffers, short_transfer(),
|
3840
|
-
bindns::bind(async_read_handler,
|
3841
|
-
_1, _2, sizeof(read_data), &called));
|
3842
|
-
ioc.restart();
|
3843
|
-
ioc.run();
|
3844
|
-
ASIO_CHECK(called);
|
3845
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3846
|
-
|
3847
|
-
s.reset(read_data, sizeof(read_data));
|
3848
|
-
s.next_read_length(1);
|
3849
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3850
|
-
called = false;
|
3851
|
-
asio::async_read(s, buffers, short_transfer(),
|
3852
|
-
bindns::bind(async_read_handler,
|
3853
|
-
_1, _2, sizeof(read_data), &called));
|
3854
|
-
ioc.restart();
|
3855
|
-
ioc.run();
|
3856
|
-
ASIO_CHECK(called);
|
3857
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3858
|
-
|
3859
|
-
s.reset(read_data, sizeof(read_data));
|
3860
|
-
s.next_read_length(10);
|
3861
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3862
|
-
called = false;
|
3863
|
-
asio::async_read(s, buffers, short_transfer(),
|
3864
|
-
bindns::bind(async_read_handler,
|
3865
|
-
_1, _2, sizeof(read_data), &called));
|
3866
|
-
ioc.restart();
|
3867
|
-
ioc.run();
|
3868
|
-
ASIO_CHECK(called);
|
3869
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3870
|
-
|
3871
|
-
s.reset(read_data, sizeof(read_data));
|
3872
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3873
|
-
int i = asio::async_read(s, buffers,
|
3874
|
-
short_transfer(), archetypes::lazy_handler());
|
3875
|
-
ASIO_CHECK(i == 42);
|
3876
|
-
ioc.restart();
|
3877
|
-
ioc.run();
|
3878
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3879
|
-
#endif // defined(ASIO_HAS_STD_ARRAY)
|
3880
|
-
}
|
3881
|
-
|
3882
|
-
void test_4_arg_vector_buffers_async_read()
|
3883
|
-
{
|
3884
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
3885
|
-
namespace bindns = boost;
|
3886
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
3887
|
-
namespace bindns = std;
|
3888
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
3889
|
-
using bindns::placeholders::_1;
|
3890
|
-
using bindns::placeholders::_2;
|
3891
|
-
|
3892
|
-
asio::io_context ioc;
|
3893
|
-
test_stream s(ioc);
|
3894
|
-
char read_buf[sizeof(read_data)];
|
3895
|
-
std::vector<asio::mutable_buffer> buffers;
|
3896
|
-
buffers.push_back(asio::buffer(read_buf, 32));
|
3897
|
-
buffers.push_back(asio::buffer(read_buf, 39) + 32);
|
3898
|
-
buffers.push_back(asio::buffer(read_buf) + 39);
|
3899
|
-
|
3900
|
-
s.reset(read_data, sizeof(read_data));
|
3901
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3902
|
-
bool called = false;
|
3903
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3904
|
-
bindns::bind(async_read_handler,
|
3905
|
-
_1, _2, sizeof(read_data), &called));
|
3906
|
-
ioc.restart();
|
3907
|
-
ioc.run();
|
3908
|
-
ASIO_CHECK(called);
|
3909
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3910
|
-
|
3911
|
-
s.reset(read_data, sizeof(read_data));
|
3912
|
-
s.next_read_length(1);
|
3913
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3914
|
-
called = false;
|
3915
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3916
|
-
bindns::bind(async_read_handler,
|
3917
|
-
_1, _2, sizeof(read_data), &called));
|
3918
|
-
ioc.restart();
|
3919
|
-
ioc.run();
|
3920
|
-
ASIO_CHECK(called);
|
3921
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3922
|
-
|
3923
|
-
s.reset(read_data, sizeof(read_data));
|
3924
|
-
s.next_read_length(10);
|
3925
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3926
|
-
called = false;
|
3927
|
-
asio::async_read(s, buffers, asio::transfer_all(),
|
3928
|
-
bindns::bind(async_read_handler,
|
3929
|
-
_1, _2, sizeof(read_data), &called));
|
3930
|
-
ioc.restart();
|
3931
|
-
ioc.run();
|
3932
|
-
ASIO_CHECK(called);
|
3933
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3934
|
-
|
3935
|
-
s.reset(read_data, sizeof(read_data));
|
3936
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3937
|
-
called = false;
|
3938
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3939
|
-
bindns::bind(async_read_handler,
|
3940
|
-
_1, _2, sizeof(read_data), &called));
|
3941
|
-
ioc.restart();
|
3942
|
-
ioc.run();
|
3943
|
-
ASIO_CHECK(called);
|
3944
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3945
|
-
|
3946
|
-
s.reset(read_data, sizeof(read_data));
|
3947
|
-
s.next_read_length(1);
|
3948
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3949
|
-
called = false;
|
3950
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3951
|
-
bindns::bind(async_read_handler,
|
3952
|
-
_1, _2, 1, &called));
|
3953
|
-
ioc.restart();
|
3954
|
-
ioc.run();
|
3955
|
-
ASIO_CHECK(called);
|
3956
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
3957
|
-
|
3958
|
-
s.reset(read_data, sizeof(read_data));
|
3959
|
-
s.next_read_length(10);
|
3960
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3961
|
-
called = false;
|
3962
|
-
asio::async_read(s, buffers, asio::transfer_at_least(1),
|
3963
|
-
bindns::bind(async_read_handler,
|
3964
|
-
_1, _2, 10, &called));
|
3965
|
-
ioc.restart();
|
3966
|
-
ioc.run();
|
3967
|
-
ASIO_CHECK(called);
|
3968
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3969
|
-
|
3970
|
-
s.reset(read_data, sizeof(read_data));
|
3971
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3972
|
-
called = false;
|
3973
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3974
|
-
bindns::bind(async_read_handler,
|
3975
|
-
_1, _2, sizeof(read_data), &called));
|
3976
|
-
ioc.restart();
|
3977
|
-
ioc.run();
|
3978
|
-
ASIO_CHECK(called);
|
3979
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
3980
|
-
|
3981
|
-
s.reset(read_data, sizeof(read_data));
|
3982
|
-
s.next_read_length(1);
|
3983
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3984
|
-
called = false;
|
3985
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3986
|
-
bindns::bind(async_read_handler,
|
3987
|
-
_1, _2, 10, &called));
|
3988
|
-
ioc.restart();
|
3989
|
-
ioc.run();
|
3990
|
-
ASIO_CHECK(called);
|
3991
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
3992
|
-
|
3993
|
-
s.reset(read_data, sizeof(read_data));
|
3994
|
-
s.next_read_length(10);
|
3995
|
-
memset(read_buf, 0, sizeof(read_buf));
|
3996
|
-
called = false;
|
3997
|
-
asio::async_read(s, buffers, asio::transfer_at_least(10),
|
3998
|
-
bindns::bind(async_read_handler,
|
3999
|
-
_1, _2, 10, &called));
|
4000
|
-
ioc.restart();
|
4001
|
-
ioc.run();
|
4002
|
-
ASIO_CHECK(called);
|
4003
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
4004
|
-
|
4005
|
-
s.reset(read_data, sizeof(read_data));
|
4006
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4007
|
-
called = false;
|
4008
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
4009
|
-
bindns::bind(async_read_handler,
|
4010
|
-
_1, _2, sizeof(read_data), &called));
|
4011
|
-
ioc.restart();
|
4012
|
-
ioc.run();
|
4013
|
-
ASIO_CHECK(called);
|
4014
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4015
|
-
|
4016
|
-
s.reset(read_data, sizeof(read_data));
|
4017
|
-
s.next_read_length(1);
|
4018
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4019
|
-
called = false;
|
4020
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
4021
|
-
bindns::bind(async_read_handler,
|
4022
|
-
_1, _2, 42, &called));
|
4023
|
-
ioc.restart();
|
4024
|
-
ioc.run();
|
4025
|
-
ASIO_CHECK(called);
|
4026
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
4027
|
-
|
4028
|
-
s.reset(read_data, sizeof(read_data));
|
4029
|
-
s.next_read_length(10);
|
4030
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4031
|
-
called = false;
|
4032
|
-
asio::async_read(s, buffers, asio::transfer_at_least(42),
|
4033
|
-
bindns::bind(async_read_handler,
|
4034
|
-
_1, _2, 50, &called));
|
4035
|
-
ioc.restart();
|
4036
|
-
ioc.run();
|
4037
|
-
ASIO_CHECK(called);
|
4038
|
-
ASIO_CHECK(s.check_buffers(buffers, 50));
|
4039
|
-
|
4040
|
-
s.reset(read_data, sizeof(read_data));
|
4041
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4042
|
-
called = false;
|
4043
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
4044
|
-
bindns::bind(async_read_handler,
|
4045
|
-
_1, _2, 1, &called));
|
4046
|
-
ioc.restart();
|
4047
|
-
ioc.run();
|
4048
|
-
ASIO_CHECK(called);
|
4049
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
4050
|
-
|
4051
|
-
s.reset(read_data, sizeof(read_data));
|
4052
|
-
s.next_read_length(1);
|
4053
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4054
|
-
called = false;
|
4055
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
4056
|
-
bindns::bind(async_read_handler,
|
4057
|
-
_1, _2, 1, &called));
|
4058
|
-
ioc.restart();
|
4059
|
-
ioc.run();
|
4060
|
-
ASIO_CHECK(called);
|
4061
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
4062
|
-
|
4063
|
-
s.reset(read_data, sizeof(read_data));
|
4064
|
-
s.next_read_length(10);
|
4065
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4066
|
-
called = false;
|
4067
|
-
asio::async_read(s, buffers, asio::transfer_exactly(1),
|
4068
|
-
bindns::bind(async_read_handler,
|
4069
|
-
_1, _2, 1, &called));
|
4070
|
-
ioc.restart();
|
4071
|
-
ioc.run();
|
4072
|
-
ASIO_CHECK(called);
|
4073
|
-
ASIO_CHECK(s.check_buffers(buffers, 1));
|
4074
|
-
|
4075
|
-
s.reset(read_data, sizeof(read_data));
|
4076
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4077
|
-
called = false;
|
4078
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
4079
|
-
bindns::bind(async_read_handler,
|
4080
|
-
_1, _2, 10, &called));
|
4081
|
-
ioc.restart();
|
4082
|
-
ioc.run();
|
4083
|
-
ASIO_CHECK(called);
|
4084
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
4085
|
-
|
4086
|
-
s.reset(read_data, sizeof(read_data));
|
4087
|
-
s.next_read_length(1);
|
4088
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4089
|
-
called = false;
|
4090
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
4091
|
-
bindns::bind(async_read_handler,
|
4092
|
-
_1, _2, 10, &called));
|
4093
|
-
ioc.restart();
|
4094
|
-
ioc.run();
|
4095
|
-
ASIO_CHECK(called);
|
4096
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
4097
|
-
|
4098
|
-
s.reset(read_data, sizeof(read_data));
|
4099
|
-
s.next_read_length(10);
|
4100
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4101
|
-
called = false;
|
4102
|
-
asio::async_read(s, buffers, asio::transfer_exactly(10),
|
4103
|
-
bindns::bind(async_read_handler,
|
4104
|
-
_1, _2, 10, &called));
|
4105
|
-
ioc.restart();
|
4106
|
-
ioc.run();
|
4107
|
-
ASIO_CHECK(called);
|
4108
|
-
ASIO_CHECK(s.check_buffers(buffers, 10));
|
4109
|
-
|
4110
|
-
s.reset(read_data, sizeof(read_data));
|
4111
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4112
|
-
called = false;
|
4113
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
4114
|
-
bindns::bind(async_read_handler,
|
4115
|
-
_1, _2, 42, &called));
|
4116
|
-
ioc.restart();
|
4117
|
-
ioc.run();
|
4118
|
-
ASIO_CHECK(called);
|
4119
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
4120
|
-
|
4121
|
-
s.reset(read_data, sizeof(read_data));
|
4122
|
-
s.next_read_length(1);
|
4123
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4124
|
-
called = false;
|
4125
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
4126
|
-
bindns::bind(async_read_handler,
|
4127
|
-
_1, _2, 42, &called));
|
4128
|
-
ioc.restart();
|
4129
|
-
ioc.run();
|
4130
|
-
ASIO_CHECK(called);
|
4131
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
4132
|
-
|
4133
|
-
s.reset(read_data, sizeof(read_data));
|
4134
|
-
s.next_read_length(10);
|
4135
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4136
|
-
called = false;
|
4137
|
-
asio::async_read(s, buffers, asio::transfer_exactly(42),
|
4138
|
-
bindns::bind(async_read_handler,
|
4139
|
-
_1, _2, 42, &called));
|
4140
|
-
ioc.restart();
|
4141
|
-
ioc.run();
|
4142
|
-
ASIO_CHECK(called);
|
4143
|
-
ASIO_CHECK(s.check_buffers(buffers, 42));
|
4144
|
-
|
4145
|
-
s.reset(read_data, sizeof(read_data));
|
4146
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4147
|
-
called = false;
|
4148
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
4149
|
-
bindns::bind(async_read_handler,
|
4150
|
-
_1, _2, sizeof(read_data), &called));
|
4151
|
-
ioc.restart();
|
4152
|
-
ioc.run();
|
4153
|
-
ASIO_CHECK(called);
|
4154
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4155
|
-
|
4156
|
-
s.reset(read_data, sizeof(read_data));
|
4157
|
-
s.next_read_length(1);
|
4158
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4159
|
-
called = false;
|
4160
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
4161
|
-
bindns::bind(async_read_handler,
|
4162
|
-
_1, _2, sizeof(read_data), &called));
|
4163
|
-
ioc.restart();
|
4164
|
-
ioc.run();
|
4165
|
-
ASIO_CHECK(called);
|
4166
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4167
|
-
|
4168
|
-
s.reset(read_data, sizeof(read_data));
|
4169
|
-
s.next_read_length(10);
|
4170
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4171
|
-
called = false;
|
4172
|
-
asio::async_read(s, buffers, old_style_transfer_all,
|
4173
|
-
bindns::bind(async_read_handler,
|
4174
|
-
_1, _2, sizeof(read_data), &called));
|
4175
|
-
ioc.restart();
|
4176
|
-
ioc.run();
|
4177
|
-
ASIO_CHECK(called);
|
4178
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4179
|
-
|
4180
|
-
s.reset(read_data, sizeof(read_data));
|
4181
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4182
|
-
called = false;
|
4183
|
-
asio::async_read(s, buffers, short_transfer(),
|
4184
|
-
bindns::bind(async_read_handler,
|
4185
|
-
_1, _2, sizeof(read_data), &called));
|
4186
|
-
ioc.restart();
|
4187
|
-
ioc.run();
|
4188
|
-
ASIO_CHECK(called);
|
4189
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4190
|
-
|
4191
|
-
s.reset(read_data, sizeof(read_data));
|
4192
|
-
s.next_read_length(1);
|
4193
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4194
|
-
called = false;
|
4195
|
-
asio::async_read(s, buffers, short_transfer(),
|
4196
|
-
bindns::bind(async_read_handler,
|
4197
|
-
_1, _2, sizeof(read_data), &called));
|
4198
|
-
ioc.restart();
|
4199
|
-
ioc.run();
|
4200
|
-
ASIO_CHECK(called);
|
4201
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4202
|
-
|
4203
|
-
s.reset(read_data, sizeof(read_data));
|
4204
|
-
s.next_read_length(10);
|
4205
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4206
|
-
called = false;
|
4207
|
-
asio::async_read(s, buffers, short_transfer(),
|
4208
|
-
bindns::bind(async_read_handler,
|
4209
|
-
_1, _2, sizeof(read_data), &called));
|
4210
|
-
ioc.restart();
|
4211
|
-
ioc.run();
|
4212
|
-
ASIO_CHECK(called);
|
4213
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4214
|
-
|
4215
|
-
s.reset(read_data, sizeof(read_data));
|
4216
|
-
memset(read_buf, 0, sizeof(read_buf));
|
4217
|
-
int i = asio::async_read(s, buffers,
|
4218
|
-
short_transfer(), archetypes::lazy_handler());
|
4219
|
-
ASIO_CHECK(i == 42);
|
4220
|
-
ioc.restart();
|
4221
|
-
ioc.run();
|
4222
|
-
ASIO_CHECK(s.check_buffers(buffers, sizeof(read_data)));
|
4223
|
-
}
|
4224
|
-
|
4225
|
-
void test_4_arg_dynamic_string_async_read()
|
4226
|
-
{
|
4227
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
4228
|
-
namespace bindns = boost;
|
4229
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
4230
|
-
namespace bindns = std;
|
4231
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
4232
|
-
using bindns::placeholders::_1;
|
4233
|
-
using bindns::placeholders::_2;
|
4234
|
-
|
4235
|
-
asio::io_context ioc;
|
4236
|
-
test_stream s(ioc);
|
4237
|
-
std::string data;
|
4238
|
-
asio::dynamic_string_buffer<char, std::string::traits_type,
|
4239
|
-
std::string::allocator_type> sb
|
4240
|
-
= asio::dynamic_buffer(data, sizeof(read_data));
|
4241
|
-
|
4242
|
-
s.reset(read_data, sizeof(read_data));
|
4243
|
-
sb.consume(sb.size());
|
4244
|
-
bool called = false;
|
4245
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4246
|
-
bindns::bind(async_read_handler,
|
4247
|
-
_1, _2, sizeof(read_data), &called));
|
4248
|
-
ioc.restart();
|
4249
|
-
ioc.run();
|
4250
|
-
ASIO_CHECK(called);
|
4251
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4252
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4253
|
-
|
4254
|
-
s.reset(read_data, sizeof(read_data));
|
4255
|
-
s.next_read_length(1);
|
4256
|
-
sb.consume(sb.size());
|
4257
|
-
called = false;
|
4258
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4259
|
-
bindns::bind(async_read_handler,
|
4260
|
-
_1, _2, sizeof(read_data), &called));
|
4261
|
-
ioc.restart();
|
4262
|
-
ioc.run();
|
4263
|
-
ASIO_CHECK(called);
|
4264
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4265
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4266
|
-
|
4267
|
-
s.reset(read_data, sizeof(read_data));
|
4268
|
-
s.next_read_length(10);
|
4269
|
-
sb.consume(sb.size());
|
4270
|
-
called = false;
|
4271
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4272
|
-
bindns::bind(async_read_handler,
|
4273
|
-
_1, _2, sizeof(read_data), &called));
|
4274
|
-
ioc.restart();
|
4275
|
-
ioc.run();
|
4276
|
-
ASIO_CHECK(called);
|
4277
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4278
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4279
|
-
|
4280
|
-
s.reset(read_data, sizeof(read_data));
|
4281
|
-
sb.consume(sb.size());
|
4282
|
-
called = false;
|
4283
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4284
|
-
bindns::bind(async_read_handler,
|
4285
|
-
_1, _2, sizeof(read_data), &called));
|
4286
|
-
ioc.restart();
|
4287
|
-
ioc.run();
|
4288
|
-
ASIO_CHECK(called);
|
4289
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4290
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4291
|
-
|
4292
|
-
s.reset(read_data, sizeof(read_data));
|
4293
|
-
s.next_read_length(1);
|
4294
|
-
sb.consume(sb.size());
|
4295
|
-
called = false;
|
4296
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4297
|
-
bindns::bind(async_read_handler,
|
4298
|
-
_1, _2, 1, &called));
|
4299
|
-
ioc.restart();
|
4300
|
-
ioc.run();
|
4301
|
-
ASIO_CHECK(called);
|
4302
|
-
ASIO_CHECK(sb.size() == 1);
|
4303
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
4304
|
-
|
4305
|
-
s.reset(read_data, sizeof(read_data));
|
4306
|
-
s.next_read_length(10);
|
4307
|
-
sb.consume(sb.size());
|
4308
|
-
called = false;
|
4309
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4310
|
-
bindns::bind(async_read_handler,
|
4311
|
-
_1, _2, 10, &called));
|
4312
|
-
ioc.restart();
|
4313
|
-
ioc.run();
|
4314
|
-
ASIO_CHECK(called);
|
4315
|
-
ASIO_CHECK(sb.size() == 10);
|
4316
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4317
|
-
|
4318
|
-
s.reset(read_data, sizeof(read_data));
|
4319
|
-
sb.consume(sb.size());
|
4320
|
-
called = false;
|
4321
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4322
|
-
bindns::bind(async_read_handler,
|
4323
|
-
_1, _2, sizeof(read_data), &called));
|
4324
|
-
ioc.restart();
|
4325
|
-
ioc.run();
|
4326
|
-
ASIO_CHECK(called);
|
4327
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4328
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4329
|
-
|
4330
|
-
s.reset(read_data, sizeof(read_data));
|
4331
|
-
s.next_read_length(1);
|
4332
|
-
sb.consume(sb.size());
|
4333
|
-
called = false;
|
4334
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4335
|
-
bindns::bind(async_read_handler,
|
4336
|
-
_1, _2, 10, &called));
|
4337
|
-
ioc.restart();
|
4338
|
-
ioc.run();
|
4339
|
-
ASIO_CHECK(called);
|
4340
|
-
ASIO_CHECK(sb.size() == 10);
|
4341
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4342
|
-
|
4343
|
-
s.reset(read_data, sizeof(read_data));
|
4344
|
-
s.next_read_length(10);
|
4345
|
-
sb.consume(sb.size());
|
4346
|
-
called = false;
|
4347
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4348
|
-
bindns::bind(async_read_handler,
|
4349
|
-
_1, _2, 10, &called));
|
4350
|
-
ioc.restart();
|
4351
|
-
ioc.run();
|
4352
|
-
ASIO_CHECK(called);
|
4353
|
-
ASIO_CHECK(sb.size() == 10);
|
4354
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4355
|
-
|
4356
|
-
s.reset(read_data, sizeof(read_data));
|
4357
|
-
sb.consume(sb.size());
|
4358
|
-
called = false;
|
4359
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4360
|
-
bindns::bind(async_read_handler,
|
4361
|
-
_1, _2, sizeof(read_data), &called));
|
4362
|
-
ioc.restart();
|
4363
|
-
ioc.run();
|
4364
|
-
ASIO_CHECK(called);
|
4365
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4366
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4367
|
-
|
4368
|
-
s.reset(read_data, sizeof(read_data));
|
4369
|
-
s.next_read_length(1);
|
4370
|
-
sb.consume(sb.size());
|
4371
|
-
called = false;
|
4372
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4373
|
-
bindns::bind(async_read_handler,
|
4374
|
-
_1, _2, 42, &called));
|
4375
|
-
ioc.restart();
|
4376
|
-
ioc.run();
|
4377
|
-
ASIO_CHECK(called);
|
4378
|
-
ASIO_CHECK(sb.size() == 42);
|
4379
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
4380
|
-
|
4381
|
-
s.reset(read_data, sizeof(read_data));
|
4382
|
-
s.next_read_length(10);
|
4383
|
-
sb.consume(sb.size());
|
4384
|
-
called = false;
|
4385
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4386
|
-
bindns::bind(async_read_handler,
|
4387
|
-
_1, _2, 50, &called));
|
4388
|
-
ioc.restart();
|
4389
|
-
ioc.run();
|
4390
|
-
ASIO_CHECK(called);
|
4391
|
-
ASIO_CHECK(sb.size() == 50);
|
4392
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 50));
|
4393
|
-
|
4394
|
-
s.reset(read_data, sizeof(read_data));
|
4395
|
-
sb.consume(sb.size());
|
4396
|
-
called = false;
|
4397
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4398
|
-
bindns::bind(async_read_handler,
|
4399
|
-
_1, _2, 1, &called));
|
4400
|
-
ioc.restart();
|
4401
|
-
ioc.run();
|
4402
|
-
ASIO_CHECK(called);
|
4403
|
-
ASIO_CHECK(sb.size() == 1);
|
4404
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
4405
|
-
|
4406
|
-
s.reset(read_data, sizeof(read_data));
|
4407
|
-
s.next_read_length(1);
|
4408
|
-
sb.consume(sb.size());
|
4409
|
-
called = false;
|
4410
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4411
|
-
bindns::bind(async_read_handler,
|
4412
|
-
_1, _2, 1, &called));
|
4413
|
-
ioc.restart();
|
4414
|
-
ioc.run();
|
4415
|
-
ASIO_CHECK(called);
|
4416
|
-
ASIO_CHECK(sb.size() == 1);
|
4417
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
4418
|
-
|
4419
|
-
s.reset(read_data, sizeof(read_data));
|
4420
|
-
s.next_read_length(10);
|
4421
|
-
sb.consume(sb.size());
|
4422
|
-
called = false;
|
4423
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4424
|
-
bindns::bind(async_read_handler,
|
4425
|
-
_1, _2, 1, &called));
|
4426
|
-
ioc.restart();
|
4427
|
-
ioc.run();
|
4428
|
-
ASIO_CHECK(called);
|
4429
|
-
ASIO_CHECK(sb.size() == 1);
|
4430
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 1));
|
4431
|
-
|
4432
|
-
s.reset(read_data, sizeof(read_data));
|
4433
|
-
sb.consume(sb.size());
|
4434
|
-
called = false;
|
4435
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4436
|
-
bindns::bind(async_read_handler,
|
4437
|
-
_1, _2, 10, &called));
|
4438
|
-
ioc.restart();
|
4439
|
-
ioc.run();
|
4440
|
-
ASIO_CHECK(called);
|
4441
|
-
ASIO_CHECK(sb.size() == 10);
|
4442
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4443
|
-
|
4444
|
-
s.reset(read_data, sizeof(read_data));
|
4445
|
-
s.next_read_length(1);
|
4446
|
-
sb.consume(sb.size());
|
4447
|
-
called = false;
|
4448
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4449
|
-
bindns::bind(async_read_handler,
|
4450
|
-
_1, _2, 10, &called));
|
4451
|
-
ioc.restart();
|
4452
|
-
ioc.run();
|
4453
|
-
ASIO_CHECK(called);
|
4454
|
-
ASIO_CHECK(sb.size() == 10);
|
4455
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4456
|
-
|
4457
|
-
s.reset(read_data, sizeof(read_data));
|
4458
|
-
s.next_read_length(10);
|
4459
|
-
sb.consume(sb.size());
|
4460
|
-
called = false;
|
4461
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4462
|
-
bindns::bind(async_read_handler,
|
4463
|
-
_1, _2, 10, &called));
|
4464
|
-
ioc.restart();
|
4465
|
-
ioc.run();
|
4466
|
-
ASIO_CHECK(called);
|
4467
|
-
ASIO_CHECK(sb.size() == 10);
|
4468
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 10));
|
4469
|
-
|
4470
|
-
s.reset(read_data, sizeof(read_data));
|
4471
|
-
sb.consume(sb.size());
|
4472
|
-
called = false;
|
4473
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4474
|
-
bindns::bind(async_read_handler,
|
4475
|
-
_1, _2, 42, &called));
|
4476
|
-
ioc.restart();
|
4477
|
-
ioc.run();
|
4478
|
-
ASIO_CHECK(called);
|
4479
|
-
ASIO_CHECK(sb.size() == 42);
|
4480
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
4481
|
-
|
4482
|
-
s.reset(read_data, sizeof(read_data));
|
4483
|
-
s.next_read_length(1);
|
4484
|
-
sb.consume(sb.size());
|
4485
|
-
called = false;
|
4486
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4487
|
-
bindns::bind(async_read_handler,
|
4488
|
-
_1, _2, 42, &called));
|
4489
|
-
ioc.restart();
|
4490
|
-
ioc.run();
|
4491
|
-
ASIO_CHECK(called);
|
4492
|
-
ASIO_CHECK(sb.size() == 42);
|
4493
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
4494
|
-
|
4495
|
-
s.reset(read_data, sizeof(read_data));
|
4496
|
-
s.next_read_length(10);
|
4497
|
-
sb.consume(sb.size());
|
4498
|
-
called = false;
|
4499
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4500
|
-
bindns::bind(async_read_handler,
|
4501
|
-
_1, _2, 42, &called));
|
4502
|
-
ioc.restart();
|
4503
|
-
ioc.run();
|
4504
|
-
ASIO_CHECK(called);
|
4505
|
-
ASIO_CHECK(sb.size() == 42);
|
4506
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), 42));
|
4507
|
-
|
4508
|
-
s.reset(read_data, sizeof(read_data));
|
4509
|
-
sb.consume(sb.size());
|
4510
|
-
called = false;
|
4511
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4512
|
-
bindns::bind(async_read_handler,
|
4513
|
-
_1, _2, sizeof(read_data), &called));
|
4514
|
-
ioc.restart();
|
4515
|
-
ioc.run();
|
4516
|
-
ASIO_CHECK(called);
|
4517
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4518
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4519
|
-
|
4520
|
-
s.reset(read_data, sizeof(read_data));
|
4521
|
-
s.next_read_length(1);
|
4522
|
-
sb.consume(sb.size());
|
4523
|
-
called = false;
|
4524
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4525
|
-
bindns::bind(async_read_handler,
|
4526
|
-
_1, _2, sizeof(read_data), &called));
|
4527
|
-
ioc.restart();
|
4528
|
-
ioc.run();
|
4529
|
-
ASIO_CHECK(called);
|
4530
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4531
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4532
|
-
|
4533
|
-
s.reset(read_data, sizeof(read_data));
|
4534
|
-
s.next_read_length(10);
|
4535
|
-
sb.consume(sb.size());
|
4536
|
-
called = false;
|
4537
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4538
|
-
bindns::bind(async_read_handler,
|
4539
|
-
_1, _2, sizeof(read_data), &called));
|
4540
|
-
ioc.restart();
|
4541
|
-
ioc.run();
|
4542
|
-
ASIO_CHECK(called);
|
4543
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4544
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4545
|
-
|
4546
|
-
s.reset(read_data, sizeof(read_data));
|
4547
|
-
sb.consume(sb.size());
|
4548
|
-
called = false;
|
4549
|
-
asio::async_read(s, sb, short_transfer(),
|
4550
|
-
bindns::bind(async_read_handler,
|
4551
|
-
_1, _2, sizeof(read_data), &called));
|
4552
|
-
ioc.restart();
|
4553
|
-
ioc.run();
|
4554
|
-
ASIO_CHECK(called);
|
4555
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4556
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4557
|
-
|
4558
|
-
s.reset(read_data, sizeof(read_data));
|
4559
|
-
s.next_read_length(1);
|
4560
|
-
sb.consume(sb.size());
|
4561
|
-
called = false;
|
4562
|
-
asio::async_read(s, sb, short_transfer(),
|
4563
|
-
bindns::bind(async_read_handler,
|
4564
|
-
_1, _2, sizeof(read_data), &called));
|
4565
|
-
ioc.restart();
|
4566
|
-
ioc.run();
|
4567
|
-
ASIO_CHECK(called);
|
4568
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4569
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4570
|
-
|
4571
|
-
s.reset(read_data, sizeof(read_data));
|
4572
|
-
s.next_read_length(10);
|
4573
|
-
sb.consume(sb.size());
|
4574
|
-
called = false;
|
4575
|
-
asio::async_read(s, sb, short_transfer(),
|
4576
|
-
bindns::bind(async_read_handler,
|
4577
|
-
_1, _2, sizeof(read_data), &called));
|
4578
|
-
ioc.restart();
|
4579
|
-
ioc.run();
|
4580
|
-
ASIO_CHECK(called);
|
4581
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4582
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4583
|
-
|
4584
|
-
s.reset(read_data, sizeof(read_data));
|
4585
|
-
sb.consume(sb.size());
|
4586
|
-
int i = asio::async_read(s, sb,
|
4587
|
-
short_transfer(), archetypes::lazy_handler());
|
4588
|
-
ASIO_CHECK(i == 42);
|
4589
|
-
ioc.restart();
|
4590
|
-
ioc.run();
|
4591
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4592
|
-
ASIO_CHECK(s.check_buffers(sb.data(0, sb.size()), sizeof(read_data)));
|
4593
|
-
}
|
4594
|
-
|
4595
|
-
void test_4_arg_streambuf_async_read()
|
4596
|
-
{
|
4597
|
-
#if !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
4598
|
-
#if defined(ASIO_HAS_BOOST_BIND)
|
4599
|
-
namespace bindns = boost;
|
4600
|
-
#else // defined(ASIO_HAS_BOOST_BIND)
|
4601
|
-
namespace bindns = std;
|
4602
|
-
#endif // defined(ASIO_HAS_BOOST_BIND)
|
4603
|
-
using bindns::placeholders::_1;
|
4604
|
-
using bindns::placeholders::_2;
|
4605
|
-
|
4606
|
-
asio::io_context ioc;
|
4607
|
-
test_stream s(ioc);
|
4608
|
-
asio::streambuf sb(sizeof(read_data));
|
4609
|
-
|
4610
|
-
s.reset(read_data, sizeof(read_data));
|
4611
|
-
sb.consume(sb.size());
|
4612
|
-
bool called = false;
|
4613
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4614
|
-
bindns::bind(async_read_handler,
|
4615
|
-
_1, _2, sizeof(read_data), &called));
|
4616
|
-
ioc.restart();
|
4617
|
-
ioc.run();
|
4618
|
-
ASIO_CHECK(called);
|
4619
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4620
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4621
|
-
|
4622
|
-
s.reset(read_data, sizeof(read_data));
|
4623
|
-
s.next_read_length(1);
|
4624
|
-
sb.consume(sb.size());
|
4625
|
-
called = false;
|
4626
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4627
|
-
bindns::bind(async_read_handler,
|
4628
|
-
_1, _2, sizeof(read_data), &called));
|
4629
|
-
ioc.restart();
|
4630
|
-
ioc.run();
|
4631
|
-
ASIO_CHECK(called);
|
4632
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4633
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4634
|
-
|
4635
|
-
s.reset(read_data, sizeof(read_data));
|
4636
|
-
s.next_read_length(10);
|
4637
|
-
sb.consume(sb.size());
|
4638
|
-
called = false;
|
4639
|
-
asio::async_read(s, sb, asio::transfer_all(),
|
4640
|
-
bindns::bind(async_read_handler,
|
4641
|
-
_1, _2, sizeof(read_data), &called));
|
4642
|
-
ioc.restart();
|
4643
|
-
ioc.run();
|
4644
|
-
ASIO_CHECK(called);
|
4645
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4646
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4647
|
-
|
4648
|
-
s.reset(read_data, sizeof(read_data));
|
4649
|
-
sb.consume(sb.size());
|
4650
|
-
called = false;
|
4651
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4652
|
-
bindns::bind(async_read_handler,
|
4653
|
-
_1, _2, sizeof(read_data), &called));
|
4654
|
-
ioc.restart();
|
4655
|
-
ioc.run();
|
4656
|
-
ASIO_CHECK(called);
|
4657
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4658
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4659
|
-
|
4660
|
-
s.reset(read_data, sizeof(read_data));
|
4661
|
-
s.next_read_length(1);
|
4662
|
-
sb.consume(sb.size());
|
4663
|
-
called = false;
|
4664
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4665
|
-
bindns::bind(async_read_handler,
|
4666
|
-
_1, _2, 1, &called));
|
4667
|
-
ioc.restart();
|
4668
|
-
ioc.run();
|
4669
|
-
ASIO_CHECK(called);
|
4670
|
-
ASIO_CHECK(sb.size() == 1);
|
4671
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
4672
|
-
|
4673
|
-
s.reset(read_data, sizeof(read_data));
|
4674
|
-
s.next_read_length(10);
|
4675
|
-
sb.consume(sb.size());
|
4676
|
-
called = false;
|
4677
|
-
asio::async_read(s, sb, asio::transfer_at_least(1),
|
4678
|
-
bindns::bind(async_read_handler,
|
4679
|
-
_1, _2, 10, &called));
|
4680
|
-
ioc.restart();
|
4681
|
-
ioc.run();
|
4682
|
-
ASIO_CHECK(called);
|
4683
|
-
ASIO_CHECK(sb.size() == 10);
|
4684
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4685
|
-
|
4686
|
-
s.reset(read_data, sizeof(read_data));
|
4687
|
-
sb.consume(sb.size());
|
4688
|
-
called = false;
|
4689
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4690
|
-
bindns::bind(async_read_handler,
|
4691
|
-
_1, _2, sizeof(read_data), &called));
|
4692
|
-
ioc.restart();
|
4693
|
-
ioc.run();
|
4694
|
-
ASIO_CHECK(called);
|
4695
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4696
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4697
|
-
|
4698
|
-
s.reset(read_data, sizeof(read_data));
|
4699
|
-
s.next_read_length(1);
|
4700
|
-
sb.consume(sb.size());
|
4701
|
-
called = false;
|
4702
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4703
|
-
bindns::bind(async_read_handler,
|
4704
|
-
_1, _2, 10, &called));
|
4705
|
-
ioc.restart();
|
4706
|
-
ioc.run();
|
4707
|
-
ASIO_CHECK(called);
|
4708
|
-
ASIO_CHECK(sb.size() == 10);
|
4709
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4710
|
-
|
4711
|
-
s.reset(read_data, sizeof(read_data));
|
4712
|
-
s.next_read_length(10);
|
4713
|
-
sb.consume(sb.size());
|
4714
|
-
called = false;
|
4715
|
-
asio::async_read(s, sb, asio::transfer_at_least(10),
|
4716
|
-
bindns::bind(async_read_handler,
|
4717
|
-
_1, _2, 10, &called));
|
4718
|
-
ioc.restart();
|
4719
|
-
ioc.run();
|
4720
|
-
ASIO_CHECK(called);
|
4721
|
-
ASIO_CHECK(sb.size() == 10);
|
4722
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4723
|
-
|
4724
|
-
s.reset(read_data, sizeof(read_data));
|
4725
|
-
sb.consume(sb.size());
|
4726
|
-
called = false;
|
4727
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4728
|
-
bindns::bind(async_read_handler,
|
4729
|
-
_1, _2, sizeof(read_data), &called));
|
4730
|
-
ioc.restart();
|
4731
|
-
ioc.run();
|
4732
|
-
ASIO_CHECK(called);
|
4733
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4734
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4735
|
-
|
4736
|
-
s.reset(read_data, sizeof(read_data));
|
4737
|
-
s.next_read_length(1);
|
4738
|
-
sb.consume(sb.size());
|
4739
|
-
called = false;
|
4740
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4741
|
-
bindns::bind(async_read_handler,
|
4742
|
-
_1, _2, 42, &called));
|
4743
|
-
ioc.restart();
|
4744
|
-
ioc.run();
|
4745
|
-
ASIO_CHECK(called);
|
4746
|
-
ASIO_CHECK(sb.size() == 42);
|
4747
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
4748
|
-
|
4749
|
-
s.reset(read_data, sizeof(read_data));
|
4750
|
-
s.next_read_length(10);
|
4751
|
-
sb.consume(sb.size());
|
4752
|
-
called = false;
|
4753
|
-
asio::async_read(s, sb, asio::transfer_at_least(42),
|
4754
|
-
bindns::bind(async_read_handler,
|
4755
|
-
_1, _2, 50, &called));
|
4756
|
-
ioc.restart();
|
4757
|
-
ioc.run();
|
4758
|
-
ASIO_CHECK(called);
|
4759
|
-
ASIO_CHECK(sb.size() == 50);
|
4760
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 50));
|
4761
|
-
|
4762
|
-
s.reset(read_data, sizeof(read_data));
|
4763
|
-
sb.consume(sb.size());
|
4764
|
-
called = false;
|
4765
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4766
|
-
bindns::bind(async_read_handler,
|
4767
|
-
_1, _2, 1, &called));
|
4768
|
-
ioc.restart();
|
4769
|
-
ioc.run();
|
4770
|
-
ASIO_CHECK(called);
|
4771
|
-
ASIO_CHECK(sb.size() == 1);
|
4772
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
4773
|
-
|
4774
|
-
s.reset(read_data, sizeof(read_data));
|
4775
|
-
s.next_read_length(1);
|
4776
|
-
sb.consume(sb.size());
|
4777
|
-
called = false;
|
4778
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4779
|
-
bindns::bind(async_read_handler,
|
4780
|
-
_1, _2, 1, &called));
|
4781
|
-
ioc.restart();
|
4782
|
-
ioc.run();
|
4783
|
-
ASIO_CHECK(called);
|
4784
|
-
ASIO_CHECK(sb.size() == 1);
|
4785
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
4786
|
-
|
4787
|
-
s.reset(read_data, sizeof(read_data));
|
4788
|
-
s.next_read_length(10);
|
4789
|
-
sb.consume(sb.size());
|
4790
|
-
called = false;
|
4791
|
-
asio::async_read(s, sb, asio::transfer_exactly(1),
|
4792
|
-
bindns::bind(async_read_handler,
|
4793
|
-
_1, _2, 1, &called));
|
4794
|
-
ioc.restart();
|
4795
|
-
ioc.run();
|
4796
|
-
ASIO_CHECK(called);
|
4797
|
-
ASIO_CHECK(sb.size() == 1);
|
4798
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 1));
|
4799
|
-
|
4800
|
-
s.reset(read_data, sizeof(read_data));
|
4801
|
-
sb.consume(sb.size());
|
4802
|
-
called = false;
|
4803
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4804
|
-
bindns::bind(async_read_handler,
|
4805
|
-
_1, _2, 10, &called));
|
4806
|
-
ioc.restart();
|
4807
|
-
ioc.run();
|
4808
|
-
ASIO_CHECK(called);
|
4809
|
-
ASIO_CHECK(sb.size() == 10);
|
4810
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4811
|
-
|
4812
|
-
s.reset(read_data, sizeof(read_data));
|
4813
|
-
s.next_read_length(1);
|
4814
|
-
sb.consume(sb.size());
|
4815
|
-
called = false;
|
4816
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4817
|
-
bindns::bind(async_read_handler,
|
4818
|
-
_1, _2, 10, &called));
|
4819
|
-
ioc.restart();
|
4820
|
-
ioc.run();
|
4821
|
-
ASIO_CHECK(called);
|
4822
|
-
ASIO_CHECK(sb.size() == 10);
|
4823
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4824
|
-
|
4825
|
-
s.reset(read_data, sizeof(read_data));
|
4826
|
-
s.next_read_length(10);
|
4827
|
-
sb.consume(sb.size());
|
4828
|
-
called = false;
|
4829
|
-
asio::async_read(s, sb, asio::transfer_exactly(10),
|
4830
|
-
bindns::bind(async_read_handler,
|
4831
|
-
_1, _2, 10, &called));
|
4832
|
-
ioc.restart();
|
4833
|
-
ioc.run();
|
4834
|
-
ASIO_CHECK(called);
|
4835
|
-
ASIO_CHECK(sb.size() == 10);
|
4836
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 10));
|
4837
|
-
|
4838
|
-
s.reset(read_data, sizeof(read_data));
|
4839
|
-
sb.consume(sb.size());
|
4840
|
-
called = false;
|
4841
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4842
|
-
bindns::bind(async_read_handler,
|
4843
|
-
_1, _2, 42, &called));
|
4844
|
-
ioc.restart();
|
4845
|
-
ioc.run();
|
4846
|
-
ASIO_CHECK(called);
|
4847
|
-
ASIO_CHECK(sb.size() == 42);
|
4848
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
4849
|
-
|
4850
|
-
s.reset(read_data, sizeof(read_data));
|
4851
|
-
s.next_read_length(1);
|
4852
|
-
sb.consume(sb.size());
|
4853
|
-
called = false;
|
4854
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4855
|
-
bindns::bind(async_read_handler,
|
4856
|
-
_1, _2, 42, &called));
|
4857
|
-
ioc.restart();
|
4858
|
-
ioc.run();
|
4859
|
-
ASIO_CHECK(called);
|
4860
|
-
ASIO_CHECK(sb.size() == 42);
|
4861
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
4862
|
-
|
4863
|
-
s.reset(read_data, sizeof(read_data));
|
4864
|
-
s.next_read_length(10);
|
4865
|
-
sb.consume(sb.size());
|
4866
|
-
called = false;
|
4867
|
-
asio::async_read(s, sb, asio::transfer_exactly(42),
|
4868
|
-
bindns::bind(async_read_handler,
|
4869
|
-
_1, _2, 42, &called));
|
4870
|
-
ioc.restart();
|
4871
|
-
ioc.run();
|
4872
|
-
ASIO_CHECK(called);
|
4873
|
-
ASIO_CHECK(sb.size() == 42);
|
4874
|
-
ASIO_CHECK(s.check_buffers(sb.data(), 42));
|
4875
|
-
|
4876
|
-
s.reset(read_data, sizeof(read_data));
|
4877
|
-
sb.consume(sb.size());
|
4878
|
-
called = false;
|
4879
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4880
|
-
bindns::bind(async_read_handler,
|
4881
|
-
_1, _2, sizeof(read_data), &called));
|
4882
|
-
ioc.restart();
|
4883
|
-
ioc.run();
|
4884
|
-
ASIO_CHECK(called);
|
4885
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4886
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4887
|
-
|
4888
|
-
s.reset(read_data, sizeof(read_data));
|
4889
|
-
s.next_read_length(1);
|
4890
|
-
sb.consume(sb.size());
|
4891
|
-
called = false;
|
4892
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4893
|
-
bindns::bind(async_read_handler,
|
4894
|
-
_1, _2, sizeof(read_data), &called));
|
4895
|
-
ioc.restart();
|
4896
|
-
ioc.run();
|
4897
|
-
ASIO_CHECK(called);
|
4898
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4899
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4900
|
-
|
4901
|
-
s.reset(read_data, sizeof(read_data));
|
4902
|
-
s.next_read_length(10);
|
4903
|
-
sb.consume(sb.size());
|
4904
|
-
called = false;
|
4905
|
-
asio::async_read(s, sb, old_style_transfer_all,
|
4906
|
-
bindns::bind(async_read_handler,
|
4907
|
-
_1, _2, sizeof(read_data), &called));
|
4908
|
-
ioc.restart();
|
4909
|
-
ioc.run();
|
4910
|
-
ASIO_CHECK(called);
|
4911
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4912
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4913
|
-
|
4914
|
-
s.reset(read_data, sizeof(read_data));
|
4915
|
-
sb.consume(sb.size());
|
4916
|
-
called = false;
|
4917
|
-
asio::async_read(s, sb, short_transfer(),
|
4918
|
-
bindns::bind(async_read_handler,
|
4919
|
-
_1, _2, sizeof(read_data), &called));
|
4920
|
-
ioc.restart();
|
4921
|
-
ioc.run();
|
4922
|
-
ASIO_CHECK(called);
|
4923
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4924
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4925
|
-
|
4926
|
-
s.reset(read_data, sizeof(read_data));
|
4927
|
-
s.next_read_length(1);
|
4928
|
-
sb.consume(sb.size());
|
4929
|
-
called = false;
|
4930
|
-
asio::async_read(s, sb, short_transfer(),
|
4931
|
-
bindns::bind(async_read_handler,
|
4932
|
-
_1, _2, sizeof(read_data), &called));
|
4933
|
-
ioc.restart();
|
4934
|
-
ioc.run();
|
4935
|
-
ASIO_CHECK(called);
|
4936
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4937
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4938
|
-
|
4939
|
-
s.reset(read_data, sizeof(read_data));
|
4940
|
-
s.next_read_length(10);
|
4941
|
-
sb.consume(sb.size());
|
4942
|
-
called = false;
|
4943
|
-
asio::async_read(s, sb, short_transfer(),
|
4944
|
-
bindns::bind(async_read_handler,
|
4945
|
-
_1, _2, sizeof(read_data), &called));
|
4946
|
-
ioc.restart();
|
4947
|
-
ioc.run();
|
4948
|
-
ASIO_CHECK(called);
|
4949
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4950
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4951
|
-
|
4952
|
-
s.reset(read_data, sizeof(read_data));
|
4953
|
-
sb.consume(sb.size());
|
4954
|
-
int i = asio::async_read(s, sb,
|
4955
|
-
short_transfer(), archetypes::lazy_handler());
|
4956
|
-
ASIO_CHECK(i == 42);
|
4957
|
-
ioc.restart();
|
4958
|
-
ioc.run();
|
4959
|
-
ASIO_CHECK(sb.size() == sizeof(read_data));
|
4960
|
-
ASIO_CHECK(s.check_buffers(sb.data(), sizeof(read_data)));
|
4961
|
-
#endif // !defined(ASIO_NO_DYNAMIC_BUFFER_V1)
|
4962
|
-
}
|
4963
|
-
|
4964
|
-
ASIO_TEST_SUITE
|
4965
|
-
(
|
4966
|
-
"read",
|
4967
|
-
ASIO_TEST_CASE(test_2_arg_zero_buffers_read)
|
4968
|
-
ASIO_TEST_CASE(test_2_arg_mutable_buffer_read)
|
4969
|
-
ASIO_TEST_CASE(test_2_arg_vector_buffers_read)
|
4970
|
-
ASIO_TEST_CASE(test_2_arg_dynamic_string_read)
|
4971
|
-
ASIO_TEST_CASE(test_2_arg_streambuf_read)
|
4972
|
-
ASIO_TEST_CASE(test_3_arg_nothrow_zero_buffers_read)
|
4973
|
-
ASIO_TEST_CASE(test_3_arg_nothrow_mutable_buffer_read)
|
4974
|
-
ASIO_TEST_CASE(test_3_arg_nothrow_vector_buffers_read)
|
4975
|
-
ASIO_TEST_CASE(test_3_arg_nothrow_dynamic_string_read)
|
4976
|
-
ASIO_TEST_CASE(test_3_arg_nothrow_streambuf_read)
|
4977
|
-
ASIO_TEST_CASE(test_3_arg_mutable_buffer_read)
|
4978
|
-
ASIO_TEST_CASE(test_3_arg_vector_buffers_read)
|
4979
|
-
ASIO_TEST_CASE(test_3_arg_dynamic_string_read)
|
4980
|
-
ASIO_TEST_CASE(test_3_arg_streambuf_read)
|
4981
|
-
ASIO_TEST_CASE(test_4_arg_mutable_buffer_read)
|
4982
|
-
ASIO_TEST_CASE(test_4_arg_vector_buffers_read)
|
4983
|
-
ASIO_TEST_CASE(test_4_arg_dynamic_string_read)
|
4984
|
-
ASIO_TEST_CASE(test_4_arg_streambuf_read)
|
4985
|
-
ASIO_TEST_CASE(test_3_arg_mutable_buffer_async_read)
|
4986
|
-
ASIO_TEST_CASE(test_3_arg_boost_array_buffers_async_read)
|
4987
|
-
ASIO_TEST_CASE(test_3_arg_std_array_buffers_async_read)
|
4988
|
-
ASIO_TEST_CASE(test_3_arg_vector_buffers_async_read)
|
4989
|
-
ASIO_TEST_CASE(test_3_arg_dynamic_string_async_read)
|
4990
|
-
ASIO_TEST_CASE(test_3_arg_streambuf_async_read)
|
4991
|
-
ASIO_TEST_CASE(test_4_arg_mutable_buffer_async_read)
|
4992
|
-
ASIO_TEST_CASE(test_4_arg_vector_buffers_async_read)
|
4993
|
-
ASIO_TEST_CASE(test_4_arg_boost_array_buffers_async_read)
|
4994
|
-
ASIO_TEST_CASE(test_4_arg_std_array_buffers_async_read)
|
4995
|
-
ASIO_TEST_CASE(test_4_arg_dynamic_string_async_read)
|
4996
|
-
ASIO_TEST_CASE(test_4_arg_streambuf_async_read)
|
4997
|
-
)
|