#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <memory>
#include <ares.h>
#include "absl/base/thread_annotations.h"
#include <grpc/support/log.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/resolver/server_address.h"
Go to the source code of this file.
Classes | |
struct | grpc_ares_request |
Macros | |
#define | GRPC_CARES_TRACE_LOG(format, ...) |
#define | GRPC_DNS_ARES_DEFAULT_QUERY_TIMEOUT_MS 120000 |
Typedefs | |
typedef struct grpc_ares_ev_driver | grpc_ares_ev_driver |
Functions | |
void | grpc_ares_cleanup (void) |
grpc_error_handle | grpc_ares_init (void) |
bool | grpc_ares_query_ipv6 () |
void | grpc_cares_wrapper_address_sorting_sort (const grpc_ares_request *request, grpc_core::ServerAddressList *addresses) |
Variables | |
void(* | grpc_ares_test_only_inject_config )(ares_channel channel) |
void(* | grpc_cancel_ares_request )(grpc_ares_request *request) |
grpc_ares_request *(* | grpc_dns_lookup_ares )(const char *dns_server, const char *name, const char *default_port, grpc_pollset_set *interested_parties, grpc_closure *on_done, std::unique_ptr< grpc_core::ServerAddressList > *addresses, std::unique_ptr< grpc_core::ServerAddressList > *balancer_addresses, char **service_config_json, int query_timeout_ms) |
grpc_core::TraceFlag | grpc_trace_cares_address_sorting |
grpc_core::TraceFlag | grpc_trace_cares_resolver |
#define GRPC_CARES_TRACE_LOG | ( | format, | |
... | |||
) |
Definition at line 47 of file grpc_ares_wrapper.h.
#define GRPC_DNS_ARES_DEFAULT_QUERY_TIMEOUT_MS 120000 |
Definition at line 41 of file grpc_ares_wrapper.h.
typedef struct grpc_ares_ev_driver grpc_ares_ev_driver |
Definition at line 54 of file grpc_ares_wrapper.h.
void grpc_ares_cleanup | ( | void | ) |
grpc_error_handle grpc_ares_init | ( | void | ) |
bool grpc_ares_query_ipv6 | ( | ) |
void grpc_cares_wrapper_address_sorting_sort | ( | const grpc_ares_request * | request, |
grpc_core::ServerAddressList * | addresses | ||
) |
void(* grpc_ares_test_only_inject_config) (ares_channel channel) |
void(* grpc_cancel_ares_request) (grpc_ares_request *request) |
grpc_ares_request*(* grpc_dns_lookup_ares) (const char *dns_server, const char *name, const char *default_port, grpc_pollset_set *interested_parties, grpc_closure *on_done, std::unique_ptr< grpc_core::ServerAddressList > *addresses, std::unique_ptr< grpc_core::ServerAddressList > *balancer_addresses, char **service_config_json, int query_timeout_ms) |
grpc_core::TraceFlag grpc_trace_cares_address_sorting |
grpc_core::TraceFlag grpc_trace_cares_resolver |