• Home
Name Date Size #Lines LOC

..--

m4/12-May-2024-9,4348,691

test/12-May-2024-80,32958,100

vc/12-May-2024-1,132923

.gitattributesD12-May-2024631 1615

AUTHORSD12-May-20241.2 KiB8583

CHANGESD12-May-2024150.5 KiB4,7242,879

CMakeLists.txtD12-May-202434.8 KiB884755

INSTALL.mdD12-May-202412.1 KiB416290

LICENSE.mdD12-May-2024766 1612

Makefile.WatcomD12-May-20243.8 KiB165118

Makefile.amD12-May-20246.7 KiB216118

Makefile.djD12-May-20241.6 KiB8649

Makefile.inD12-May-2024155.2 KiB2,4502,173

Makefile.incD12-May-20246.5 KiB262254

Makefile.m32D12-May-20241.9 KiB7747

Makefile.msvcD12-May-202415.2 KiB471277

Makefile.netwareD12-May-202414.1 KiB433363

NEWSD12-May-2024854 2219

OAT.xmlD12-May-20245.3 KiB8229

README.OpenSourceD12-May-2024256 1010

README.caresD12-May-2024690 1612

README.mdD12-May-20243.5 KiB6849

README.msvcD12-May-20245.3 KiB14391

RELEASE-NOTESD12-May-20241.2 KiB3125

RELEASE-PROCEDURE.mdD12-May-20241.4 KiB5433

TODOD12-May-2024727 2415

acinclude.m4D12-May-202451.3 KiB1,9161,831

aclocal.m4D12-May-202443.2 KiB1,1931,085

acountry.1D12-May-20241.7 KiB5452

acountry.cD12-May-202424.7 KiB627514

adig.1D12-May-20242.3 KiB7270

adig.cD12-May-202422.2 KiB828663

ahost.1D12-May-20242 KiB5957

ahost.cD12-May-20245 KiB207161

ares.hD12-May-202424.9 KiB730509

ares__close_sockets.cD12-May-20241.9 KiB6234

ares__get_hostent.cD12-May-20246.8 KiB261178

ares__parse_into_addrinfo.cD12-May-20247.3 KiB267207

ares__read_line.cD12-May-20242.1 KiB7442

ares__readaddrinfo.cD12-May-20246.9 KiB261190

ares__sortaddrinfo.cD12-May-202413.6 KiB496351

ares__timeval.cD12-May-20243 KiB11255

ares_android.cD12-May-202413 KiB445310

ares_android.hD12-May-20241,014 288

ares_build.hD12-May-20246.7 KiB20880

ares_build.h.cmakeD12-May-20241,009 4231

ares_build.h.inD12-May-20243.6 KiB10185

ares_cancel.3D12-May-20241.6 KiB4729

ares_cancel.cD12-May-20242.2 KiB6437

ares_config.h.cmakeD12-May-202412.8 KiB433288

ares_config.h.inD12-May-202413.4 KiB505341

ares_create_query.3D12-May-20242.9 KiB8462

ares_create_query.cD12-May-20246.2 KiB207103

ares_data.cD12-May-20246.3 KiB223141

ares_data.hD12-May-20243 KiB7334

ares_destroy.3D12-May-20241.5 KiB4123

ares_destroy.cD12-May-20243 KiB11478

ares_destroy_options.3D12-May-20241.3 KiB3620

ares_dns.hD12-May-20245.2 KiB10461

ares_dup.3D12-May-20241.4 KiB4023

ares_expand_name.3D12-May-20242.1 KiB6649

ares_expand_name.cD12-May-20246.7 KiB243160

ares_expand_string.3D12-May-20242 KiB6246

ares_expand_string.cD12-May-20241.8 KiB7138

ares_fds.3D12-May-20241.9 KiB4931

ares_fds.cD12-May-20241.9 KiB6031

ares_free_data.3D12-May-20242.8 KiB7962

ares_free_hostent.3D12-May-20241.6 KiB4630

ares_free_hostent.cD12-May-20241.2 KiB4219

ares_free_string.3D12-May-20241.2 KiB3519

ares_free_string.cD12-May-2024831 267

ares_freeaddrinfo.3D12-May-20241.2 KiB3821

ares_freeaddrinfo.cD12-May-20241.5 KiB5835

ares_get_servers.3D12-May-20243.2 KiB8563

ares_get_servers_ports.3D12-May-202428 21

ares_getaddrinfo.3D12-May-20244.9 KiB196178

ares_getaddrinfo.cD12-May-202418.6 KiB766634

ares_getenv.cD12-May-2024841 298

ares_getenv.hD12-May-2024899 277

ares_gethostbyaddr.3D12-May-20243 KiB10589

ares_gethostbyaddr.cD12-May-20248.5 KiB295245

ares_gethostbyname.3D12-May-20243.2 KiB11296

ares_gethostbyname.cD12-May-202415.8 KiB538418

ares_gethostbyname_file.3D12-May-20242.5 KiB8468

ares_getnameinfo.3D12-May-20244.2 KiB152136

ares_getnameinfo.cD12-May-202413.2 KiB454382

ares_getopt.cD12-May-20244.5 KiB12365

ares_getopt.hD12-May-20242 KiB5418

ares_getsock.3D12-May-20242.1 KiB5840

ares_getsock.cD12-May-20242.2 KiB6737

ares_inet_net_pton.hD12-May-2024982 268

ares_inet_ntop.3D12-May-20241.9 KiB4830

ares_inet_pton.3D12-May-20241.7 KiB4426

ares_init.3D12-May-20242.4 KiB8263

ares_init.cD12-May-202474.4 KiB2,6271,878

ares_init_options.3D12-May-20249.3 KiB296276

ares_iphlpapi.hD12-May-20245.8 KiB222170

ares_ipv6.hD12-May-20242 KiB8656

ares_library_cleanup.3D12-May-20243.6 KiB8567

ares_library_init.3D12-May-20244.6 KiB11596

ares_library_init.cD12-May-20245 KiB196130

ares_library_init.hD12-May-20241.7 KiB4416

ares_library_init_android.3D12-May-20245.1 KiB143109

ares_library_initialized.3D12-May-20241.2 KiB3518

ares_llist.cD12-May-20241.8 KiB6431

ares_llist.hD12-May-20241.2 KiB4014

ares_mkquery.3D12-May-20242.7 KiB9071

ares_mkquery.cD12-May-2024964 257

ares_nowarn.cD12-May-20245.5 KiB261170

ares_nowarn.hD12-May-20241.7 KiB6230

ares_options.cD12-May-202411 KiB407308

ares_parse_a_reply.3D12-May-20242.3 KiB8165

ares_parse_a_reply.cD12-May-20244.9 KiB216171

ares_parse_aaaa_reply.3D12-May-20242.3 KiB8165

ares_parse_aaaa_reply.cD12-May-20245 KiB219172

ares_parse_mx_reply.3D12-May-20242.1 KiB8064

ares_parse_mx_reply.cD12-May-20244.4 KiB171121

ares_parse_naptr_reply.3D12-May-20242.3 KiB8468

ares_parse_naptr_reply.cD12-May-20245.2 KiB195138

ares_parse_ns_reply.3D12-May-20242 KiB6751

ares_parse_ns_reply.cD12-May-20245 KiB184137

ares_parse_ptr_reply.3D12-May-20242.2 KiB7559

ares_parse_ptr_reply.cD12-May-20246.7 KiB222182

ares_parse_soa_reply.3D12-May-20242.1 KiB8165

ares_parse_soa_reply.cD12-May-20244.4 KiB183133

ares_parse_srv_reply.3D12-May-20242.3 KiB8266

ares_parse_srv_reply.cD12-May-20244.7 KiB180128

ares_parse_txt_reply.3D12-May-20243.4 KiB121105

ares_parse_txt_reply.cD12-May-20246 KiB221155

ares_platform.cD12-May-2024481.6 KiB11,04310,996

ares_platform.hD12-May-20241.1 KiB4417

ares_private.hD12-May-202413.1 KiB428268

ares_process.3D12-May-20242.9 KiB8057

ares_process.cD12-May-202445.8 KiB1,4761,082

ares_query.3D12-May-20244.2 KiB150134

ares_query.cD12-May-20244.9 KiB187135

ares_rules.hD12-May-20244.2 KiB12621

ares_save_options.3D12-May-20242.6 KiB7557

ares_search.3D12-May-20244.6 KiB152136

ares_search.cD12-May-20249.5 KiB322244

ares_send.3D12-May-20243.3 KiB124108

ares_send.cD12-May-20244.1 KiB13889

ares_set_local_dev.3D12-May-20241.5 KiB4024

ares_set_local_ip4.3D12-May-20241.2 KiB3519

ares_set_local_ip6.3D12-May-20241.3 KiB3519

ares_set_servers.3D12-May-20243.6 KiB9679

ares_set_servers_csv.3D12-May-20242.3 KiB6848

ares_set_servers_ports.3D12-May-202428 21

ares_set_servers_ports_csv.3D12-May-202432 21

ares_set_socket_callback.3D12-May-20241.1 KiB3330

ares_set_socket_configure_callback.3D12-May-20241.2 KiB3431

ares_set_socket_functions.3D12-May-20243.4 KiB10092

ares_set_sortlist.3D12-May-20242 KiB5943

ares_setup.hD12-May-20245.8 KiB21892

ares_strcasecmp.cD12-May-20241.6 KiB6744

ares_strcasecmp.hD12-May-20241 KiB3110

ares_strdup.cD12-May-20241.3 KiB5030

ares_strdup.hD12-May-2024870 255

ares_strerror.3D12-May-20241.3 KiB3822

ares_strerror.cD12-May-20241.9 KiB5737

ares_strsplit.cD12-May-20243.5 KiB175123

ares_strsplit.hD12-May-20241.6 KiB446

ares_timeout.3D12-May-20241.9 KiB4729

ares_timeout.cD12-May-20242.7 KiB8950

ares_version.3D12-May-20241.3 KiB3618

ares_version.cD12-May-2024158 128

ares_version.hD12-May-2024648 2518

ares_writev.cD12-May-20241.8 KiB8045

ares_writev.hD12-May-20241.1 KiB3713

bitncmp.cD12-May-20241.6 KiB6025

bitncmp.hD12-May-2024905 278

buildconfD12-May-20248.1 KiB298226

bundle.jsonD12-May-2024723 3131

c-ares-config.cmake.inD12-May-2024725 2216

cares.rcD12-May-20242 KiB6658

config-dos.hD12-May-20243.1 KiB10982

config-win32.hD12-May-202410.6 KiB352154

configureD12-May-2024958.6 KiB34,81829,067

configure.acD12-May-202421.6 KiB895789

get_ver.awkD12-May-20241.2 KiB2818

inet_net_pton.cD12-May-202411.2 KiB451342

inet_ntop.cD12-May-20245.7 KiB208117

install-shD12-May-202413.7 KiB528351

libcares.pc.cmakeD12-May-2024684 2119

libcares.pc.inD12-May-2024612 2119

maketgzD12-May-20241.9 KiB7048

mkinstalldirsD12-May-20243.5 KiB163112

msvc_ver.incD12-May-2024678 2522

nameser.hD12-May-20248.2 KiB212189

setup_once.hD12-May-202415 KiB555325

windows_port.cD12-May-2024403 2313

README.OpenSource

1[
2  {
3    "Name": "c-ares",
4    "License": "MIT License",
5    "License File": "LICENSE",
6    "Version Number": "1.16.1",
7    "Upstream URL": "https://c-ares.haxx.se/",
8    "Description": "c-ares is a C library for asynchronous DNS requests."
9  }
10]

README.cares

1c-ares
2======
3
4This package is based on ares 1.1.1 (written by Greg Hudson). Daniel Stenberg
5decided to fork and release a separate project since the original ares author
6didn't want the improvements that were vital for our use of it.
7
8This package is dubbed 'c-ares' since Daniel wanted this for use within the
9curl project (hence the letter C) and it makes a nice pun. c-ares is not API
10compatible with ares: a new name makes that more obvious to the public.
11
12The original libares was distributed at
13ftp://athena-dist.mit.edu:pub/ATHENA/ares (which seems to not be alive
14anymore).  A local copy of the original ares package is kept here:
15https://c-ares.haxx.se/download/ares-1.1.1.tar.gz
16

README.md

1c-ares
2======
3
4[![Build Status](https://travis-ci.org/c-ares/c-ares.svg?branch=master)](https://travis-ci.org/c-ares/c-ares)
5[![Windows Build Status](https://ci.appveyor.com/api/projects/status/aevgc5914tm72pvs/branch/master?svg=true)](https://ci.appveyor.com/project/c-ares/c-ares/branch/master)
6[![Coverage Status](https://coveralls.io/repos/c-ares/c-ares/badge.svg?branch=master&service=github)](https://coveralls.io/github/c-ares/c-ares?branch=master)
7[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/291/badge)](https://bestpractices.coreinfrastructure.org/projects/291)
8[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/c-ares.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:c-ares)
9[![Releases](https://coderelease.io/badge/c-ares/c-ares)](https://coderelease.io/github/repository/c-ares/c-ares)
10
11This is c-ares, an asynchronous resolver library.  It is intended for
12applications which need to perform DNS queries without blocking, or need to
13perform multiple DNS queries in parallel.  The primary examples of such
14applications are servers which communicate with multiple clients and programs
15with graphical user interfaces.
16
17The full source code is available in the ['c-ares' release archives](https://c-ares.haxx.se/download/),
18and in a git repository: http://github.com/c-ares/c-ares.  See the
19[INSTALL.md](INSTALL.md) file for build information.
20
21If you find bugs, correct flaws, have questions or have comments in general in
22regard to c-ares (or by all means the original ares too), get in touch with us
23on the c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares
24
25c-ares is of course distributed under the same MIT-style license as the
26original ares.
27
28You'll find all c-ares details and news here:
29        https://c-ares.haxx.se/
30
31
32Notes for c-ares hackers
33------------------------
34
35* The distributed `ares_build.h` file is only intended to be used on systems
36  which can not run the also distributed configure script.
37
38* The distributed `ares_build.h` file is generated as a copy of `ares_build.h.dist`
39  when the c-ares source code distribution archive file is originally created.
40
41* If you check out from git on a non-configure platform, you must run the
42  appropriate `buildconf*` script to set up `ares_build.h` and other local files
43  before being able to compile the library.
44
45* On systems capable of running the `configure` script, the `configure` process
46  will overwrite the distributed `ares_build.h` file with one that is suitable
47  and specific to the library being configured and built, this new file is
48  generated from the `ares_build.h.in` template file.
49
50* If you intend to distribute an already compiled c-ares library you **MUST**
51  also distribute along with it the generated `ares_build.h` which has been
52  used to compile it. Otherwise the library will be of no use for the users of
53  the library that you have built. It is **your** responsibility to provide this
54  file. No one at the c-ares project can know how you have built the library.
55
56* File `ares_build.h` includes platform and configuration dependent info,
57  and must not be modified by anyone. Configure script generates it for you.
58
59* We cannot assume anything else but very basic compiler features being
60  present. While c-ares requires an ANSI C compiler to build, some of the
61  earlier ANSI compilers clearly can't deal with some preprocessor operators.
62
63* Newlines must remain unix-style for older compilers' sake.
64
65* Comments must be written in the old-style /* unnested C-fashion */
66
67* Try to keep line lengths below 80 columns.
68

README.msvc

1
2
3                          ___       __ _ _ __ ___  ___
4                         / __| ___ / _` | '__/ _ \/ __|
5                        | (_  |___| (_| | | |  __/\__ \
6                         \___|     \__,_|_|  \___||___/
7
8
9                How to build c-ares using MSVC or Visual Studio
10               =================================================
11
12
13
14  How to build using MSVC from the command line
15  ---------------------------------------------
16
17  Open a command prompt window and ensure that the environment is properly
18  set up in order to use MSVC or Visual Studio compiler tools.
19
20  Change to c-ares source folder where Makefile.msvc file is located and run:
21
22  > nmake -f Makefile.msvc
23
24  This will build all c-ares libraries as well as three sample programs.
25
26  Once the above command has finished a new folder named MSVCXX will exist
27  below the folder where makefile.msvc is found. The name of the folder
28  depends on the MSVC compiler version being used to build c-ares.
29
30  Below the MSVCXX folder there will exist four folders named 'cares',
31  'ahost', 'acountry', and 'adig'. The 'cares' folder is the one that
32  holds the c-ares libraries you have just generated, the other three
33  hold sample programs that use the libraries.
34
35  The above command builds four versions of the c-ares library, dynamic
36  and static versions and each one in release and debug flavours. Each
37  of these is found in folders named dll-release, dll-debug, lib-release,
38  and lib-debug, which hang from the 'cares' folder mentioned above. Each
39  sample program also has folders with the same names to reflect which
40  library version it is using.
41
42
43  How to install using MSVC from the command line
44  -----------------------------------------------
45
46  In order to allow easy usage of c-ares libraries it may be convenient to
47  install c-ares libraries and header files to a common subdirectory tree.
48
49  Once that c-ares libraries have been built using procedure described above,
50  use same command prompt window to define environment variable INSTALL_DIR
51  to designate the top subdirectory where installation of c-ares libraries and
52  header files will be done.
53
54  > set INSTALL_DIR=c:\c-ares
55
56  Afterwards, run following command to actually perform the installation:
57
58  > nmake -f Makefile.msvc install
59
60  Installation procedure will copy c-ares libraries to subdirectory 'lib' and
61  c-ares header files to subdirectory 'include' below the INSTALL_DIR subdir.
62
63  When environment variable INSTALL_DIR is not defined, installation is done
64  to c-ares source folder where Makefile.msvc file is located.
65
66
67  How to build using Visual Studio 6 IDE
68  --------------------------------------
69
70  A VC++ 6.0 reference workspace (vc6aws.dsw) is available within the 'vc'
71  folder to allow proper building of the library and sample programs.
72
73  1) Open the vc6aws.dsw workspace with MSVC6's IDE.
74  2) Select 'Build' from top menu.
75  3) Select 'Batch Build' from dropdown menu.
76  4) Make sure that the sixteen project configurations are 'checked'.
77  5) Click on the 'Build' button.
78  6) Once the sixteen project configurations are built you are done.
79
80  Dynamic and static c-ares libraries are built in debug and release flavours,
81  and can be located each one in its own subdirectory, dll-debug, dll-release,
82  lib-debug and lib-release, all of them below the 'vc\cares' subdirectory.
83
84  In the same way four executable versions of each sample program are built,
85  each using its respective library. The resulting sample executables are
86  located in its own subdirectory, dll-debug, dll-release, lib-debug and
87  lib-release, below the 'vc\acountry', 'vc\adig' and 'vc\ahost'folders.
88
89  These reference VC++ 6.0 configurations are generated using the dynamic CRT.
90
91
92  How to build using Visual Studio 2003 or newer IDE
93  --------------------------------------------------
94
95  First you have to convert the VC++ 6.0 reference workspace and project files
96  to the Visual Studio IDE version you are using, following next steps:
97
98  1) Open vc\vc6aws.dsw with VS20XX.
99  2) Allow VS20XX to update all projects and workspaces.
100  3) Save ALL and close VS20XX.
101  4) Open vc\vc6aws.sln with VS20XX.
102  5) Select batch build, check 'all' projects and click 'build' button.
103
104  Same comments relative to generated files and folders as done above for
105  Visual Studio 6 IDE apply here.
106
107
108  Relationship between c-ares library file names and versions
109  -----------------------------------------------------------
110
111  c-ares static release library version files:
112
113      libcares.lib -> static release library
114
115  c-ares static debug library version files:
116
117      libcaresd.lib -> static debug library
118
119  c-ares dynamic release library version files:
120
121      cares.dll -> dynamic release library
122      cares.lib -> import library for the dynamic release library
123      cares.exp -> export file for the dynamic release library
124
125  c-ares dynamic debug library version files:
126
127      caresd.dll -> dynamic debug library
128      caresd.lib -> import library for the dynamic debug library
129      caresd.exp -> export file for the dynamic debug library
130      caresd.pdb -> debug symbol file for the dynamic debug library
131
132
133  How to use c-ares static libraries
134  ----------------------------------
135
136  When using the c-ares static library in your program, you will have to
137  define preprocessor symbol CARES_STATICLIB while building your program,
138  otherwise you will get errors at linkage stage.
139
140
141Have Fun!
142
143