grpc 1.7.3 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +2106 -2116
- data/include/grpc/census.h +1 -432
- data/include/grpc/compression.h +9 -9
- data/include/grpc/grpc.h +115 -98
- data/include/grpc/grpc_cronet.h +3 -3
- data/include/grpc/grpc_posix.h +4 -4
- data/include/grpc/grpc_security.h +160 -88
- data/include/grpc/grpc_security_constants.h +7 -0
- data/include/grpc/impl/codegen/atm.h +9 -1
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +13 -4
- data/include/grpc/impl/codegen/atm_gcc_sync.h +6 -5
- data/include/grpc/impl/codegen/atm_windows.h +23 -22
- data/include/grpc/impl/codegen/byte_buffer.h +14 -14
- data/include/grpc/impl/codegen/byte_buffer_reader.h +2 -2
- data/include/grpc/impl/codegen/connectivity_state.h +0 -2
- data/include/grpc/impl/codegen/grpc_types.h +32 -28
- data/include/grpc/impl/codegen/port_platform.h +48 -0
- data/include/grpc/impl/codegen/slice.h +10 -10
- data/include/grpc/impl/codegen/sync_generic.h +9 -3
- data/include/grpc/slice.h +16 -17
- data/include/grpc/slice_buffer.h +22 -22
- data/include/grpc/support/alloc.h +11 -11
- data/include/grpc/support/avl.h +28 -20
- data/include/grpc/support/cmdline.h +13 -13
- data/include/grpc/support/histogram.h +17 -17
- data/include/grpc/support/host_port.h +2 -2
- data/include/grpc/support/log.h +9 -9
- data/include/grpc/support/log_windows.h +1 -1
- data/include/grpc/support/string_util.h +2 -2
- data/include/grpc/support/subprocess.h +5 -5
- data/include/grpc/support/sync.h +43 -27
- data/include/grpc/support/thd.h +6 -6
- data/include/grpc/support/tls_gcc.h +1 -1
- data/include/grpc/support/tls_pthread.h +1 -1
- data/src/core/ext/census/{grpc_context.c → grpc_context.cc} +5 -8
- data/src/core/ext/filters/client_channel/backup_poller.cc +165 -0
- data/src/core/ext/{census/grpc_filter.h → filters/client_channel/backup_poller.h} +12 -7
- data/src/core/ext/filters/client_channel/{channel_connectivity.c → channel_connectivity.cc} +45 -42
- data/src/core/ext/filters/client_channel/{client_channel.c → client_channel.cc} +452 -417
- data/src/core/ext/filters/client_channel/client_channel.h +16 -8
- data/src/core/ext/filters/client_channel/{client_channel_factory.c → client_channel_factory.cc} +0 -0
- data/src/core/ext/filters/client_channel/client_channel_factory.h +29 -21
- data/src/core/ext/filters/client_channel/{client_channel_plugin.c → client_channel_plugin.cc} +15 -19
- data/src/core/ext/filters/client_channel/{connector.c → connector.cc} +0 -0
- data/src/core/ext/filters/client_channel/connector.h +29 -21
- data/src/core/ext/filters/client_channel/{http_connect_handshaker.c → http_connect_handshaker.cc} +10 -10
- data/src/core/ext/filters/client_channel/http_connect_handshaker.h +8 -0
- data/src/core/ext/filters/client_channel/{http_proxy.c → http_proxy.cc} +14 -14
- data/src/core/ext/filters/client_channel/http_proxy.h +8 -0
- data/src/core/ext/filters/client_channel/{lb_policy.c → lb_policy.cc} +47 -48
- data/src/core/ext/filters/client_channel/lb_policy.h +76 -70
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/{client_load_reporting_filter.c → client_load_reporting_filter.cc} +28 -29
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +9 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/{grpclb.c → grpclb.cc} +554 -563
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +9 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +17 -9
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/{grpclb_channel_secure.c → grpclb_channel_secure.cc} +17 -17
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/{grpclb_client_stats.c → grpclb_client_stats.cc} +3 -3
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +9 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/{load_balancer_api.c → load_balancer_api.cc} +64 -67
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +20 -21
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +599 -0
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +695 -0
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.cc +270 -0
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +153 -0
- data/src/core/ext/filters/client_channel/{lb_policy_factory.c → lb_policy_factory.cc} +10 -10
- data/src/core/ext/filters/client_channel/lb_policy_factory.h +48 -40
- data/src/core/ext/filters/client_channel/{lb_policy_registry.c → lb_policy_registry.cc} +9 -9
- data/src/core/ext/filters/client_channel/lb_policy_registry.h +11 -3
- data/src/core/ext/filters/client_channel/{parse_address.c → parse_address.cc} +24 -24
- data/src/core/ext/filters/client_channel/parse_address.h +14 -6
- data/src/core/ext/filters/client_channel/{proxy_mapper.c → proxy_mapper.cc} +0 -0
- data/src/core/ext/filters/client_channel/proxy_mapper.h +8 -0
- data/src/core/ext/filters/client_channel/{proxy_mapper_registry.c → proxy_mapper_registry.cc} +0 -0
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.h +8 -0
- data/src/core/ext/filters/client_channel/{resolver.c → resolver.cc} +21 -23
- data/src/core/ext/filters/client_channel/resolver.h +33 -27
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/{dns_resolver_ares.c → dns_resolver_ares.cc} +133 -133
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +18 -9
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/{grpc_ares_ev_driver_posix.c → grpc_ares_ev_driver_posix.cc} +58 -56
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/{grpc_ares_wrapper.c → grpc_ares_wrapper.cc} +118 -115
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +23 -15
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc +60 -0
- data/src/core/ext/filters/client_channel/resolver/dns/native/{dns_resolver.c → dns_resolver.cc} +100 -94
- data/src/core/ext/filters/client_channel/resolver/fake/{fake_resolver.c → fake_resolver.cc} +14 -14
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +9 -1
- data/src/core/ext/filters/client_channel/resolver/sockaddr/{sockaddr_resolver.c → sockaddr_resolver.cc} +60 -60
- data/src/core/ext/filters/client_channel/{resolver_factory.c → resolver_factory.cc} +2 -2
- data/src/core/ext/filters/client_channel/resolver_factory.h +27 -19
- data/src/core/ext/filters/client_channel/{resolver_registry.c → resolver_registry.cc} +35 -35
- data/src/core/ext/filters/client_channel/resolver_registry.h +18 -10
- data/src/core/ext/filters/client_channel/{retry_throttle.c → retry_throttle.cc} +10 -10
- data/src/core/ext/filters/client_channel/retry_throttle.h +8 -0
- data/src/core/ext/filters/client_channel/{subchannel.c → subchannel.cc} +210 -213
- data/src/core/ext/filters/client_channel/subchannel.h +68 -60
- data/src/core/ext/filters/client_channel/{subchannel_index.c → subchannel_index.cc} +52 -52
- data/src/core/ext/filters/client_channel/subchannel_index.h +22 -14
- data/src/core/ext/filters/client_channel/{uri_parser.c → uri_parser.cc} +29 -27
- data/src/core/ext/filters/client_channel/uri_parser.h +18 -10
- data/src/core/ext/filters/deadline/{deadline_filter.c → deadline_filter.cc} +12 -15
- data/src/core/ext/filters/deadline/deadline_filter.h +11 -2
- data/src/core/ext/filters/http/client/{http_client_filter.c → http_client_filter.cc} +83 -83
- data/src/core/ext/filters/http/client/http_client_filter.h +8 -0
- data/src/core/ext/filters/http/{http_filters_plugin.c → http_filters_plugin.cc} +20 -21
- data/src/core/ext/filters/http/message_compress/{message_compress_filter.c → message_compress_filter.cc} +84 -83
- data/src/core/ext/filters/http/message_compress/message_compress_filter.h +9 -1
- data/src/core/ext/filters/http/server/{http_server_filter.c → http_server_filter.cc} +80 -78
- data/src/core/ext/filters/http/server/http_server_filter.h +8 -0
- data/src/core/ext/filters/load_reporting/{server_load_reporting_filter.c → server_load_reporting_filter.cc} +29 -29
- data/src/core/ext/filters/load_reporting/server_load_reporting_filter.h +9 -1
- data/src/core/ext/filters/load_reporting/{server_load_reporting_plugin.c → server_load_reporting_plugin.cc} +11 -11
- data/src/core/ext/filters/load_reporting/server_load_reporting_plugin.h +13 -5
- data/src/core/ext/filters/max_age/{max_age_filter.c → max_age_filter.cc} +46 -56
- data/src/core/ext/filters/max_age/max_age_filter.h +8 -0
- data/src/core/ext/filters/message_size/{message_size_filter.c → message_size_filter.cc} +62 -40
- data/src/core/ext/filters/message_size/message_size_filter.h +8 -0
- data/src/core/ext/filters/workarounds/{workaround_cronet_compression_filter.c → workaround_cronet_compression_filter.cc} +11 -11
- data/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h +8 -0
- data/src/core/ext/filters/workarounds/{workaround_utils.c → workaround_utils.cc} +7 -7
- data/src/core/ext/filters/workarounds/workaround_utils.h +9 -1
- data/src/core/ext/transport/chttp2/alpn/{alpn.c → alpn.cc} +3 -3
- data/src/core/ext/transport/chttp2/alpn/alpn.h +10 -2
- data/src/core/ext/transport/chttp2/client/{chttp2_connector.c → chttp2_connector.cc} +49 -45
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +8 -0
- data/src/core/ext/transport/chttp2/client/insecure/{channel_create.c → channel_create.cc} +28 -27
- data/src/core/ext/transport/chttp2/client/insecure/{channel_create_posix.c → channel_create_posix.cc} +14 -13
- data/src/core/ext/transport/chttp2/client/secure/{secure_channel_create.c → secure_channel_create.cc} +68 -66
- data/src/core/ext/transport/chttp2/server/{chttp2_server.c → chttp2_server.cc} +76 -77
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +11 -3
- data/src/core/ext/transport/chttp2/server/insecure/{server_chttp2.c → server_chttp2.cc} +3 -3
- data/src/core/ext/transport/chttp2/server/insecure/{server_chttp2_posix.c → server_chttp2_posix.cc} +13 -12
- data/src/core/ext/transport/chttp2/server/secure/{server_secure_chttp2.c → server_secure_chttp2.cc} +12 -10
- data/src/core/ext/transport/chttp2/transport/{bin_decoder.c → bin_decoder.cc} +7 -7
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +15 -7
- data/src/core/ext/transport/chttp2/transport/{bin_encoder.c → bin_encoder.cc} +11 -11
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +8 -0
- data/src/core/ext/transport/chttp2/transport/{chttp2_plugin.c → chttp2_plugin.cc} +2 -9
- data/src/core/ext/transport/chttp2/transport/{chttp2_transport.c → chttp2_transport.cc} +778 -778
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +14 -10
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +385 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.h +337 -0
- data/src/core/ext/transport/chttp2/transport/frame.h +8 -0
- data/src/core/ext/transport/chttp2/transport/{frame_data.c → frame_data.cc} +34 -34
- data/src/core/ext/transport/chttp2/transport/frame_data.h +25 -17
- data/src/core/ext/transport/chttp2/transport/{frame_goaway.c → frame_goaway.cc} +18 -18
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +18 -10
- data/src/core/ext/transport/chttp2/transport/{frame_ping.c → frame_ping.cc} +18 -19
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +12 -4
- data/src/core/ext/transport/chttp2/transport/{frame_rst_stream.c → frame_rst_stream.cc} +16 -16
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +16 -8
- data/src/core/ext/transport/chttp2/transport/{frame_settings.c → frame_settings.cc} +23 -24
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +17 -9
- data/src/core/ext/transport/chttp2/transport/{frame_window_update.c → frame_window_update.cc} +22 -24
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +14 -6
- data/src/core/ext/transport/chttp2/transport/{hpack_encoder.c → hpack_encoder.cc} +206 -161
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +23 -13
- data/src/core/ext/transport/chttp2/transport/{hpack_parser.c → hpack_parser.cc} +340 -334
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +30 -22
- data/src/core/ext/transport/chttp2/transport/{hpack_table.c → hpack_table.cc} +25 -25
- data/src/core/ext/transport/chttp2/transport/hpack_table.h +19 -11
- data/src/core/ext/transport/chttp2/transport/{http2_settings.c → http2_settings.cc} +1 -1
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +10 -2
- data/src/core/ext/transport/chttp2/transport/{huffsyms.c → huffsyms.cc} +0 -0
- data/src/core/ext/transport/chttp2/transport/huffsyms.h +8 -0
- data/src/core/ext/transport/chttp2/transport/{incoming_metadata.c → incoming_metadata.cc} +14 -13
- data/src/core/ext/transport/chttp2/transport/incoming_metadata.h +18 -10
- data/src/core/ext/transport/chttp2/transport/internal.h +214 -340
- data/src/core/ext/transport/chttp2/transport/{parsing.c → parsing.cc} +152 -141
- data/src/core/ext/transport/chttp2/transport/{stream_lists.c → stream_lists.cc} +53 -53
- data/src/core/ext/transport/chttp2/transport/{stream_map.c → stream_map.cc} +35 -34
- data/src/core/ext/transport/chttp2/transport/stream_map.h +22 -14
- data/src/core/ext/transport/chttp2/transport/{varint.c → varint.cc} +0 -0
- data/src/core/ext/transport/chttp2/transport/varint.h +8 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +636 -0
- data/src/core/ext/transport/inproc/{inproc_plugin.c → inproc_plugin.cc} +5 -6
- data/src/core/ext/transport/inproc/{inproc_transport.c → inproc_transport.cc} +479 -544
- data/src/core/ext/transport/inproc/inproc_transport.h +4 -4
- data/src/core/lib/backoff/backoff.cc +80 -0
- data/src/core/lib/backoff/backoff.h +83 -0
- data/src/core/lib/channel/{channel_args.c → channel_args.cc} +92 -92
- data/src/core/lib/channel/channel_args.h +45 -37
- data/src/core/lib/channel/{channel_stack.c → channel_stack.cc} +67 -68
- data/src/core/lib/channel/channel_stack.h +76 -75
- data/src/core/lib/channel/{channel_stack_builder.c → channel_stack_builder.cc} +91 -91
- data/src/core/lib/channel/channel_stack_builder.h +45 -45
- data/src/core/lib/channel/{connected_channel.c → connected_channel.cc} +70 -70
- data/src/core/lib/channel/connected_channel.h +12 -4
- data/src/core/lib/channel/context.h +2 -2
- data/src/core/lib/channel/{handshaker.c → handshaker.cc} +7 -9
- data/src/core/lib/channel/handshaker.h +9 -1
- data/src/core/lib/channel/{handshaker_factory.c → handshaker_factory.cc} +7 -7
- data/src/core/lib/channel/handshaker_factory.h +18 -10
- data/src/core/lib/channel/{handshaker_registry.c → handshaker_registry.cc} +0 -0
- data/src/core/lib/channel/handshaker_registry.h +8 -0
- data/src/core/lib/compression/algorithm_metadata.h +8 -0
- data/src/core/lib/compression/{compression.c → compression.cc} +9 -9
- data/src/core/lib/compression/{message_compress.c → message_compress.cc} +0 -0
- data/src/core/lib/compression/message_compress.h +8 -0
- data/src/core/lib/compression/{stream_compression.c → stream_compression.cc} +12 -12
- data/src/core/lib/compression/stream_compression.h +27 -19
- data/src/core/lib/compression/{stream_compression_gzip.c → stream_compression_gzip.cc} +35 -36
- data/src/core/lib/compression/stream_compression_gzip.h +8 -0
- data/src/core/lib/compression/{stream_compression_identity.c → stream_compression_identity.cc} +19 -20
- data/src/core/lib/compression/stream_compression_identity.h +8 -0
- data/src/core/lib/debug/{stats.c → stats.cc} +19 -19
- data/src/core/lib/debug/stats.h +17 -9
- data/src/core/lib/debug/{stats_data.c → stats_data.cc} +45 -22
- data/src/core/lib/debug/stats_data.h +58 -19
- data/src/core/lib/debug/trace.cc +142 -0
- data/src/core/lib/debug/trace.h +74 -14
- data/src/core/lib/http/{format_request.c → format_request.cc} +10 -10
- data/src/core/lib/http/format_request.h +12 -4
- data/src/core/lib/http/{httpcli.c → httpcli.cc} +80 -80
- data/src/core/lib/http/httpcli.h +41 -33
- data/src/core/lib/http/{httpcli_security_connector.c → httpcli_security_connector.cc} +69 -55
- data/src/core/lib/http/{parser.c → parser.cc} +42 -42
- data/src/core/lib/http/parser.h +28 -20
- data/src/core/lib/{support → iomgr}/block_annotate.h +17 -8
- data/src/core/lib/iomgr/{call_combiner.c → call_combiner.cc} +29 -17
- data/src/core/lib/iomgr/call_combiner.h +9 -1
- data/src/core/lib/iomgr/closure.h +220 -62
- data/src/core/lib/iomgr/{combiner.c → combiner.cc} +63 -62
- data/src/core/lib/iomgr/combiner.h +16 -8
- data/src/core/lib/iomgr/{endpoint.c → endpoint.cc} +6 -0
- data/src/core/lib/iomgr/endpoint.h +47 -32
- data/src/core/lib/iomgr/endpoint_pair.h +12 -4
- data/src/core/lib/iomgr/{endpoint_pair_posix.c → endpoint_pair_posix.cc} +3 -3
- data/src/core/lib/iomgr/{endpoint_pair_uv.c → endpoint_pair_uv.cc} +2 -2
- data/src/core/lib/iomgr/{endpoint_pair_windows.c → endpoint_pair_windows.cc} +6 -6
- data/src/core/lib/iomgr/{error.c → error.cc} +125 -124
- data/src/core/lib/iomgr/error.h +32 -27
- data/src/core/lib/iomgr/error_internal.h +11 -2
- data/src/core/lib/iomgr/{ev_epoll1_linux.c → ev_epoll1_linux.cc} +214 -215
- data/src/core/lib/iomgr/ev_epoll1_linux.h +9 -1
- data/src/core/lib/iomgr/ev_epollex_linux.cc +1488 -0
- data/src/core/lib/iomgr/ev_epollex_linux.h +9 -1
- data/src/core/lib/iomgr/{ev_epollsig_linux.c → ev_epollsig_linux.cc} +304 -305
- data/src/core/lib/iomgr/ev_epollsig_linux.h +12 -4
- data/src/core/lib/iomgr/{ev_poll_posix.c → ev_poll_posix.cc} +272 -283
- data/src/core/lib/iomgr/ev_poll_posix.h +10 -2
- data/src/core/lib/iomgr/ev_posix.cc +288 -0
- data/src/core/lib/iomgr/ev_posix.h +75 -67
- data/src/core/lib/iomgr/{ev_windows.c → ev_windows.cc} +2 -2
- data/src/core/lib/iomgr/exec_ctx.cc +177 -0
- data/src/core/lib/iomgr/exec_ctx.h +35 -13
- data/src/core/lib/iomgr/{executor.c → executor.cc} +34 -35
- data/src/core/lib/iomgr/executor.h +12 -4
- data/src/core/lib/iomgr/{fork_posix.c → fork_posix.cc} +0 -0
- data/src/core/lib/iomgr/{fork_windows.c → fork_windows.cc} +0 -0
- data/src/core/lib/iomgr/gethostname.h +9 -1
- data/src/core/lib/iomgr/{gethostname_fallback.c → gethostname_fallback.cc} +2 -1
- data/src/core/lib/iomgr/{gethostname_host_name_max.c → gethostname_host_name_max.cc} +4 -3
- data/src/core/lib/iomgr/{gethostname_sysconf.c → gethostname_sysconf.cc} +3 -2
- data/src/core/lib/iomgr/{iocp_windows.c → iocp_windows.cc} +23 -25
- data/src/core/lib/iomgr/iocp_windows.h +17 -3
- data/src/core/lib/iomgr/{iomgr.c → iomgr.cc} +25 -19
- data/src/core/lib/iomgr/iomgr.h +11 -3
- data/src/core/lib/iomgr/iomgr_internal.h +13 -5
- data/src/core/lib/iomgr/{iomgr_posix.c → iomgr_posix.cc} +0 -1
- data/src/core/lib/iomgr/{iomgr_uv.c → iomgr_uv.cc} +1 -1
- data/src/core/lib/iomgr/iomgr_uv.h +8 -0
- data/src/core/lib/iomgr/{iomgr_windows.c → iomgr_windows.cc} +0 -0
- data/src/core/lib/iomgr/{is_epollexclusive_available.c → is_epollexclusive_available.cc} +1 -1
- data/src/core/lib/iomgr/is_epollexclusive_available.h +8 -0
- data/src/core/lib/iomgr/{load_file.c → load_file.cc} +12 -12
- data/src/core/lib/iomgr/load_file.h +2 -2
- data/src/core/lib/iomgr/{lockfree_event.c → lockfree_event.cc} +76 -68
- data/src/core/lib/iomgr/lockfree_event.h +30 -11
- data/src/core/lib/iomgr/{network_status_tracker.c → network_status_tracker.cc} +3 -2
- data/src/core/lib/iomgr/network_status_tracker.h +2 -2
- data/src/core/lib/iomgr/{polling_entity.c → polling_entity.cc} +18 -18
- data/src/core/lib/iomgr/polling_entity.h +21 -13
- data/src/core/lib/iomgr/pollset.h +17 -11
- data/src/core/lib/iomgr/pollset_set.h +23 -15
- data/src/core/lib/iomgr/{pollset_set_uv.c → pollset_set_uv.cc} +0 -0
- data/src/core/lib/iomgr/{pollset_set_windows.c → pollset_set_windows.cc} +0 -0
- data/src/core/lib/iomgr/{pollset_uv.c → pollset_uv.cc} +31 -29
- data/src/core/lib/iomgr/pollset_uv.h +8 -0
- data/src/core/lib/iomgr/{pollset_windows.c → pollset_windows.cc} +24 -24
- data/src/core/lib/iomgr/pollset_windows.h +17 -4
- data/src/core/lib/iomgr/port.h +10 -0
- data/src/core/lib/iomgr/resolve_address.h +18 -10
- data/src/core/lib/iomgr/{resolve_address_posix.c → resolve_address_posix.cc} +40 -40
- data/src/core/lib/iomgr/{resolve_address_uv.c → resolve_address_uv.cc} +61 -56
- data/src/core/lib/iomgr/{resolve_address_windows.c → resolve_address_windows.cc} +36 -34
- data/src/core/lib/iomgr/{resource_quota.c → resource_quota.cc} +209 -180
- data/src/core/lib/iomgr/resource_quota.h +45 -37
- data/src/core/lib/iomgr/{sockaddr_utils.c → sockaddr_utils.cc} +61 -61
- data/src/core/lib/iomgr/sockaddr_utils.h +23 -15
- data/src/core/lib/iomgr/sockaddr_windows.h +6 -0
- data/src/core/lib/iomgr/{socket_factory_posix.c → socket_factory_posix.cc} +20 -20
- data/src/core/lib/iomgr/socket_factory_posix.h +15 -15
- data/src/core/lib/iomgr/{socket_mutator.c → socket_mutator.cc} +18 -18
- data/src/core/lib/iomgr/socket_mutator.h +11 -11
- data/src/core/lib/iomgr/socket_utils.h +9 -1
- data/src/core/lib/iomgr/{socket_utils_common_posix.c → socket_utils_common_posix.cc} +28 -28
- data/src/core/lib/iomgr/{socket_utils_linux.c → socket_utils_linux.cc} +3 -3
- data/src/core/lib/iomgr/{socket_utils_posix.c → socket_utils_posix.cc} +3 -3
- data/src/core/lib/iomgr/socket_utils_posix.h +26 -18
- data/src/core/lib/iomgr/{socket_utils_uv.c → socket_utils_uv.cc} +1 -1
- data/src/core/lib/iomgr/{socket_utils_windows.c → socket_utils_windows.cc} +2 -2
- data/src/core/lib/iomgr/{socket_windows.c → socket_windows.cc} +18 -18
- data/src/core/lib/iomgr/socket_windows.h +26 -13
- data/src/core/lib/iomgr/tcp_client.h +14 -6
- data/src/core/lib/iomgr/{tcp_client_posix.c → tcp_client_posix.cc} +69 -70
- data/src/core/lib/iomgr/tcp_client_posix.h +11 -3
- data/src/core/lib/iomgr/{tcp_client_uv.c → tcp_client_uv.cc} +47 -48
- data/src/core/lib/iomgr/{tcp_client_windows.c → tcp_client_windows.cc} +46 -44
- data/src/core/lib/iomgr/{tcp_posix.c → tcp_posix.cc} +198 -175
- data/src/core/lib/iomgr/tcp_posix.h +15 -7
- data/src/core/lib/iomgr/tcp_server.h +31 -23
- data/src/core/lib/iomgr/{tcp_server_posix.c → tcp_server_posix.cc} +78 -77
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +27 -19
- data/src/core/lib/iomgr/{tcp_server_utils_posix_common.c → tcp_server_utils_posix_common.cc} +27 -27
- data/src/core/lib/iomgr/{tcp_server_utils_posix_ifaddrs.c → tcp_server_utils_posix_ifaddrs.cc} +25 -25
- data/src/core/lib/iomgr/{tcp_server_utils_posix_noifaddrs.c → tcp_server_utils_posix_noifaddrs.cc} +2 -2
- data/src/core/lib/iomgr/{tcp_server_uv.c → tcp_server_uv.cc} +133 -105
- data/src/core/lib/iomgr/{tcp_server_windows.c → tcp_server_windows.cc} +81 -77
- data/src/core/lib/iomgr/tcp_uv.cc +420 -0
- data/src/core/lib/iomgr/tcp_uv.h +18 -4
- data/src/core/lib/iomgr/{tcp_windows.c → tcp_windows.cc} +90 -79
- data/src/core/lib/iomgr/tcp_windows.h +17 -4
- data/src/core/lib/iomgr/{time_averaged_stats.c → time_averaged_stats.cc} +0 -0
- data/src/core/lib/iomgr/time_averaged_stats.h +8 -0
- data/src/core/lib/iomgr/timer.h +16 -9
- data/src/core/lib/iomgr/{timer_generic.c → timer_generic.cc} +130 -171
- data/src/core/lib/iomgr/timer_generic.h +4 -4
- data/src/core/lib/iomgr/{timer_heap.c → timer_heap.cc} +20 -21
- data/src/core/lib/iomgr/timer_heap.h +16 -8
- data/src/core/lib/iomgr/{timer_manager.c → timer_manager.cc} +54 -52
- data/src/core/lib/iomgr/timer_manager.h +8 -0
- data/src/core/lib/iomgr/{timer_uv.c → timer_uv.cc} +22 -24
- data/src/core/lib/iomgr/timer_uv.h +2 -2
- data/src/core/lib/iomgr/{udp_server.c → udp_server.cc} +75 -75
- data/src/core/lib/iomgr/udp_server.h +25 -17
- data/src/core/lib/iomgr/{unix_sockets_posix.c → unix_sockets_posix.cc} +22 -21
- data/src/core/lib/iomgr/unix_sockets_posix.h +14 -6
- data/src/core/lib/iomgr/{unix_sockets_posix_noop.c → unix_sockets_posix_noop.cc} +5 -5
- data/src/core/lib/iomgr/{wakeup_fd_cv.c → wakeup_fd_cv.cc} +2 -2
- data/src/core/lib/iomgr/wakeup_fd_cv.h +10 -0
- data/src/core/lib/iomgr/{wakeup_fd_eventfd.c → wakeup_fd_eventfd.cc} +0 -0
- data/src/core/lib/iomgr/{wakeup_fd_nospecial.c → wakeup_fd_nospecial.cc} +0 -0
- data/src/core/lib/iomgr/{wakeup_fd_pipe.c → wakeup_fd_pipe.cc} +1 -0
- data/src/core/lib/iomgr/wakeup_fd_pipe.h +9 -1
- data/src/core/lib/iomgr/{wakeup_fd_posix.c → wakeup_fd_posix.cc} +6 -7
- data/src/core/lib/iomgr/wakeup_fd_posix.h +8 -0
- data/src/core/lib/json/{json.c → json.cc} +0 -0
- data/src/core/lib/json/json.h +8 -0
- data/src/core/lib/json/{json_reader.c → json_reader.cc} +18 -18
- data/src/core/lib/json/json_reader.h +26 -18
- data/src/core/lib/json/{json_string.c → json_string.cc} +57 -57
- data/src/core/lib/json/{json_writer.c → json_writer.cc} +20 -20
- data/src/core/lib/json/json_writer.h +23 -15
- data/src/core/lib/profiling/{basic_timers.c → basic_timers.cc} +34 -34
- data/src/core/lib/profiling/{stap_timers.c → stap_timers.cc} +5 -5
- data/src/core/lib/profiling/timers.h +6 -6
- data/src/core/lib/security/context/{security_context.c → security_context.cc} +98 -95
- data/src/core/lib/security/context/security_context.h +27 -29
- data/src/core/lib/security/credentials/composite/{composite_credentials.c → composite_credentials.cc} +79 -73
- data/src/core/lib/security/credentials/composite/composite_credentials.h +17 -9
- data/src/core/lib/security/credentials/{credentials.c → credentials.cc} +97 -92
- data/src/core/lib/security/credentials/credentials.h +83 -75
- data/src/core/lib/security/credentials/{credentials_metadata.c → credentials_metadata.cc} +7 -6
- data/src/core/lib/security/credentials/fake/{fake_credentials.c → fake_credentials.cc} +39 -36
- data/src/core/lib/security/credentials/fake/fake_credentials.h +13 -5
- data/src/core/lib/security/credentials/google_default/{credentials_generic.c → credentials_generic.cc} +5 -5
- data/src/core/lib/security/credentials/google_default/{google_default_credentials.c → google_default_credentials.cc} +55 -55
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +9 -1
- data/src/core/lib/security/credentials/iam/{iam_credentials.c → iam_credentials.cc} +19 -18
- data/src/core/lib/security/credentials/jwt/{json_token.c → json_token.cc} +80 -75
- data/src/core/lib/security/credentials/jwt/json_token.h +23 -15
- data/src/core/lib/security/credentials/jwt/{jwt_credentials.c → jwt_credentials.cc} +45 -41
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +11 -3
- data/src/core/lib/security/credentials/jwt/{jwt_verifier.c → jwt_verifier.cc} +262 -252
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +38 -30
- data/src/core/lib/security/credentials/oauth2/{oauth2_credentials.c → oauth2_credentials.cc} +138 -141
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +30 -22
- data/src/core/lib/security/credentials/plugin/{plugin_credentials.c → plugin_credentials.cc} +52 -53
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +7 -7
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +344 -0
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +27 -0
- data/src/core/lib/security/transport/auth_filters.h +16 -0
- data/src/core/lib/security/transport/{client_auth_filter.c → client_auth_filter.cc} +127 -115
- data/src/core/lib/security/transport/{lb_targets_info.c → lb_targets_info.cc} +16 -13
- data/src/core/lib/security/transport/lb_targets_info.h +11 -3
- data/src/core/lib/security/transport/{secure_endpoint.c → secure_endpoint.cc} +84 -76
- data/src/core/lib/security/transport/secure_endpoint.h +13 -5
- data/src/core/lib/security/transport/security_connector.cc +1121 -0
- data/src/core/lib/security/transport/security_connector.h +97 -79
- data/src/core/lib/security/transport/{security_handshaker.c → security_handshaker.cc} +139 -132
- data/src/core/lib/security/transport/security_handshaker.h +11 -3
- data/src/core/lib/security/transport/{server_auth_filter.c → server_auth_filter.cc} +68 -68
- data/src/core/lib/security/transport/{tsi_error.c → tsi_error.cc} +1 -1
- data/src/core/lib/security/transport/tsi_error.h +9 -1
- data/src/core/lib/security/util/{json_util.c → json_util.cc} +11 -11
- data/src/core/lib/security/util/json_util.h +12 -4
- data/src/core/lib/slice/{b64.c → b64.cc} +15 -15
- data/src/core/lib/slice/b64.h +12 -4
- data/src/core/lib/slice/{percent_encoding.c → percent_encoding.cc} +15 -15
- data/src/core/lib/slice/percent_encoding.h +11 -3
- data/src/core/lib/slice/{slice.c → slice.cc} +64 -64
- data/src/core/lib/slice/{slice_buffer.c → slice_buffer.cc} +38 -38
- data/src/core/lib/slice/{slice_hash_table.c → slice_hash_table.cc} +7 -7
- data/src/core/lib/slice/slice_hash_table.h +19 -11
- data/src/core/lib/slice/{slice_intern.c → slice_intern.cc} +35 -34
- data/src/core/lib/slice/slice_internal.h +17 -6
- data/src/core/lib/slice/{slice_string_helpers.c → slice_string_helpers.cc} +9 -9
- data/src/core/lib/slice/slice_string_helpers.h +3 -3
- data/src/core/lib/support/abstract.h +29 -0
- data/src/core/lib/support/{alloc.c → alloc.cc} +22 -22
- data/src/core/lib/support/{arena.c → arena.cc} +12 -12
- data/src/core/lib/support/arena.h +11 -3
- data/src/core/lib/support/{atm.c → atm.cc} +1 -1
- data/src/core/lib/support/{avl.c → avl.cc} +71 -70
- data/src/core/lib/support/{cmdline.c → cmdline.cc} +62 -62
- data/src/core/lib/support/{cpu_iphone.c → cpu_iphone.cc} +2 -0
- data/src/core/lib/support/{cpu_linux.c → cpu_linux.cc} +10 -0
- data/src/core/lib/support/{cpu_posix.c → cpu_posix.cc} +27 -4
- data/src/core/lib/support/{cpu_windows.c → cpu_windows.cc} +1 -0
- data/src/core/lib/support/env.h +3 -3
- data/src/core/lib/support/{env_linux.c → env_linux.cc} +11 -11
- data/src/core/lib/support/{env_posix.c → env_posix.cc} +4 -4
- data/src/core/lib/support/{env_windows.c → env_windows.cc} +5 -5
- data/src/core/lib/support/{fork.c → fork.cc} +2 -2
- data/src/core/lib/support/{histogram.c → histogram.cc} +25 -26
- data/src/core/lib/support/{host_port.c → host_port.cc} +16 -16
- data/src/core/lib/support/{log.c → log.cc} +8 -8
- data/src/core/lib/support/{log_android.c → log_android.cc} +7 -7
- data/src/core/lib/support/{log_linux.c → log_linux.cc} +8 -8
- data/src/core/lib/support/{log_posix.c → log_posix.cc} +9 -10
- data/src/core/lib/support/{log_windows.c → log_windows.cc} +7 -7
- data/src/core/lib/support/manual_constructor.h +211 -0
- data/src/core/lib/support/memory.h +41 -0
- data/src/core/lib/support/mpscq.cc +114 -0
- data/src/core/lib/support/mpscq.h +45 -7
- data/src/core/lib/support/{murmur_hash.c → murmur_hash.cc} +9 -12
- data/src/core/lib/support/murmur_hash.h +9 -1
- data/src/core/lib/support/spinlock.h +8 -1
- data/src/core/lib/support/{string.c → string.cc} +56 -55
- data/src/core/lib/support/string.h +21 -21
- data/src/core/lib/support/{string_posix.c → string_posix.cc} +5 -4
- data/src/core/lib/support/{string_util_windows.c → string_util_windows.cc} +9 -6
- data/src/core/lib/support/{string_windows.c → string_windows.cc} +3 -2
- data/src/core/lib/support/string_windows.h +8 -0
- data/src/core/lib/support/{subprocess_posix.c → subprocess_posix.cc} +13 -13
- data/src/core/lib/support/{subprocess_windows.c → subprocess_windows.cc} +9 -9
- data/src/core/lib/support/{sync.c → sync.cc} +22 -22
- data/src/core/lib/support/{sync_posix.c → sync_posix.cc} +6 -2
- data/src/core/lib/support/{sync_windows.c → sync_windows.cc} +14 -14
- data/src/core/lib/support/{thd.c → thd.cc} +0 -0
- data/src/core/lib/support/{thd_posix.c → thd_posix.cc} +10 -10
- data/src/core/lib/support/{thd_windows.c → thd_windows.cc} +10 -10
- data/src/core/lib/support/{time.c → time.cc} +0 -0
- data/src/core/lib/support/{time_posix.c → time_posix.cc} +5 -6
- data/src/core/lib/support/{time_precise.c → time_precise.cc} +6 -4
- data/src/core/lib/support/time_precise.h +9 -1
- data/src/core/lib/support/{time_windows.c → time_windows.cc} +2 -3
- data/src/core/lib/support/{tls_pthread.c → tls_pthread.cc} +2 -2
- data/src/core/lib/support/tmpfile.h +1 -1
- data/src/core/lib/support/{tmpfile_msys.c → tmpfile_msys.cc} +2 -2
- data/src/core/lib/support/{tmpfile_posix.c → tmpfile_posix.cc} +7 -7
- data/src/core/lib/support/{tmpfile_windows.c → tmpfile_windows.cc} +2 -2
- data/src/core/lib/support/{wrap_memcpy.c → wrap_memcpy.cc} +4 -2
- data/src/core/lib/surface/{alarm.c → alarm.cc} +32 -31
- data/src/core/lib/surface/alarm_internal.h +10 -2
- data/src/core/lib/surface/{api_trace.c → api_trace.cc} +1 -1
- data/src/core/lib/surface/api_trace.h +2 -2
- data/src/core/lib/surface/{byte_buffer.c → byte_buffer.cc} +13 -13
- data/src/core/lib/surface/{byte_buffer_reader.c → byte_buffer_reader.cc} +9 -9
- data/src/core/lib/surface/{call.c → call.cc} +379 -372
- data/src/core/lib/surface/call.h +37 -38
- data/src/core/lib/surface/{call_details.c → call_details.cc} +0 -0
- data/src/core/lib/surface/{call_log_batch.c → call_log_batch.cc} +13 -11
- data/src/core/lib/surface/call_test_only.h +5 -5
- data/src/core/lib/surface/{channel.c → channel.cc} +94 -95
- data/src/core/lib/surface/channel.h +29 -21
- data/src/core/lib/surface/{channel_init.c → channel_init.cc} +13 -13
- data/src/core/lib/surface/channel_init.h +6 -6
- data/src/core/lib/surface/{channel_ping.c → channel_ping.cc} +12 -12
- data/src/core/lib/surface/{channel_stack_type.c → channel_stack_type.cc} +1 -1
- data/src/core/lib/surface/channel_stack_type.h +9 -1
- data/src/core/lib/surface/{completion_queue.c → completion_queue.cc} +416 -379
- data/src/core/lib/surface/completion_queue.h +29 -29
- data/src/core/lib/surface/{completion_queue_factory.c → completion_queue_factory.cc} +1 -1
- data/src/core/lib/surface/completion_queue_factory.h +8 -0
- data/src/core/lib/surface/{event_string.c → event_string.cc} +9 -9
- data/src/core/lib/surface/event_string.h +9 -1
- data/src/core/lib/surface/{init.c → init.cc} +16 -39
- data/src/core/lib/surface/init.h +8 -0
- data/src/core/lib/surface/{init_secure.c → init_secure.cc} +12 -25
- data/src/core/lib/surface/lame_client.cc +38 -40
- data/src/core/lib/surface/lame_client.h +8 -0
- data/src/core/lib/surface/{metadata_array.c → metadata_array.cc} +0 -0
- data/src/core/lib/surface/{server.c → server.cc} +340 -404
- data/src/core/lib/surface/server.h +22 -14
- data/src/core/lib/surface/{validate_metadata.c → validate_metadata.cc} +10 -9
- data/src/core/lib/surface/validate_metadata.h +10 -2
- data/src/core/lib/surface/{version.c → version.cc} +2 -2
- data/src/core/lib/transport/bdp_estimator.cc +84 -0
- data/src/core/lib/transport/bdp_estimator.h +67 -42
- data/src/core/lib/transport/{byte_stream.c → byte_stream.cc} +51 -51
- data/src/core/lib/transport/byte_stream.h +41 -33
- data/src/core/lib/transport/{connectivity_state.c → connectivity_state.cc} +36 -40
- data/src/core/lib/transport/connectivity_state.h +29 -21
- data/src/core/lib/transport/{error_utils.c → error_utils.cc} +26 -22
- data/src/core/lib/transport/error_utils.h +18 -6
- data/src/core/lib/transport/{metadata.c → metadata.cc} +92 -88
- data/src/core/lib/transport/metadata.h +22 -20
- data/src/core/lib/transport/{metadata_batch.c → metadata_batch.cc} +78 -79
- data/src/core/lib/transport/metadata_batch.h +46 -45
- data/src/core/lib/transport/pid_controller.cc +48 -0
- data/src/core/lib/transport/pid_controller.h +84 -32
- data/src/core/lib/transport/{service_config.c → service_config.cc} +66 -48
- data/src/core/lib/transport/service_config.h +11 -2
- data/src/core/lib/transport/{static_metadata.c → static_metadata.cc} +2 -2
- data/src/core/lib/transport/static_metadata.h +30 -23
- data/src/core/lib/transport/{status_conversion.c → status_conversion.cc} +4 -3
- data/src/core/lib/transport/status_conversion.h +12 -2
- data/src/core/lib/transport/{timeout_encoding.c → timeout_encoding.cc} +28 -61
- data/src/core/lib/transport/timeout_encoding.h +11 -2
- data/src/core/lib/transport/{transport.c → transport.cc} +79 -79
- data/src/core/lib/transport/transport.h +78 -80
- data/src/core/lib/transport/transport_impl.h +27 -19
- data/src/core/lib/transport/{transport_op_string.c → transport_op_string.cc} +32 -30
- data/src/core/plugin_registry/{grpc_plugin_registry.c → grpc_plugin_registry.cc} +34 -38
- data/src/core/tsi/{fake_transport_security.c → fake_transport_security.cc} +141 -132
- data/src/core/tsi/fake_transport_security.h +5 -5
- data/src/core/tsi/{gts_transport_security.c → gts_transport_security.cc} +4 -4
- data/src/core/tsi/gts_transport_security.h +11 -3
- data/src/core/tsi/{ssl_transport_security.c → ssl_transport_security.cc} +309 -300
- data/src/core/tsi/ssl_transport_security.h +25 -25
- data/src/core/tsi/ssl_types.h +8 -0
- data/src/core/tsi/{transport_security.c → transport_security.cc} +94 -87
- data/src/core/tsi/transport_security.h +55 -55
- data/src/core/tsi/{transport_security_adapter.c → transport_security_adapter.cc} +58 -55
- data/src/core/tsi/transport_security_adapter.h +2 -2
- data/src/core/tsi/{transport_security_grpc.c → transport_security_grpc.cc} +21 -21
- data/src/core/tsi/transport_security_grpc.h +19 -19
- data/src/core/tsi/transport_security_interface.h +41 -41
- data/src/ruby/ext/grpc/extconf.rb +4 -2
- data/src/ruby/ext/grpc/rb_byte_buffer.c +5 -5
- data/src/ruby/ext/grpc/rb_byte_buffer.h +2 -2
- data/src/ruby/ext/grpc/rb_call.c +41 -42
- data/src/ruby/ext/grpc/rb_call.h +6 -6
- data/src/ruby/ext/grpc/rb_call_credentials.c +30 -30
- data/src/ruby/ext/grpc/rb_channel.c +87 -87
- data/src/ruby/ext/grpc/rb_channel_credentials.c +23 -23
- data/src/ruby/ext/grpc/rb_completion_queue.c +11 -11
- data/src/ruby/ext/grpc/rb_completion_queue.h +3 -3
- data/src/ruby/ext/grpc/rb_compression_options.c +20 -20
- data/src/ruby/ext/grpc/rb_event_thread.c +14 -14
- data/src/ruby/ext/grpc/rb_event_thread.h +1 -1
- data/src/ruby/ext/grpc/rb_grpc.c +8 -8
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +16 -58
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +242 -306
- data/src/ruby/ext/grpc/rb_server.c +23 -23
- data/src/ruby/ext/grpc/rb_server_credentials.c +13 -13
- data/src/ruby/lib/grpc/generic/rpc_server.rb +25 -12
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/checker.rb +14 -0
- data/src/ruby/spec/pb/health/checker_spec.rb +29 -0
- data/third_party/cares/config_freebsd/ares_config.h +502 -0
- data/third_party/cares/config_openbsd/ares_config.h +502 -0
- metadata +302 -328
- data/src/core/ext/census/aggregation.h +0 -51
- data/src/core/ext/census/base_resources.c +0 -56
- data/src/core/ext/census/base_resources.h +0 -24
- data/src/core/ext/census/census_interface.h +0 -61
- data/src/core/ext/census/census_rpc_stats.h +0 -86
- data/src/core/ext/census/context.c +0 -496
- data/src/core/ext/census/gen/census.pb.c +0 -161
- data/src/core/ext/census/gen/census.pb.h +0 -280
- data/src/core/ext/census/gen/trace_context.pb.c +0 -39
- data/src/core/ext/census/gen/trace_context.pb.h +0 -78
- data/src/core/ext/census/grpc_filter.c +0 -196
- data/src/core/ext/census/grpc_plugin.c +0 -70
- data/src/core/ext/census/initialize.c +0 -51
- data/src/core/ext/census/intrusive_hash_map.c +0 -305
- data/src/core/ext/census/intrusive_hash_map.h +0 -152
- data/src/core/ext/census/intrusive_hash_map_internal.h +0 -48
- data/src/core/ext/census/mlog.c +0 -586
- data/src/core/ext/census/mlog.h +0 -80
- data/src/core/ext/census/operation.c +0 -48
- data/src/core/ext/census/placeholders.c +0 -49
- data/src/core/ext/census/resource.c +0 -303
- data/src/core/ext/census/resource.h +0 -48
- data/src/core/ext/census/rpc_metric_id.h +0 -36
- data/src/core/ext/census/trace_context.c +0 -71
- data/src/core/ext/census/trace_context.h +0 -56
- data/src/core/ext/census/trace_label.h +0 -46
- data/src/core/ext/census/trace_propagation.h +0 -48
- data/src/core/ext/census/trace_status.h +0 -30
- data/src/core/ext/census/trace_string.h +0 -35
- data/src/core/ext/census/tracing.c +0 -55
- data/src/core/ext/census/tracing.h +0 -109
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c +0 -714
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c +0 -924
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.c +0 -60
- data/src/core/ext/transport/chttp2/transport/flow_control.c +0 -502
- data/src/core/ext/transport/chttp2/transport/writing.c +0 -534
- data/src/core/lib/debug/trace.c +0 -146
- data/src/core/lib/iomgr/closure.c +0 -219
- data/src/core/lib/iomgr/ev_epollex_linux.c +0 -1461
- data/src/core/lib/iomgr/ev_posix.c +0 -266
- data/src/core/lib/iomgr/exec_ctx.c +0 -113
- data/src/core/lib/iomgr/tcp_uv.c +0 -381
- data/src/core/lib/security/credentials/ssl/ssl_credentials.c +0 -194
- data/src/core/lib/security/transport/security_connector.c +0 -914
- data/src/core/lib/support/backoff.c +0 -72
- data/src/core/lib/support/backoff.h +0 -56
- data/src/core/lib/support/mpscq.c +0 -79
- data/src/core/lib/support/stack_lockfree.c +0 -137
- data/src/core/lib/support/stack_lockfree.h +0 -38
- data/src/core/lib/transport/bdp_estimator.c +0 -110
- data/src/core/lib/transport/pid_controller.c +0 -63
@@ -44,12 +44,12 @@ static VALUE id_insecure_server;
|
|
44
44
|
/* grpc_rb_server wraps a grpc_server. */
|
45
45
|
typedef struct grpc_rb_server {
|
46
46
|
/* The actual server */
|
47
|
-
grpc_server
|
48
|
-
grpc_completion_queue
|
47
|
+
grpc_server* wrapped;
|
48
|
+
grpc_completion_queue* queue;
|
49
49
|
gpr_atm shutdown_started;
|
50
50
|
} grpc_rb_server;
|
51
51
|
|
52
|
-
static void destroy_server(grpc_rb_server
|
52
|
+
static void destroy_server(grpc_rb_server* server, gpr_timespec deadline) {
|
53
53
|
grpc_event ev;
|
54
54
|
// This can be started by app or implicitly by GC. Avoid a race between these.
|
55
55
|
if (gpr_atm_full_fetch_add(&server->shutdown_started, (gpr_atm)1) == 0) {
|
@@ -70,13 +70,13 @@ static void destroy_server(grpc_rb_server *server, gpr_timespec deadline) {
|
|
70
70
|
}
|
71
71
|
|
72
72
|
/* Destroys server instances. */
|
73
|
-
static void grpc_rb_server_free(void
|
74
|
-
grpc_rb_server
|
73
|
+
static void grpc_rb_server_free(void* p) {
|
74
|
+
grpc_rb_server* svr = NULL;
|
75
75
|
gpr_timespec deadline;
|
76
76
|
if (p == NULL) {
|
77
77
|
return;
|
78
78
|
};
|
79
|
-
svr = (grpc_rb_server
|
79
|
+
svr = (grpc_rb_server*)p;
|
80
80
|
|
81
81
|
deadline = gpr_time_add(gpr_now(GPR_CLOCK_REALTIME),
|
82
82
|
gpr_time_from_seconds(2, GPR_TIMESPAN));
|
@@ -105,7 +105,7 @@ static const rb_data_type_t grpc_rb_server_data_type = {
|
|
105
105
|
|
106
106
|
/* Allocates grpc_rb_server instances. */
|
107
107
|
static VALUE grpc_rb_server_alloc(VALUE cls) {
|
108
|
-
grpc_rb_server
|
108
|
+
grpc_rb_server* wrapper = ALLOC(grpc_rb_server);
|
109
109
|
wrapper->wrapped = NULL;
|
110
110
|
wrapper->shutdown_started = (gpr_atm)0;
|
111
111
|
return TypedData_Wrap_Struct(cls, &grpc_rb_server_data_type, wrapper);
|
@@ -117,9 +117,9 @@ static VALUE grpc_rb_server_alloc(VALUE cls) {
|
|
117
117
|
|
118
118
|
Initializes server instances. */
|
119
119
|
static VALUE grpc_rb_server_init(VALUE self, VALUE channel_args) {
|
120
|
-
grpc_completion_queue
|
121
|
-
grpc_rb_server
|
122
|
-
grpc_server
|
120
|
+
grpc_completion_queue* cq = NULL;
|
121
|
+
grpc_rb_server* wrapper = NULL;
|
122
|
+
grpc_server* srv = NULL;
|
123
123
|
grpc_channel_args args;
|
124
124
|
MEMZERO(&args, grpc_channel_args, 1);
|
125
125
|
|
@@ -153,7 +153,7 @@ typedef struct request_call_stack {
|
|
153
153
|
|
154
154
|
/* grpc_request_call_stack_init ensures the request_call_stack is properly
|
155
155
|
* initialized */
|
156
|
-
static void grpc_request_call_stack_init(request_call_stack
|
156
|
+
static void grpc_request_call_stack_init(request_call_stack* st) {
|
157
157
|
MEMZERO(st, request_call_stack, 1);
|
158
158
|
grpc_metadata_array_init(&st->md_ary);
|
159
159
|
grpc_call_details_init(&st->details);
|
@@ -161,7 +161,7 @@ static void grpc_request_call_stack_init(request_call_stack *st) {
|
|
161
161
|
|
162
162
|
/* grpc_request_call_stack_cleanup ensures the request_call_stack is properly
|
163
163
|
* cleaned up */
|
164
|
-
static void grpc_request_call_stack_cleanup(request_call_stack
|
164
|
+
static void grpc_request_call_stack_cleanup(request_call_stack* st) {
|
165
165
|
grpc_metadata_array_destroy(&st->md_ary);
|
166
166
|
grpc_call_details_destroy(&st->details);
|
167
167
|
}
|
@@ -171,14 +171,14 @@ static void grpc_request_call_stack_cleanup(request_call_stack *st) {
|
|
171
171
|
|
172
172
|
Requests notification of a new call on a server. */
|
173
173
|
static VALUE grpc_rb_server_request_call(VALUE self) {
|
174
|
-
grpc_rb_server
|
175
|
-
grpc_call
|
174
|
+
grpc_rb_server* s = NULL;
|
175
|
+
grpc_call* call = NULL;
|
176
176
|
grpc_event ev;
|
177
177
|
grpc_call_error err;
|
178
178
|
request_call_stack st;
|
179
179
|
VALUE result;
|
180
|
-
void
|
181
|
-
grpc_completion_queue
|
180
|
+
void* tag = (void*)&st;
|
181
|
+
grpc_completion_queue* call_queue =
|
182
182
|
grpc_completion_queue_create_for_pluck(NULL);
|
183
183
|
gpr_timespec deadline;
|
184
184
|
|
@@ -222,7 +222,7 @@ static VALUE grpc_rb_server_request_call(VALUE self) {
|
|
222
222
|
}
|
223
223
|
|
224
224
|
static VALUE grpc_rb_server_start(VALUE self) {
|
225
|
-
grpc_rb_server
|
225
|
+
grpc_rb_server* s = NULL;
|
226
226
|
TypedData_Get_Struct(self, grpc_rb_server, &grpc_rb_server_data_type, s);
|
227
227
|
if (s->wrapped == NULL) {
|
228
228
|
rb_raise(rb_eRuntimeError, "destroyed!");
|
@@ -244,10 +244,10 @@ static VALUE grpc_rb_server_start(VALUE self) {
|
|
244
244
|
server.destroy(timeout)
|
245
245
|
|
246
246
|
Destroys server instances. */
|
247
|
-
static VALUE grpc_rb_server_destroy(int argc, VALUE
|
247
|
+
static VALUE grpc_rb_server_destroy(int argc, VALUE* argv, VALUE self) {
|
248
248
|
VALUE timeout = Qnil;
|
249
249
|
gpr_timespec deadline;
|
250
|
-
grpc_rb_server
|
250
|
+
grpc_rb_server* s = NULL;
|
251
251
|
|
252
252
|
/* "01" == 0 mandatory args, 1 (timeout) is optional */
|
253
253
|
rb_scan_args(argc, argv, "01", &timeout);
|
@@ -277,8 +277,8 @@ static VALUE grpc_rb_server_destroy(int argc, VALUE *argv, VALUE self) {
|
|
277
277
|
Adds a http2 port to server */
|
278
278
|
static VALUE grpc_rb_server_add_http2_port(VALUE self, VALUE port,
|
279
279
|
VALUE rb_creds) {
|
280
|
-
grpc_rb_server
|
281
|
-
grpc_server_credentials
|
280
|
+
grpc_rb_server* s = NULL;
|
281
|
+
grpc_server_credentials* creds = NULL;
|
282
282
|
int recvd_port = 0;
|
283
283
|
|
284
284
|
TypedData_Get_Struct(self, grpc_rb_server, &grpc_rb_server_data_type, s);
|
@@ -335,8 +335,8 @@ void Init_grpc_server() {
|
|
335
335
|
}
|
336
336
|
|
337
337
|
/* Gets the wrapped server from the ruby wrapper */
|
338
|
-
grpc_server
|
339
|
-
grpc_rb_server
|
338
|
+
grpc_server* grpc_rb_get_wrapped_server(VALUE v) {
|
339
|
+
grpc_rb_server* wrapper = NULL;
|
340
340
|
TypedData_Get_Struct(v, grpc_rb_server, &grpc_rb_server_data_type, wrapper);
|
341
341
|
return wrapper->wrapped;
|
342
342
|
}
|
@@ -38,16 +38,16 @@ typedef struct grpc_rb_server_credentials {
|
|
38
38
|
/* Holder of ruby objects involved in constructing the server credentials */
|
39
39
|
VALUE mark;
|
40
40
|
/* The actual server credentials */
|
41
|
-
grpc_server_credentials
|
41
|
+
grpc_server_credentials* wrapped;
|
42
42
|
} grpc_rb_server_credentials;
|
43
43
|
|
44
44
|
/* Destroys the server credentials instances. */
|
45
|
-
static void grpc_rb_server_credentials_free(void
|
46
|
-
grpc_rb_server_credentials
|
45
|
+
static void grpc_rb_server_credentials_free(void* p) {
|
46
|
+
grpc_rb_server_credentials* wrapper = NULL;
|
47
47
|
if (p == NULL) {
|
48
48
|
return;
|
49
49
|
};
|
50
|
-
wrapper = (grpc_rb_server_credentials
|
50
|
+
wrapper = (grpc_rb_server_credentials*)p;
|
51
51
|
|
52
52
|
/* Delete the wrapped object if the mark object is Qnil, which indicates that
|
53
53
|
no other object is the actual owner. */
|
@@ -60,12 +60,12 @@ static void grpc_rb_server_credentials_free(void *p) {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
/* Protects the mark object from GC */
|
63
|
-
static void grpc_rb_server_credentials_mark(void
|
64
|
-
grpc_rb_server_credentials
|
63
|
+
static void grpc_rb_server_credentials_mark(void* p) {
|
64
|
+
grpc_rb_server_credentials* wrapper = NULL;
|
65
65
|
if (p == NULL) {
|
66
66
|
return;
|
67
67
|
}
|
68
|
-
wrapper = (grpc_rb_server_credentials
|
68
|
+
wrapper = (grpc_rb_server_credentials*)p;
|
69
69
|
|
70
70
|
/* If it's not already cleaned up, mark the mark object */
|
71
71
|
if (wrapper->mark != Qnil) {
|
@@ -90,7 +90,7 @@ static const rb_data_type_t grpc_rb_server_credentials_data_type = {
|
|
90
90
|
|
91
91
|
Provides safe initial defaults for the instance fields. */
|
92
92
|
static VALUE grpc_rb_server_credentials_alloc(VALUE cls) {
|
93
|
-
grpc_rb_server_credentials
|
93
|
+
grpc_rb_server_credentials* wrapper = ALLOC(grpc_rb_server_credentials);
|
94
94
|
wrapper->wrapped = NULL;
|
95
95
|
wrapper->mark = Qnil;
|
96
96
|
return TypedData_Wrap_Struct(cls, &grpc_rb_server_credentials_data_type,
|
@@ -128,9 +128,9 @@ static VALUE sym_private_key;
|
|
128
128
|
static VALUE grpc_rb_server_credentials_init(VALUE self, VALUE pem_root_certs,
|
129
129
|
VALUE pem_key_certs,
|
130
130
|
VALUE force_client_auth) {
|
131
|
-
grpc_rb_server_credentials
|
132
|
-
grpc_server_credentials
|
133
|
-
grpc_ssl_pem_key_cert_pair
|
131
|
+
grpc_rb_server_credentials* wrapper = NULL;
|
132
|
+
grpc_server_credentials* creds = NULL;
|
133
|
+
grpc_ssl_pem_key_cert_pair* key_cert_pairs = NULL;
|
134
134
|
VALUE cert = Qnil;
|
135
135
|
VALUE key = Qnil;
|
136
136
|
VALUE key_cert = Qnil;
|
@@ -235,8 +235,8 @@ void Init_grpc_server_credentials() {
|
|
235
235
|
}
|
236
236
|
|
237
237
|
/* Gets the wrapped grpc_server_credentials from the ruby wrapper */
|
238
|
-
grpc_server_credentials
|
239
|
-
grpc_rb_server_credentials
|
238
|
+
grpc_server_credentials* grpc_rb_get_wrapped_server_credentials(VALUE v) {
|
239
|
+
grpc_rb_server_credentials* wrapper = NULL;
|
240
240
|
TypedData_Get_Struct(v, grpc_rb_server_credentials,
|
241
241
|
&grpc_rb_server_credentials_data_type, wrapper);
|
242
242
|
return wrapper->wrapped;
|
@@ -92,9 +92,13 @@ module GRPC
|
|
92
92
|
# Stops the jobs in the pool
|
93
93
|
def stop
|
94
94
|
GRPC.logger.info('stopping, will wait for all the workers to exit')
|
95
|
-
|
96
|
-
@stop_mutex.synchronize do # wait @keep_alive for works to stop
|
95
|
+
@stop_mutex.synchronize do # wait @keep_alive seconds for workers to stop
|
97
96
|
@stopped = true
|
97
|
+
loop do
|
98
|
+
break unless ready_for_work?
|
99
|
+
worker_queue = @ready_workers.pop
|
100
|
+
worker_queue << [proc { throw :exit }, []]
|
101
|
+
end
|
98
102
|
@stop_cond.wait(@stop_mutex, @keep_alive) if @workers.size > 0
|
99
103
|
end
|
100
104
|
forcibly_stop_workers
|
@@ -138,7 +142,10 @@ module GRPC
|
|
138
142
|
end
|
139
143
|
# there shouldn't be any work given to this thread while its busy
|
140
144
|
fail('received a task while busy') unless worker_queue.empty?
|
141
|
-
@
|
145
|
+
@stop_mutex.synchronize do
|
146
|
+
return if @stopped
|
147
|
+
@ready_workers << worker_queue
|
148
|
+
end
|
142
149
|
end
|
143
150
|
end
|
144
151
|
end
|
@@ -186,8 +193,13 @@ module GRPC
|
|
186
193
|
# * max_waiting_requests: Deprecated due to internal changes to the thread
|
187
194
|
# pool. This is still an argument for compatibility but is ignored.
|
188
195
|
#
|
189
|
-
# * poll_period:
|
190
|
-
#
|
196
|
+
# * poll_period: The amount of time in seconds to wait for
|
197
|
+
# currently-serviced RPC's to finish before cancelling them when shutting
|
198
|
+
# down the server.
|
199
|
+
#
|
200
|
+
# * pool_keep_alive: The amount of time in seconds to wait
|
201
|
+
# for currently busy thread-pool threads to finish before
|
202
|
+
# forcing an abrupt exit to each thread.
|
191
203
|
#
|
192
204
|
# * connect_md_proc:
|
193
205
|
# when non-nil is a proc for determining metadata to to send back the client
|
@@ -202,17 +214,18 @@ module GRPC
|
|
202
214
|
# intercepting server handlers to provide extra functionality.
|
203
215
|
# Interceptors are an EXPERIMENTAL API.
|
204
216
|
#
|
205
|
-
def initialize(pool_size:DEFAULT_POOL_SIZE,
|
206
|
-
max_waiting_requests:DEFAULT_MAX_WAITING_REQUESTS,
|
207
|
-
poll_period:DEFAULT_POLL_PERIOD,
|
208
|
-
|
209
|
-
|
210
|
-
|
217
|
+
def initialize(pool_size: DEFAULT_POOL_SIZE,
|
218
|
+
max_waiting_requests: DEFAULT_MAX_WAITING_REQUESTS,
|
219
|
+
poll_period: DEFAULT_POLL_PERIOD,
|
220
|
+
pool_keep_alive: GRPC::RpcServer::DEFAULT_POOL_SIZE,
|
221
|
+
connect_md_proc: nil,
|
222
|
+
server_args: {},
|
223
|
+
interceptors: [])
|
211
224
|
@connect_md_proc = RpcServer.setup_connect_md_proc(connect_md_proc)
|
212
225
|
@max_waiting_requests = max_waiting_requests
|
213
226
|
@poll_period = poll_period
|
214
227
|
@pool_size = pool_size
|
215
|
-
@pool = Pool.new(@pool_size)
|
228
|
+
@pool = Pool.new(@pool_size, keep_alive: pool_keep_alive)
|
216
229
|
@run_cond = ConditionVariable.new
|
217
230
|
@run_mutex = Mutex.new
|
218
231
|
# running_state can take 4 values: :not_started, :running, :stopping, and
|
@@ -48,6 +48,20 @@ module Grpc
|
|
48
48
|
@status_mutex.synchronize { @statuses["#{service}"] = status }
|
49
49
|
end
|
50
50
|
|
51
|
+
# Adds given health status for all given services
|
52
|
+
def set_status_for_services(status, *services)
|
53
|
+
@status_mutex.synchronize do
|
54
|
+
services.each { |service| @statuses["#{service}"] = status }
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Adds health status for each service given within hash
|
59
|
+
def add_statuses(service_statuses = {})
|
60
|
+
@status_mutex.synchronize do
|
61
|
+
service_statuses.each_pair { |service, status| @statuses["#{service}"] = status }
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
51
65
|
# Clears the status for the given service.
|
52
66
|
def clear_status(service)
|
53
67
|
@status_mutex.synchronize { @statuses.delete("#{service}") }
|
@@ -99,6 +99,35 @@ describe Grpc::Health::Checker do
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
+
context 'method `add_statuses`' do
|
103
|
+
it 'should add status to each service' do
|
104
|
+
checker = Grpc::Health::Checker.new
|
105
|
+
checker.add_statuses(
|
106
|
+
'service1' => ServingStatus::SERVING,
|
107
|
+
'service2' => ServingStatus::NOT_SERVING
|
108
|
+
)
|
109
|
+
service1_health = checker.check(HCReq.new(service: 'service1'), nil)
|
110
|
+
service2_health = checker.check(HCReq.new(service: 'service2'), nil)
|
111
|
+
expect(service1_health).to eq(HCResp.new(status: ServingStatus::SERVING))
|
112
|
+
expect(service2_health).to eq(HCResp.new(status: ServingStatus::NOT_SERVING))
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
context 'method `set_status_for_services`' do
|
117
|
+
it 'should add given status to all given services' do
|
118
|
+
checker = Grpc::Health::Checker.new
|
119
|
+
checker.set_status_for_services(
|
120
|
+
ServingStatus::SERVING,
|
121
|
+
'service1',
|
122
|
+
'service2'
|
123
|
+
)
|
124
|
+
service1_health = checker.check(HCReq.new(service: 'service1'), nil)
|
125
|
+
service2_health = checker.check(HCReq.new(service: 'service2'), nil)
|
126
|
+
expect(service1_health).to eq(HCResp.new(status: ServingStatus::SERVING))
|
127
|
+
expect(service2_health).to eq(HCResp.new(status: ServingStatus::SERVING))
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
102
131
|
context 'method `check`' do
|
103
132
|
success_tests.each do |t|
|
104
133
|
it "should fail with NOT_FOUND when #{t[:desc]}" do
|
@@ -0,0 +1,502 @@
|
|
1
|
+
/* ares_config.h. Generated from ares_config.h.in by configure. */
|
2
|
+
/* ares_config.h.in. Generated from configure.ac by autoheader. */
|
3
|
+
|
4
|
+
/* Define if building universal (internal helper macro) */
|
5
|
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6
|
+
|
7
|
+
/* define this if ares is built for a big endian system */
|
8
|
+
/* #undef ARES_BIG_ENDIAN */
|
9
|
+
|
10
|
+
/* when building as static part of libcurl */
|
11
|
+
/* #undef BUILDING_LIBCURL */
|
12
|
+
|
13
|
+
/* Defined for build that exposes internal static functions for testing. */
|
14
|
+
/* #undef CARES_EXPOSE_STATICS */
|
15
|
+
|
16
|
+
/* Defined for build with symbol hiding. */
|
17
|
+
#define CARES_SYMBOL_HIDING 1
|
18
|
+
|
19
|
+
/* Definition to make a library symbol externally visible. */
|
20
|
+
#define CARES_SYMBOL_SCOPE_EXTERN __attribute__ ((__visibility__ ("default")))
|
21
|
+
|
22
|
+
/* the signed version of size_t */
|
23
|
+
#define CARES_TYPEOF_ARES_SSIZE_T ssize_t
|
24
|
+
|
25
|
+
/* Use resolver library to configure cares */
|
26
|
+
/* #undef CARES_USE_LIBRESOLV */
|
27
|
+
|
28
|
+
/* if a /etc/inet dir is being used */
|
29
|
+
/* #undef ETC_INET */
|
30
|
+
|
31
|
+
/* Define to the type of arg 2 for gethostname. */
|
32
|
+
#define GETHOSTNAME_TYPE_ARG2 size_t
|
33
|
+
|
34
|
+
/* Define to the type qualifier of arg 1 for getnameinfo. */
|
35
|
+
#define GETNAMEINFO_QUAL_ARG1 const
|
36
|
+
|
37
|
+
/* Define to the type of arg 1 for getnameinfo. */
|
38
|
+
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
|
39
|
+
|
40
|
+
/* Define to the type of arg 2 for getnameinfo. */
|
41
|
+
#define GETNAMEINFO_TYPE_ARG2 socklen_t
|
42
|
+
|
43
|
+
/* Define to the type of args 4 and 6 for getnameinfo. */
|
44
|
+
#define GETNAMEINFO_TYPE_ARG46 size_t
|
45
|
+
|
46
|
+
/* Define to the type of arg 7 for getnameinfo. */
|
47
|
+
#define GETNAMEINFO_TYPE_ARG7 int
|
48
|
+
|
49
|
+
/* Specifies the number of arguments to getservbyport_r */
|
50
|
+
#define GETSERVBYPORT_R_ARGS 6
|
51
|
+
|
52
|
+
/* Specifies the size of the buffer to pass to getservbyport_r */
|
53
|
+
#define GETSERVBYPORT_R_BUFSIZE 4096
|
54
|
+
|
55
|
+
/* Define to 1 if you have AF_INET6. */
|
56
|
+
#define HAVE_AF_INET6 1
|
57
|
+
|
58
|
+
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
59
|
+
#define HAVE_ARPA_INET_H 1
|
60
|
+
|
61
|
+
/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
|
62
|
+
#define HAVE_ARPA_NAMESER_COMPAT_H 1
|
63
|
+
|
64
|
+
/* Define to 1 if you have the <arpa/nameser.h> header file. */
|
65
|
+
#define HAVE_ARPA_NAMESER_H 1
|
66
|
+
|
67
|
+
/* Define to 1 if you have the <assert.h> header file. */
|
68
|
+
#define HAVE_ASSERT_H 1
|
69
|
+
|
70
|
+
/* Define to 1 if you have the `bitncmp' function. */
|
71
|
+
/* #undef HAVE_BITNCMP */
|
72
|
+
|
73
|
+
/* Define to 1 if bool is an available type. */
|
74
|
+
#define HAVE_BOOL_T 1
|
75
|
+
|
76
|
+
/* Define to 1 if you have the clock_gettime function and monotonic timer. */
|
77
|
+
#define HAVE_CLOCK_GETTIME_MONOTONIC 1
|
78
|
+
|
79
|
+
/* Define to 1 if you have the closesocket function. */
|
80
|
+
/* #undef HAVE_CLOSESOCKET */
|
81
|
+
|
82
|
+
/* Define to 1 if you have the CloseSocket camel case function. */
|
83
|
+
/* #undef HAVE_CLOSESOCKET_CAMEL */
|
84
|
+
|
85
|
+
/* Define to 1 if you have the connect function. */
|
86
|
+
#define HAVE_CONNECT 1
|
87
|
+
|
88
|
+
/* define if the compiler supports basic C++11 syntax */
|
89
|
+
#define HAVE_CXX11 1
|
90
|
+
|
91
|
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
92
|
+
#define HAVE_DLFCN_H 1
|
93
|
+
|
94
|
+
/* Define to 1 if you have the <errno.h> header file. */
|
95
|
+
#define HAVE_ERRNO_H 1
|
96
|
+
|
97
|
+
/* Define to 1 if you have the fcntl function. */
|
98
|
+
#define HAVE_FCNTL 1
|
99
|
+
|
100
|
+
/* Define to 1 if you have the <fcntl.h> header file. */
|
101
|
+
#define HAVE_FCNTL_H 1
|
102
|
+
|
103
|
+
/* Define to 1 if you have a working fcntl O_NONBLOCK function. */
|
104
|
+
#define HAVE_FCNTL_O_NONBLOCK 1
|
105
|
+
|
106
|
+
/* Define to 1 if you have the freeaddrinfo function. */
|
107
|
+
#define HAVE_FREEADDRINFO 1
|
108
|
+
|
109
|
+
/* Define to 1 if you have a working getaddrinfo function. */
|
110
|
+
#define HAVE_GETADDRINFO 1
|
111
|
+
|
112
|
+
/* Define to 1 if the getaddrinfo function is threadsafe. */
|
113
|
+
#define HAVE_GETADDRINFO_THREADSAFE 1
|
114
|
+
|
115
|
+
/* Define to 1 if you have the getenv function. */
|
116
|
+
#define HAVE_GETENV 1
|
117
|
+
|
118
|
+
/* Define to 1 if you have the gethostbyaddr function. */
|
119
|
+
#define HAVE_GETHOSTBYADDR 1
|
120
|
+
|
121
|
+
/* Define to 1 if you have the gethostbyname function. */
|
122
|
+
#define HAVE_GETHOSTBYNAME 1
|
123
|
+
|
124
|
+
/* Define to 1 if you have the gethostname function. */
|
125
|
+
#define HAVE_GETHOSTNAME 1
|
126
|
+
|
127
|
+
/* Define to 1 if you have the getnameinfo function. */
|
128
|
+
#define HAVE_GETNAMEINFO 1
|
129
|
+
|
130
|
+
/* Define to 1 if you have the getservbyport_r function. */
|
131
|
+
#define HAVE_GETSERVBYPORT_R 1
|
132
|
+
|
133
|
+
/* Define to 1 if you have the `gettimeofday' function. */
|
134
|
+
#define HAVE_GETTIMEOFDAY 1
|
135
|
+
|
136
|
+
/* Define to 1 if you have the `if_indextoname' function. */
|
137
|
+
#define HAVE_IF_INDEXTONAME 1
|
138
|
+
|
139
|
+
/* Define to 1 if you have a IPv6 capable working inet_net_pton function. */
|
140
|
+
#define HAVE_INET_NET_PTON 1
|
141
|
+
|
142
|
+
/* Define to 1 if you have a IPv6 capable working inet_ntop function. */
|
143
|
+
#define HAVE_INET_NTOP 1
|
144
|
+
|
145
|
+
/* Define to 1 if you have a IPv6 capable working inet_pton function. */
|
146
|
+
#define HAVE_INET_PTON 1
|
147
|
+
|
148
|
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
149
|
+
#define HAVE_INTTYPES_H 1
|
150
|
+
|
151
|
+
/* Define to 1 if you have the ioctl function. */
|
152
|
+
#define HAVE_IOCTL 1
|
153
|
+
|
154
|
+
/* Define to 1 if you have the ioctlsocket function. */
|
155
|
+
/* #undef HAVE_IOCTLSOCKET */
|
156
|
+
|
157
|
+
/* Define to 1 if you have the IoctlSocket camel case function. */
|
158
|
+
/* #undef HAVE_IOCTLSOCKET_CAMEL */
|
159
|
+
|
160
|
+
/* Define to 1 if you have a working IoctlSocket camel case FIONBIO function.
|
161
|
+
*/
|
162
|
+
/* #undef HAVE_IOCTLSOCKET_CAMEL_FIONBIO */
|
163
|
+
|
164
|
+
/* Define to 1 if you have a working ioctlsocket FIONBIO function. */
|
165
|
+
/* #undef HAVE_IOCTLSOCKET_FIONBIO */
|
166
|
+
|
167
|
+
/* Define to 1 if you have a working ioctl FIONBIO function. */
|
168
|
+
#define HAVE_IOCTL_FIONBIO 1
|
169
|
+
|
170
|
+
/* Define to 1 if you have a working ioctl SIOCGIFADDR function. */
|
171
|
+
#define HAVE_IOCTL_SIOCGIFADDR 1
|
172
|
+
|
173
|
+
/* Define to 1 if you have the `resolve' library (-lresolve). */
|
174
|
+
/* #undef HAVE_LIBRESOLVE */
|
175
|
+
|
176
|
+
/* Define to 1 if you have the <limits.h> header file. */
|
177
|
+
#define HAVE_LIMITS_H 1
|
178
|
+
|
179
|
+
/* if your compiler supports LL */
|
180
|
+
#define HAVE_LL 1
|
181
|
+
|
182
|
+
/* Define to 1 if the compiler supports the 'long long' data type. */
|
183
|
+
#define HAVE_LONGLONG 1
|
184
|
+
|
185
|
+
/* Define to 1 if you have the malloc.h header file. */
|
186
|
+
/* #undef HAVE_MALLOC_H */
|
187
|
+
|
188
|
+
/* Define to 1 if you have the memory.h header file. */
|
189
|
+
#define HAVE_MEMORY_H 1
|
190
|
+
|
191
|
+
/* Define to 1 if you have the MSG_NOSIGNAL flag. */
|
192
|
+
#define HAVE_MSG_NOSIGNAL 1
|
193
|
+
|
194
|
+
/* Define to 1 if you have the <netdb.h> header file. */
|
195
|
+
#define HAVE_NETDB_H 1
|
196
|
+
|
197
|
+
/* Define to 1 if you have the <netinet/in.h> header file. */
|
198
|
+
#define HAVE_NETINET_IN_H 1
|
199
|
+
|
200
|
+
/* Define to 1 if you have the <netinet/tcp.h> header file. */
|
201
|
+
#define HAVE_NETINET_TCP_H 1
|
202
|
+
|
203
|
+
/* Define to 1 if you have the <net/if.h> header file. */
|
204
|
+
#define HAVE_NET_IF_H 1
|
205
|
+
|
206
|
+
/* Define to 1 if you have PF_INET6. */
|
207
|
+
#define HAVE_PF_INET6 1
|
208
|
+
|
209
|
+
/* Define to 1 if you have the recv function. */
|
210
|
+
#define HAVE_RECV 1
|
211
|
+
|
212
|
+
/* Define to 1 if you have the recvfrom function. */
|
213
|
+
#define HAVE_RECVFROM 1
|
214
|
+
|
215
|
+
/* Define to 1 if you have the send function. */
|
216
|
+
#define HAVE_SEND 1
|
217
|
+
|
218
|
+
/* Define to 1 if you have the setsockopt function. */
|
219
|
+
#define HAVE_SETSOCKOPT 1
|
220
|
+
|
221
|
+
/* Define to 1 if you have a working setsockopt SO_NONBLOCK function. */
|
222
|
+
/* #undef HAVE_SETSOCKOPT_SO_NONBLOCK */
|
223
|
+
|
224
|
+
/* Define to 1 if you have the <signal.h> header file. */
|
225
|
+
#define HAVE_SIGNAL_H 1
|
226
|
+
|
227
|
+
/* Define to 1 if sig_atomic_t is an available typedef. */
|
228
|
+
#define HAVE_SIG_ATOMIC_T 1
|
229
|
+
|
230
|
+
/* Define to 1 if sig_atomic_t is already defined as volatile. */
|
231
|
+
/* #undef HAVE_SIG_ATOMIC_T_VOLATILE */
|
232
|
+
|
233
|
+
/* Define to 1 if your struct sockaddr_in6 has sin6_scope_id. */
|
234
|
+
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
235
|
+
|
236
|
+
/* Define to 1 if you have the socket function. */
|
237
|
+
#define HAVE_SOCKET 1
|
238
|
+
|
239
|
+
/* Define to 1 if you have the <socket.h> header file. */
|
240
|
+
/* #undef HAVE_SOCKET_H */
|
241
|
+
|
242
|
+
/* Define to 1 if you have the <stdbool.h> header file. */
|
243
|
+
#define HAVE_STDBOOL_H 1
|
244
|
+
|
245
|
+
/* Define to 1 if you have the <stdint.h> header file. */
|
246
|
+
#define HAVE_STDINT_H 1
|
247
|
+
|
248
|
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
249
|
+
#define HAVE_STDLIB_H 1
|
250
|
+
|
251
|
+
/* Define to 1 if you have the strcasecmp function. */
|
252
|
+
#define HAVE_STRCASECMP 1
|
253
|
+
|
254
|
+
/* Define to 1 if you have the strcmpi function. */
|
255
|
+
/* #undef HAVE_STRCMPI */
|
256
|
+
|
257
|
+
/* Define to 1 if you have the strdup function. */
|
258
|
+
#define HAVE_STRDUP 1
|
259
|
+
|
260
|
+
/* Define to 1 if you have the stricmp function. */
|
261
|
+
/* #undef HAVE_STRICMP */
|
262
|
+
|
263
|
+
/* Define to 1 if you have the <strings.h> header file. */
|
264
|
+
#define HAVE_STRINGS_H 1
|
265
|
+
|
266
|
+
/* Define to 1 if you have the <string.h> header file. */
|
267
|
+
#define HAVE_STRING_H 1
|
268
|
+
|
269
|
+
/* Define to 1 if you have the strncasecmp function. */
|
270
|
+
#define HAVE_STRNCASECMP 1
|
271
|
+
|
272
|
+
/* Define to 1 if you have the strncmpi function. */
|
273
|
+
/* #undef HAVE_STRNCMPI */
|
274
|
+
|
275
|
+
/* Define to 1 if you have the strnicmp function. */
|
276
|
+
/* #undef HAVE_STRNICMP */
|
277
|
+
|
278
|
+
/* Define to 1 if you have the <stropts.h> header file. */
|
279
|
+
/* #undef HAVE_STROPTS_H */
|
280
|
+
|
281
|
+
/* Define to 1 if you have struct addrinfo. */
|
282
|
+
#define HAVE_STRUCT_ADDRINFO 1
|
283
|
+
|
284
|
+
/* Define to 1 if you have struct in6_addr. */
|
285
|
+
#define HAVE_STRUCT_IN6_ADDR 1
|
286
|
+
|
287
|
+
/* Define to 1 if you have struct sockaddr_in6. */
|
288
|
+
#define HAVE_STRUCT_SOCKADDR_IN6 1
|
289
|
+
|
290
|
+
/* if struct sockaddr_storage is defined */
|
291
|
+
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
292
|
+
|
293
|
+
/* Define to 1 if you have the timeval struct. */
|
294
|
+
#define HAVE_STRUCT_TIMEVAL 1
|
295
|
+
|
296
|
+
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
297
|
+
#define HAVE_SYS_IOCTL_H 1
|
298
|
+
|
299
|
+
/* Define to 1 if you have the <sys/param.h> header file. */
|
300
|
+
#define HAVE_SYS_PARAM_H 1
|
301
|
+
|
302
|
+
/* Define to 1 if you have the <sys/select.h> header file. */
|
303
|
+
#define HAVE_SYS_SELECT_H 1
|
304
|
+
|
305
|
+
/* Define to 1 if you have the <sys/socket.h> header file. */
|
306
|
+
#define HAVE_SYS_SOCKET_H 1
|
307
|
+
|
308
|
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
309
|
+
#define HAVE_SYS_STAT_H 1
|
310
|
+
|
311
|
+
/* Define to 1 if you have the <sys/time.h> header file. */
|
312
|
+
#define HAVE_SYS_TIME_H 1
|
313
|
+
|
314
|
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
315
|
+
#define HAVE_SYS_TYPES_H 1
|
316
|
+
|
317
|
+
/* Define to 1 if you have the <sys/uio.h> header file. */
|
318
|
+
#define HAVE_SYS_UIO_H 1
|
319
|
+
|
320
|
+
/* Define to 1 if you have the <time.h> header file. */
|
321
|
+
#define HAVE_TIME_H 1
|
322
|
+
|
323
|
+
/* Define to 1 if you have the <unistd.h> header file. */
|
324
|
+
#define HAVE_UNISTD_H 1
|
325
|
+
|
326
|
+
/* Define to 1 if you have the windows.h header file. */
|
327
|
+
/* #undef HAVE_WINDOWS_H */
|
328
|
+
|
329
|
+
/* Define to 1 if you have the winsock2.h header file. */
|
330
|
+
/* #undef HAVE_WINSOCK2_H */
|
331
|
+
|
332
|
+
/* Define to 1 if you have the winsock.h header file. */
|
333
|
+
/* #undef HAVE_WINSOCK_H */
|
334
|
+
|
335
|
+
/* Define to 1 if you have the writev function. */
|
336
|
+
#define HAVE_WRITEV 1
|
337
|
+
|
338
|
+
/* Define to 1 if you have the ws2tcpip.h header file. */
|
339
|
+
/* #undef HAVE_WS2TCPIP_H */
|
340
|
+
|
341
|
+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
342
|
+
#define LT_OBJDIR ".libs/"
|
343
|
+
|
344
|
+
/* Define to 1 if you need the malloc.h header file even with stdlib.h */
|
345
|
+
/* #undef NEED_MALLOC_H */
|
346
|
+
|
347
|
+
/* Define to 1 if you need the memory.h header file even with stdlib.h */
|
348
|
+
/* #undef NEED_MEMORY_H */
|
349
|
+
|
350
|
+
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */
|
351
|
+
/* #undef NEED_REENTRANT */
|
352
|
+
|
353
|
+
/* Define to 1 if _THREAD_SAFE preprocessor symbol must be defined. */
|
354
|
+
/* #undef NEED_THREAD_SAFE */
|
355
|
+
|
356
|
+
/* cpu-machine-OS */
|
357
|
+
#define OS "amd64-unknown-freebsd11.0"
|
358
|
+
|
359
|
+
/* Name of package */
|
360
|
+
#define PACKAGE "c-ares"
|
361
|
+
|
362
|
+
/* Define to the address where bug reports for this package should be sent. */
|
363
|
+
#define PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
|
364
|
+
|
365
|
+
/* Define to the full name of this package. */
|
366
|
+
#define PACKAGE_NAME "c-ares"
|
367
|
+
|
368
|
+
/* Define to the full name and version of this package. */
|
369
|
+
#define PACKAGE_STRING "c-ares -"
|
370
|
+
|
371
|
+
/* Define to the one symbol short name of this package. */
|
372
|
+
#define PACKAGE_TARNAME "c-ares"
|
373
|
+
|
374
|
+
/* Define to the home page for this package. */
|
375
|
+
#define PACKAGE_URL ""
|
376
|
+
|
377
|
+
/* Define to the version of this package. */
|
378
|
+
#define PACKAGE_VERSION "-"
|
379
|
+
|
380
|
+
/* a suitable file/device to read random data from */
|
381
|
+
#define RANDOM_FILE "/dev/urandom"
|
382
|
+
|
383
|
+
/* Define to the type qualifier pointed by arg 5 for recvfrom. */
|
384
|
+
#define RECVFROM_QUAL_ARG5
|
385
|
+
|
386
|
+
/* Define to the type of arg 1 for recvfrom. */
|
387
|
+
#define RECVFROM_TYPE_ARG1 int
|
388
|
+
|
389
|
+
/* Define to the type pointed by arg 2 for recvfrom. */
|
390
|
+
#define RECVFROM_TYPE_ARG2 void
|
391
|
+
|
392
|
+
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
|
393
|
+
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
394
|
+
|
395
|
+
/* Define to the type of arg 3 for recvfrom. */
|
396
|
+
#define RECVFROM_TYPE_ARG3 size_t
|
397
|
+
|
398
|
+
/* Define to the type of arg 4 for recvfrom. */
|
399
|
+
#define RECVFROM_TYPE_ARG4 int
|
400
|
+
|
401
|
+
/* Define to the type pointed by arg 5 for recvfrom. */
|
402
|
+
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
403
|
+
|
404
|
+
/* Define to 1 if the type pointed by arg 5 for recvfrom is void. */
|
405
|
+
/* #undef RECVFROM_TYPE_ARG5_IS_VOID */
|
406
|
+
|
407
|
+
/* Define to the type pointed by arg 6 for recvfrom. */
|
408
|
+
#define RECVFROM_TYPE_ARG6 socklen_t
|
409
|
+
|
410
|
+
/* Define to 1 if the type pointed by arg 6 for recvfrom is void. */
|
411
|
+
/* #undef RECVFROM_TYPE_ARG6_IS_VOID */
|
412
|
+
|
413
|
+
/* Define to the function return type for recvfrom. */
|
414
|
+
#define RECVFROM_TYPE_RETV ssize_t
|
415
|
+
|
416
|
+
/* Define to the type of arg 1 for recv. */
|
417
|
+
#define RECV_TYPE_ARG1 int
|
418
|
+
|
419
|
+
/* Define to the type of arg 2 for recv. */
|
420
|
+
#define RECV_TYPE_ARG2 void *
|
421
|
+
|
422
|
+
/* Define to the type of arg 3 for recv. */
|
423
|
+
#define RECV_TYPE_ARG3 size_t
|
424
|
+
|
425
|
+
/* Define to the type of arg 4 for recv. */
|
426
|
+
#define RECV_TYPE_ARG4 int
|
427
|
+
|
428
|
+
/* Define to the function return type for recv. */
|
429
|
+
#define RECV_TYPE_RETV ssize_t
|
430
|
+
|
431
|
+
/* Define as the return type of signal handlers (`int' or `void'). */
|
432
|
+
#define RETSIGTYPE void
|
433
|
+
|
434
|
+
/* Define to the type qualifier of arg 2 for send. */
|
435
|
+
#define SEND_QUAL_ARG2 const
|
436
|
+
|
437
|
+
/* Define to the type of arg 1 for send. */
|
438
|
+
#define SEND_TYPE_ARG1 int
|
439
|
+
|
440
|
+
/* Define to the type of arg 2 for send. */
|
441
|
+
#define SEND_TYPE_ARG2 void *
|
442
|
+
|
443
|
+
/* Define to the type of arg 3 for send. */
|
444
|
+
#define SEND_TYPE_ARG3 size_t
|
445
|
+
|
446
|
+
/* Define to the type of arg 4 for send. */
|
447
|
+
#define SEND_TYPE_ARG4 int
|
448
|
+
|
449
|
+
/* Define to the function return type for send. */
|
450
|
+
#define SEND_TYPE_RETV ssize_t
|
451
|
+
|
452
|
+
/* Define to 1 if you have the ANSI C header files. */
|
453
|
+
#define STDC_HEADERS 1
|
454
|
+
|
455
|
+
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
456
|
+
#define TIME_WITH_SYS_TIME 1
|
457
|
+
|
458
|
+
/* Define to disable non-blocking sockets. */
|
459
|
+
/* #undef USE_BLOCKING_SOCKETS */
|
460
|
+
|
461
|
+
/* Version number of package */
|
462
|
+
#define VERSION "-"
|
463
|
+
|
464
|
+
/* Define to avoid automatic inclusion of winsock.h */
|
465
|
+
/* #undef WIN32_LEAN_AND_MEAN */
|
466
|
+
|
467
|
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
468
|
+
significant byte first (like Motorola and SPARC, unlike Intel). */
|
469
|
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
470
|
+
# if defined __BIG_ENDIAN__
|
471
|
+
# define WORDS_BIGENDIAN 1
|
472
|
+
# endif
|
473
|
+
#else
|
474
|
+
# ifndef WORDS_BIGENDIAN
|
475
|
+
/* # undef WORDS_BIGENDIAN */
|
476
|
+
# endif
|
477
|
+
#endif
|
478
|
+
|
479
|
+
/* Define to 1 if OS is AIX. */
|
480
|
+
#ifndef _ALL_SOURCE
|
481
|
+
/* # undef _ALL_SOURCE */
|
482
|
+
#endif
|
483
|
+
|
484
|
+
/* Enable large inode numbers on Mac OS X 10.5. */
|
485
|
+
#ifndef _DARWIN_USE_64_BIT_INODE
|
486
|
+
# define _DARWIN_USE_64_BIT_INODE 1
|
487
|
+
#endif
|
488
|
+
|
489
|
+
/* Number of bits in a file offset, on hosts where this is settable. */
|
490
|
+
/* #undef _FILE_OFFSET_BITS */
|
491
|
+
|
492
|
+
/* Define for large files, on AIX-style hosts. */
|
493
|
+
/* #undef _LARGE_FILES */
|
494
|
+
|
495
|
+
/* Define to empty if `const' does not conform to ANSI C. */
|
496
|
+
/* #undef const */
|
497
|
+
|
498
|
+
/* Type to use in place of in_addr_t when system does not provide it. */
|
499
|
+
/* #undef in_addr_t */
|
500
|
+
|
501
|
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
502
|
+
/* #undef size_t */
|