• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docs/H03-May-2022-5,3844,349

include/H03-May-2022-1,9921,360

m4/H10-Aug-2021-18,25116,684

src/H03-May-2022-34,77228,118

test/H03-May-2022-97,65070,944

AUTHORSH A D08-Aug-20211.2 KiB8583

CHANGESH A D10-Aug-2021161.2 KiB5,0533,073

CONTRIBUTING.mdH A D03-Jul-2017707 1611

INSTALL.mdH A D08-Aug-202112 KiB410287

LICENSE.mdH A D08-Aug-2021766 1612

Makefile.WatcomH A D03-Jul-20173.8 KiB165118

Makefile.amH A D08-Aug-20211.1 KiB3822

Makefile.djH A D08-Aug-20212.2 KiB10353

Makefile.inH A D03-May-202229.6 KiB932825

Makefile.m32H A D08-Aug-20212.1 KiB7848

Makefile.msvcH A D08-Aug-202116.1 KiB492287

Makefile.netwareH A D08-Aug-202114.1 KiB431360

NEWSH A D23-Jan-2016854 2219

README.caresH A D15-Aug-2016690 1612

README.mdH A D08-Aug-20213.5 KiB6849

README.msvcH A D08-Aug-20213.6 KiB10362

RELEASE-NOTESH A D08-Aug-20213.3 KiB8472

SECURITY.mdH A D03-Jul-20174.4 KiB10174

TODOH A D03-Jul-2017727 2415

acinclude.m4H A D23-Jan-201651.3 KiB1,9161,831

aclocal.m4H A D09-Aug-202143.2 KiB1,1901,082

buildconfH A D08-Aug-2021124 52

buildconf.batH A D08-Aug-2021551 2116

c-ares-config.cmake.inH A D08-Aug-2021725 2216

compileH A D09-Aug-20217.2 KiB349259

config.guessH A D09-Aug-202143.2 KiB1,4811,288

config.subH A D09-Aug-202135.3 KiB1,8021,661

configureH A D10-Aug-2021955.3 KiB34,76429,002

configure.acH A D10-Aug-202123.3 KiB939828

depcompH A D09-Aug-202123 KiB792502

get_ver.awkH A D23-Jan-20161.2 KiB2818

install-shH A D09-Aug-202115 KiB542352

libcares.pc.cmakeH A D08-Aug-2021684 2119

libcares.pc.inH A D23-Jan-2016612 2119

ltmain.shH A D09-Aug-2021319.6 KiB11,2528,044

maketgzH A D08-Aug-20212 KiB7048

missingH A D09-Aug-20216.7 KiB216143

msvc_ver.incH A D08-Aug-2021678 2522

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
68  Relationship between c-ares library file names and versions
69  -----------------------------------------------------------
70
71  c-ares static release library version files:
72
73      libcares.lib -> static release library
74
75  c-ares static debug library version files:
76
77      libcaresd.lib -> static debug library
78
79  c-ares dynamic release library version files:
80
81      cares.dll -> dynamic release library
82      cares.lib -> import library for the dynamic release library
83      cares.exp -> export file for the dynamic release library
84
85  c-ares dynamic debug library version files:
86
87      caresd.dll -> dynamic debug library
88      caresd.lib -> import library for the dynamic debug library
89      caresd.exp -> export file for the dynamic debug library
90      caresd.pdb -> debug symbol file for the dynamic debug library
91
92
93  How to use c-ares static libraries
94  ----------------------------------
95
96  When using the c-ares static library in your program, you will have to
97  define preprocessor symbol CARES_STATICLIB while building your program,
98  otherwise you will get errors at linkage stage.
99
100
101Have Fun!
102
103