A C library for asynchronous DNS requests (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Brad House 34b2aff21b Use trusty for all builds, precise is EOL. Update clang and cmake versions. 7 years ago
m4
test
travis
vc
.gitignore
.travis.yml Use trusty for all builds, precise is EOL. Update clang and cmake versions. 7 years ago
AUTHORS
CHANGES
CHANGES.0
CMakeLists.txt
CONTRIBUTING.md
GIT-INFO
INSTALL.md
LICENSE.md
Makefile.Watcom
Makefile.am
Makefile.dj
Makefile.inc
Makefile.m32
Makefile.msvc
Makefile.netware
NEWS
README.cares
README.md
README.msvc
RELEASE-NOTES
RELEASE-PROCEDURE.md
SECURITY.md
TODO
acinclude.m4
acountry.1
acountry.c
adig.1
adig.c
ahost.1
ahost.c
appveyor.yml
ares.h
ares__close_sockets.c
ares__get_hostent.c
ares__read_line.c
ares__timeval.c
ares_android.c
ares_android.h
ares_build.h.cmake
ares_build.h.dist
ares_build.h.in
ares_cancel.3
ares_cancel.c
ares_config.h.cmake
ares_create_query.3
ares_create_query.c
ares_data.c
ares_data.h
ares_destroy.3
ares_destroy.c
ares_destroy_options.3
ares_dns.h
ares_dup.3
ares_expand_name.3
ares_expand_name.c
ares_expand_string.3
ares_expand_string.c
ares_fds.3
ares_fds.c
ares_free_data.3
ares_free_hostent.3
ares_free_hostent.c
ares_free_string.3
ares_free_string.c
ares_get_servers.3
ares_get_servers_ports.3
ares_getenv.c
ares_getenv.h
ares_gethostbyaddr.3
ares_gethostbyaddr.c
ares_gethostbyname.3
ares_gethostbyname.c
ares_gethostbyname_file.3
ares_getnameinfo.3
ares_getnameinfo.c
ares_getopt.c
ares_getopt.h
ares_getsock.3
ares_getsock.c
ares_inet_net_pton.h
ares_inet_ntop.3
ares_inet_pton.3
ares_init.3
ares_init.c
ares_init_options.3
ares_iphlpapi.h
ares_ipv6.h
ares_library_cleanup.3
ares_library_init.3
ares_library_init.c
ares_library_init.h
ares_library_init_android.3
ares_library_initialized.3
ares_llist.c
ares_llist.h
ares_mkquery.3
ares_mkquery.c
ares_nowarn.c
ares_nowarn.h
ares_options.c
ares_parse_a_reply.3
ares_parse_a_reply.c
ares_parse_aaaa_reply.3
ares_parse_aaaa_reply.c
ares_parse_mx_reply.3
ares_parse_mx_reply.c
ares_parse_naptr_reply.3
ares_parse_naptr_reply.c
ares_parse_ns_reply.3
ares_parse_ns_reply.c
ares_parse_ptr_reply.3
ares_parse_ptr_reply.c
ares_parse_soa_reply.3
ares_parse_soa_reply.c
ares_parse_srv_reply.3
ares_parse_srv_reply.c
ares_parse_txt_reply.3
ares_parse_txt_reply.c
ares_platform.c
ares_platform.h
ares_private.h
ares_process.3
ares_process.c
ares_query.3
ares_query.c
ares_rules.h
ares_save_options.3
ares_search.3
ares_search.c
ares_send.3
ares_send.c
ares_set_local_dev.3
ares_set_local_ip4.3
ares_set_local_ip6.3
ares_set_servers.3
ares_set_servers_csv.3
ares_set_servers_ports.3
ares_set_servers_ports_csv.3
ares_set_socket_callback.3
ares_set_socket_configure_callback.3
ares_set_socket_functions.3
ares_set_sortlist.3
ares_setup.h
ares_strcasecmp.c
ares_strcasecmp.h
ares_strdup.c
ares_strdup.h
ares_strerror.3
ares_strerror.c
ares_timeout.3
ares_timeout.c
ares_version.3
ares_version.c
ares_version.h
ares_writev.c
ares_writev.h
bitncmp.c
bitncmp.h
buildconf
buildconf.bat
c-ares-config.cmake.in
cares.rc
config-dos.h
config-win32.h
configure.ac
get_ver.awk
git2changes.pl
inet_net_pton.c
inet_ntop.c
install-sh
libcares.pc.in
maketgz
mkinstalldirs
msvc_ver.inc
nameser.h
setup_once.h
windows_port.c

README.md

c-ares

Build Status Windows Build Status Coverage Status CII Best Practices Releases

This is c-ares, an asynchronous resolver library. It is intended for applications which need to perform DNS queries without blocking, or need to perform multiple DNS queries in parallel. The primary examples of such applications are servers which communicate with multiple clients and programs with graphical user interfaces.

The full source code is available in the 'c-ares' release archives, and in a git repository: http://github.com/c-ares/c-ares. See the INSTALL.md file for build information.

If you find bugs, correct flaws, have questions or have comments in general in regard to c-ares (or by all means the original ares too), get in touch with us on the c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares

c-ares is of course distributed under the same MIT-style license as the original ares.

You'll find all c-ares details and news here: https://c-ares.haxx.se/

Notes for c-ares hackers

  • The distributed ares_build.h file is only intended to be used on systems which can not run the also distributed configure script.

  • The distributed ares_build.h file is generated as a copy of ares_build.h.dist when the c-ares source code distribution archive file is originally created.

  • If you check out from git on a non-configure platform, you must run the appropriate buildconf* script to set up ares_build.h and other local files before being able to compile the library.

  • On systems capable of running the configure script, the configure process will overwrite the distributed ares_build.h file with one that is suitable and specific to the library being configured and built, this new file is generated from the ares_build.h.in template file.

  • If you intend to distribute an already compiled c-ares library you MUST also distribute along with it the generated ares_build.h which has been used to compile it. Otherwise the library will be of no use for the users of the library that you have built. It is your responsibility to provide this file. No one at the c-ares project can know how you have built the library.

  • File ares_build.h includes platform and configuration dependent info, and must not be modified by anyone. Configure script generates it for you.

  • We cannot assume anything else but very basic compiler features being present. While c-ares requires an ANSI C compiler to build, some of the earlier ANSI compilers clearly can't deal with some preprocessor operators.

  • Newlines must remain unix-style for older compilers' sake.

  • Comments must be written in the old-style /* unnested C-fashion */

  • Try to keep line lengths below 80 columns.