Home
last modified time | relevance | path

Searched full:ares (Results 1 – 25 of 180) sorted by relevance

12345678

/external/curl/CMake/
DFindCARES.cmake1 # - Find c-ares
2 # Find the c-ares includes and library
4 # CARES_INCLUDE_DIR, where to find ares.h, etc.
5 # CARES_LIBRARIES, the libraries needed to use c-ares.
6 # CARES_FOUND, If false, do not try to use c-ares.
8 # CARES_LIBRARY, where to find the c-ares library.
10 find_path(CARES_INCLUDE_DIR ares.h
31 message(STATUS "Found c-ares: ${CARES_LIBRARIES}")
35 message(FATAL_ERROR "Could not find c-ares library")
/external/curl/lib/
Dasyn-ares.c26 * Only for ares-enabled builds
74 # include <ares.h>
75 # include <ares_version.h> /* really old c-ares didn't include this by
79 /* c-ares 1.5.0 or later, the callback proto is modified */
90 Curl_addrinfo *temp_ai; /* intermediary result while fetching c-ares parts */
97 * environment. Initializes ares library.
113 * Deinitializes ares library.
156 ares channel before returning error! */ in Curl_resolver_init()
164 * structure). Destroys the ares channel.
176 * 'from' ares channel and passes the resulting channel to the 'to' pointer.
[all …]
DMakefile.am53 # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
54 # $(top_srcdir)/ares is for in-tree c-ares's external include files
61 AM_CPPFLAGS += -I$(top_builddir)/ares \
62 -I$(top_srcdir)/ares
Dversion.c37 # include <ares.h>
142 /* this function is only present in c-ares, not in the original ares */ in curl_version()
143 len = msnprintf(ptr, left, " c-ares/%s", ares_version(NULL)); in curl_version()
381 NULL, /* c-ares version */
382 0, /* c-ares version numerical */
422 version_info.ares = ares_version(&aresnum); in curl_version_info()
/external/curl/m4/
Dcurl-confopts.m455 dnl --enable-ares or --disable-ares, and
61 AC_MSG_CHECKING([whether to enable c-ares for DNS lookups])
63 AC_ARG_ENABLE(ares, optenable
64 AC_HELP_STRING([--enable-ares@<:@=PATH@:>@],[Enable c-ares for DNS lookups])
65 AC_HELP_STRING([--disable-ares],[Disable c-ares for DNS lookups]),
69 dnl --disable-ares option used
77 dnl --enable-ares option used
310 dnl AC_MSG_CHECKING([whether to ignore c-ares enabling assumed setting])
318 dnl AC_MSG_ERROR([options --enable-ares and --enable-threads are mutually exclusive, at most on…
483 dnl When c-ares library support has been requested,
[all …]
/external/grpc-grpc/cmake/
Dcares.cmake23 if(TARGET c-ares)
24 set(_gRPC_CARES_LIBRARIES c-ares)
33 # Use "CONFIG" as there is no built-in cmake module for c-ares.
34 find_package(c-ares REQUIRED CONFIG)
35 if(TARGET c-ares::cares)
36 set(_gRPC_CARES_LIBRARIES c-ares::cares)
39 set(_gRPC_FIND_CARES "if(NOT c-ares_FOUND)\n find_package(c-ares CONFIG)\nendif()")
/external/grpc-grpc/examples/cpp/helloworld/cmake_externalproject/
DCMakeLists.txt30 # Builds c-ares project from the git submodule.
34 ExternalProject_Add(c-ares
35 PREFIX c-ares
41 -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_CURRENT_BINARY_DIR}/c-ares
90 -Dc-ares_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}/c-ares/lib/cmake/c-ares
94 DEPENDS c-ares protobuf zlib
111 -Dc-ares_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}/c-ares/lib/cmake/c-ares
/external/curl/tests/
Dtestcurl.pl381 # find out if curl source dir has an in-tree c-ares repo
382 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/GIT-INFO");
385 # find out if curl source dir has an in-tree c-ares extracted tarball
386 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/ares_build.h");
444 if (-d "ares/.git") {
445 chdir "ares";
448 logit "skipping git pull (--nogitpull) in ares";
450 logit "run git pull in ares";
453 logit "failed to update from ares git ($?), continue anyway" if ($?);
461 logit "The most recent ares git commits:";
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Dgrpc_ares_ev_driver.h24 #include <ares.h>
36 /* Returns the ares_channel owned by \a ev_driver. To bind a c-ares query to
65 /* Called when c-ares library is interested and there's no pending callback */
68 /* Called when c-ares library is interested and there's no pending callback */
85 * ares event driver. It knows how to create GrpcPolledFd's
86 * for the current platform, and the ares driver uses it for all of
95 /* Optionally configures the ares channel after creation */
Dgrpc_ares_ev_driver_windows.cc23 #include <ares.h>
42 * Our grpc/c-ares code on Windows uses the ares_set_socket_functions API,
44 * a c-ares header that is not public.
45 * See https://github.com/c-ares/c-ares/issues/206. */
53 /* c-ares creates its own sockets and is meant to read them when readable and
59 * from c-ares and are used with the grpc windows poller, and it, e.g.,
60 * manufactures virtual socket error codes when it e.g. needs to tell the c-ares
76 gpr_asprintf(&name_, "c-ares socket: %" PRIdPTR, as); in GrpcPolledFdWindows()
188 /* c-ares overloads this recv_from virtual socket function to receive in RecvFrom()
291 // c-ares expects a posix-style connect API in Connect()
[all …]
Dgrpc_ares_ev_driver.cc23 #include <ares.h>
67 /** combiner to synchronize c-ares and I/O callbacks on */
95 GRPC_COMBINER_UNREF(ev_driver->combiner, "free ares event driver"); in grpc_ares_ev_driver_unref()
131 gpr_asprintf(&err_msg, "Failed to init ares channel. C-ares error: %s", in grpc_ares_ev_driver_create_locked()
138 (*ev_driver)->combiner = GRPC_COMBINER_REF(combiner, "ares event driver"); in grpc_ares_ev_driver_create_locked()
237 // Get the file descriptors used by the ev_driver's ares channel, register
297 fd_node_shutdown_locked(cur, "c-ares fd shutdown"); in grpc_ares_notify_on_event_locked()
Dgrpc_ares_ev_driver_posix.cc23 #include <ares.h>
45 gpr_asprintf(&name_, "c-ares fd: %d", (int)as); in GrpcPolledFdPosix()
54 /* c-ares library will close the fd inside grpc_fd. This fd may be picked up in ~GrpcPolledFdPosix()
58 grpc_fd_orphan(fd_, nullptr, &dummy_release_fd, "c-ares query finished"); in ~GrpcPolledFdPosix()
Dgrpc_ares_wrapper.h35 gpr_log(GPR_DEBUG, "(c-ares resolver) " format, __VA_ARGS__); \
67 /* Initialize gRPC ares wrapper. Must be called at least once before
71 /* Uninitialized gRPC ares wrapper. If there was more than one previous call to
72 grpc_ares_init(), this function uninitializes the gRPC ares wrapper only if
Dgrpc_ares_wrapper.cc29 #include <ares.h>
96 gpr_log(GPR_DEBUG, "c-ares address sorting: %s[%" PRIuPTR "]=%s", in log_address_sorting_list()
101 "c-ares address sorting: %s[%" PRIuPTR "]=<unprintable>", in log_address_sorting_list()
214 "c-ares resolver gets a AF_INET6 result: \n" in on_hostbyname_done_locked()
235 "c-ares resolver gets a AF_INET result: \n" in on_hostbyname_done_locked()
244 gpr_asprintf(&error_msg, "C-ares status is not ARES_SUCCESS: %s", in on_hostbyname_done_locked()
288 gpr_asprintf(&error_msg, "C-ares status is not ARES_SUCCESS: %s", in on_srv_query_done_locked()
346 gpr_asprintf(&error_msg, "C-ares TXT lookup status is not ARES_SUCCESS: %s", in on_txt_done_locked()
434 gpr_asprintf(&error_msg, "C-ares status is not ARES_SUCCESS: %s", in grpc_dns_lookup_ares_continue_after_check_localhost_and_ip_literals_locked()
550 // Look up name using c-ares lib. in grpc_dns_lookup_ares_locked_impl()
/external/curl/tests/server/
DMakefile.am32 # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
33 # $(top_srcdir)/ares is for in-tree c-ares's external include files
39 -I$(top_builddir)/ares \
40 -I$(top_srcdir)/ares
/external/curl/tests/unit/
DMakefile.am32 # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
33 # $(top_srcdir)/ares is for in-tree c-ares's external include files
41 -I$(top_builddir)/ares \
42 -I$(top_srcdir)/ares
/external/curl/tests/libtest/
DMakefile.am32 # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
33 # $(top_srcdir)/ares is for in-tree c-ares's external include files
39 -I$(top_builddir)/ares \
40 -I$(top_srcdir)/ares
/external/grpc-grpc/tools/buildgen/plugins/
Dexpand_bin_attrs.py39 tgt['ares'] = tgt.get('ares', False)
46 lib['ares'] = lib.get('ares', False)
/external/ltp/testcases/kernel/fs/mongo/
Dmongo.pl311 $ares[$phase_num]=$total; # ser array of results
435 print LOG2 "$ares[1]\t$ares[2]\t$ares[3]\t$ares[4]\t$ares[5]\t$ares[6]\t$ares[7]\n";
457 print LOG3 "Create : $ares[1]\n";
460 print LOG3 "Copy : $ares[2] \n";
463 print LOG3 "Slinks : $ares[3]\n";
464 print LOG3 "Read : $ares[4]\n";
465 print LOG3 "Stats : $ares[5]\n";
466 print LOG3 "Rename : $ares[6] \n";
467 print LOG3 "Delete : $ares[7]\n";
/external/grpc-grpc/test/core/iomgr/
Dresolve_address_test.cc252 gpr_cmdline_add_string(cl, "resolver", "Resolver type (ares or native)", in main()
262 } else if (gpr_stricmp(resolver_type, "ares") == 0) { in main()
264 gpr_setenv("GRPC_DNS_RESOLVER", "ares"); in main()
267 gpr_log(GPR_ERROR, "--resolver_type was not set to ares or native"); in main()
281 if (gpr_stricmp(resolver_type, "ares") != 0) { in main()
284 // c-ares is prone to not using the local system caches that the in main()
286 // these unit tests under c-ares risks flakiness. in main()
/external/grpc-grpc/third_party/cares/
Dares_build.h41 * c-ares library user nor by the c-ares library builder.
44 * or fixed in this file, then, report it on the c-ares development
45 * mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
63 * to ares_build.h when the c-ares source code distribution archive file is
213 * Undefine UNICODE, as c-ares does not use the ANSI version of functions
/external/grpc-grpc/templates/test/cpp/naming/
Dresolver_component_tests_defs.include28 argp = argparse.ArgumentParser(description='Run c-ares resolver tests')
53 if cur_resolver and cur_resolver != 'ares':
55 'needs to use GRPC_DNS_RESOLVER=ares.'))
58 os.environ.update({'GRPC_DNS_RESOLVER': 'ares'})
/external/grpc-grpc/doc/
Denvironment_variables.md119 Declares which DNS resolver to use. The default is ares if gRPC is built with
120 c-ares support. Otherwise, the value of this environment variable is ignored.
124 - ares - a DNS resolver based around the c-ares library
/external/curl/docs/
DINTERNALS.md33 - [c-ares](#cares)
84 - c-ares 1.6.0
417 One of the primary reasons we introduced c-ares support was to allow the name
554 normal resolver in a threaded manner or by using c-ares.
557 [c-ares][3]
560 ### Build libcurl to use a c-ares
562 1. ./configure --enable-ares=/path/to/ares/install
565 ### c-ares on win32
567 First I compiled c-ares. I changed the default C runtime library to be the
575 Next thing I did was I added the path for the ares includes to the include
[all …]
/external/grpc-grpc/bazel/
Dgrpc_deps.bzl53 actual = "@com_github_cares_cares//:ares",
158 strip_prefix = "c-ares-3be1924221e1326df520f8498d704a5c4c8d0cce",
159 … url = "https://github.com/c-ares/c-ares/archive/3be1924221e1326df520f8498d704a5c4c8d0cce.tar.gz",

12345678