|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| AUTHORS | D | 07-May-2024 | 600 | 38 | 36 |
| Android.mk | D | 07-May-2024 | 854 | 25 | 8 |
| CHANGES | D | 07-May-2024 | 46.1 KiB | 1,219 | 861 |
| MODULE_LICENSE_MIT | D | 07-May-2024 | 0 | | |
| Makefile.am | D | 07-May-2024 | 5.7 KiB | 176 | 89 |
| Makefile.in | D | 07-May-2024 | 75.5 KiB | 1,459 | 1,261 |
| Makefile.inc | D | 07-May-2024 | 4.6 KiB | 200 | 192 |
| NEWS | D | 07-May-2024 | 854 | 22 | 19 |
| NOTICE | D | 07-May-2024 | 663 | 11 | 9 |
| README | D | 07-May-2024 | 2.6 KiB | 61 | 41 |
| README.cares | D | 07-May-2024 | 535 | 14 | 10 |
| README.msvc | D | 07-May-2024 | 5.3 KiB | 143 | 91 |
| RELEASE-NOTES | D | 07-May-2024 | 1,017 | 27 | 21 |
| TODO | D | 07-May-2024 | 727 | 24 | 15 |
| acinclude.m4 | D | 07-May-2024 | 52 KiB | 1,939 | 1,850 |
| aclocal.m4 | D | 07-May-2024 | 33.2 KiB | 933 | 835 |
| acountry.c | D | 07-May-2024 | 24.5 KiB | 629 | 519 |
| adig.c | D | 07-May-2024 | 22.5 KiB | 844 | 678 |
| ahost.c | D | 07-May-2024 | 4.7 KiB | 203 | 158 |
| ares.h | D | 07-May-2024 | 18.6 KiB | 545 | 370 |
| ares__close_sockets.c | D | 07-May-2024 | 2 KiB | 67 | 38 |
| ares__get_hostent.c | D | 07-May-2024 | 6.7 KiB | 264 | 181 |
| ares__read_line.c | D | 07-May-2024 | 2.1 KiB | 72 | 41 |
| ares__timeval.c | D | 07-May-2024 | 3 KiB | 112 | 55 |
| ares_build.h | D | 07-May-2024 | 8.7 KiB | 255 | 128 |
| ares_build.h.in | D | 07-May-2024 | 4 KiB | 111 | 93 |
| ares_cancel.c | D | 07-May-2024 | 2 KiB | 64 | 39 |
| ares_config.h | D | 07-May-2024 | 14.1 KiB | 518 | 179 |
| ares_config.h.in | D | 07-May-2024 | 13.6 KiB | 516 | 348 |
| ares_data.c | D | 07-May-2024 | 4.7 KiB | 191 | 103 |
| ares_data.h | D | 07-May-2024 | 2.6 KiB | 66 | 27 |
| ares_destroy.c | D | 07-May-2024 | 2.8 KiB | 106 | 73 |
| ares_dns.h | D | 07-May-2024 | 4.6 KiB | 91 | 56 |
| ares_expand_name.c | D | 07-May-2024 | 5.8 KiB | 201 | 123 |
| ares_expand_string.c | D | 07-May-2024 | 1.9 KiB | 76 | 43 |
| ares_fds.c | D | 07-May-2024 | 2 KiB | 64 | 34 |
| ares_free_hostent.c | D | 07-May-2024 | 1.2 KiB | 43 | 20 |
| ares_free_string.c | D | 07-May-2024 | 845 | 26 | 8 |
| ares_getenv.c | D | 07-May-2024 | 866 | 31 | 10 |
| ares_getenv.h | D | 07-May-2024 | 899 | 27 | 7 |
| ares_gethostbyaddr.c | D | 07-May-2024 | 8.5 KiB | 302 | 251 |
| ares_gethostbyname.c | D | 07-May-2024 | 15.2 KiB | 524 | 412 |
| ares_getnameinfo.c | D | 07-May-2024 | 12.5 KiB | 428 | 357 |
| ares_getopt.c | D | 07-May-2024 | 4.5 KiB | 123 | 65 |
| ares_getopt.h | D | 07-May-2024 | 2 KiB | 54 | 18 |
| ares_getsock.c | D | 07-May-2024 | 2.3 KiB | 73 | 42 |
| ares_init.c | D | 07-May-2024 | 49.3 KiB | 1,807 | 1,393 |
| ares_iphlpapi.h | D | 07-May-2024 | 5.8 KiB | 222 | 170 |
| ares_ipv6.h | D | 07-May-2024 | 1.9 KiB | 79 | 50 |
| ares_library_init.c | D | 07-May-2024 | 3.3 KiB | 143 | 85 |
| ares_library_init.h | D | 07-May-2024 | 1.5 KiB | 43 | 14 |
| ares_llist.c | D | 07-May-2024 | 2.4 KiB | 87 | 52 |
| ares_llist.h | D | 07-May-2024 | 1.3 KiB | 43 | 16 |
| ares_mkquery.c | D | 07-May-2024 | 6.3 KiB | 196 | 86 |
| ares_nowarn.c | D | 07-May-2024 | 4.2 KiB | 189 | 128 |
| ares_nowarn.h | D | 07-May-2024 | 1.6 KiB | 56 | 26 |
| ares_options.c | D | 07-May-2024 | 6.2 KiB | 249 | 184 |
| ares_parse_a_reply.c | D | 07-May-2024 | 7.3 KiB | 264 | 211 |
| ares_parse_aaaa_reply.c | D | 07-May-2024 | 7.2 KiB | 260 | 210 |
| ares_parse_mx_reply.c | D | 07-May-2024 | 4.3 KiB | 171 | 121 |
| ares_parse_ns_reply.c | D | 07-May-2024 | 4.8 KiB | 183 | 136 |
| ares_parse_ptr_reply.c | D | 07-May-2024 | 6.3 KiB | 218 | 178 |
| ares_parse_srv_reply.c | D | 07-May-2024 | 4.6 KiB | 180 | 128 |
| ares_parse_txt_reply.c | D | 07-May-2024 | 5.5 KiB | 202 | 139 |
| ares_platform.c | D | 07-May-2024 | 481.4 KiB | 11,036 | 10,989 |
| ares_platform.h | D | 07-May-2024 | 1.1 KiB | 44 | 17 |
| ares_private.h | D | 07-May-2024 | 9.9 KiB | 356 | 220 |
| ares_process.c | D | 07-May-2024 | 39.8 KiB | 1,296 | 931 |
| ares_query.c | D | 07-May-2024 | 4.8 KiB | 184 | 133 |
| ares_rules.h | D | 07-May-2024 | 4.7 KiB | 145 | 32 |
| ares_search.c | D | 07-May-2024 | 9.4 KiB | 322 | 245 |
| ares_send.c | D | 07-May-2024 | 4 KiB | 135 | 88 |
| ares_setup.h | D | 07-May-2024 | 5.3 KiB | 198 | 82 |
| ares_strcasecmp.c | D | 07-May-2024 | 1.6 KiB | 67 | 44 |
| ares_strcasecmp.h | D | 07-May-2024 | 1 KiB | 31 | 10 |
| ares_strdup.c | D | 07-May-2024 | 1.1 KiB | 43 | 23 |
| ares_strdup.h | D | 07-May-2024 | 897 | 27 | 7 |
| ares_strerror.c | D | 07-May-2024 | 1.9 KiB | 57 | 37 |
| ares_timeout.c | D | 07-May-2024 | 2.4 KiB | 81 | 45 |
| ares_version.c | D | 07-May-2024 | 158 | 12 | 8 |
| ares_version.h | D | 07-May-2024 | 646 | 25 | 18 |
| ares_writev.c | D | 07-May-2024 | 1.7 KiB | 80 | 45 |
| ares_writev.h | D | 07-May-2024 | 1.1 KiB | 37 | 13 |
| bitncmp.c | D | 07-May-2024 | 1.6 KiB | 60 | 25 |
| bitncmp.h | D | 07-May-2024 | 897 | 27 | 8 |
| buildconf | D | 07-May-2024 | 2.9 KiB | 118 | 83 |
| cares.rc | D | 07-May-2024 | 2 KiB | 66 | 58 |
| compile | D | 07-May-2024 | 3.6 KiB | 143 | 79 |
| config-dos.h | D | 07-May-2024 | 3.3 KiB | 117 | 89 |
| config-win32.h | D | 07-May-2024 | 11.3 KiB | 370 | 167 |
| config.guess | D | 07-May-2024 | 43.5 KiB | 1,518 | 1,306 |
| config.sub | D | 07-May-2024 | 34.4 KiB | 1,761 | 1,609 |
| configure | D | 07-May-2024 | 741 KiB | 28,312 | 23,066 |
| configure.ac | D | 07-May-2024 | 19.2 KiB | 858 | 760 |
| depcomp | D | 07-May-2024 | 15.6 KiB | 531 | 330 |
| get_ver.awk | D | 07-May-2024 | 1.4 KiB | 36 | 25 |
| inet_net_pton.c | D | 07-May-2024 | 11.1 KiB | 452 | 344 |
| inet_net_pton.h | D | 07-May-2024 | 1.1 KiB | 32 | 13 |
| inet_ntop.c | D | 07-May-2024 | 5.7 KiB | 209 | 120 |
| inet_ntop.h | D | 07-May-2024 | 934 | 27 | 8 |
| install-sh | D | 07-May-2024 | 5.5 KiB | 251 | 152 |
| libcares.pc.in | D | 07-May-2024 | 586 | 21 | 19 |
| ltmain.sh | D | 07-May-2024 | 276.3 KiB | 9,643 | 7,294 |
| maketgz | D | 07-May-2024 | 1.9 KiB | 75 | 46 |
| missing | D | 07-May-2024 | 10.8 KiB | 361 | 268 |
| mkinstalldirs | D | 07-May-2024 | 669 | 40 | 23 |
| nameser.h | D | 07-May-2024 | 8 KiB | 204 | 181 |
| setup_once.h | D | 07-May-2024 | 14 KiB | 505 | 286 |
| windows_port.c | D | 07-May-2024 | 403 | 23 | 13 |
README
1c-ares
2======
3
4This is c-ares, an asynchronous resolver library. It is intended for
5applications which need to perform DNS queries without blocking, or need to
6perform multiple DNS queries in parallel. The primary examples of such
7applications are servers which communicate with multiple clients and programs
8with graphical user interfaces.
9
10The full source code is available in the 'c-ares' release archives, and in a
11git repository: http://github.com/bagder/c-ares
12
13If you find bugs, correct flaws, have questions or have comments in general in
14regard to c-ares (or by all means the original ares too), get in touch with us
15on the c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares
16
17c-ares is of course distributed under the same MIT-style license as the
18original ares.
19
20You'll find all c-ares details and news here:
21
22 http://c-ares.haxx.se/
23
24
25NOTES FOR C-ARES HACKERS
26
27The following notes apply to c-ares version 1.7.0 and later.
28
29* The distributed ares_build.h file is only intended to be used on systems
30 which can not run the also distributed configure script.
31
32* The distributed ares_build.h file is generated as a copy of ares_build.h.dist
33 when the c-ares source code distribution archive file is originally created.
34
35* If you check out from git on a non-configure platform, you must run the
36 appropriate buildconf* script to set up ares_build.h and other local files
37 before being able of compiling the library.
38
39* On systems capable of running the configure script, the configure process
40 will overwrite the distributed ares_build.h file with one that is suitable
41 and specific to the library being configured and built, this new file is
42 generated from the ares_build.h.in template file.
43
44* If you intend to distribute an already compiled c-ares library you _MUST_
45 also distribute along with it the generated ares_build.h which has been
46 used to compile it. Otherwise the library will be of no use for the users of
47 the library that you have built. It is _your_ responsibility to provide this
48 file. No one at the c-ares project can know how you have built the library.
49
50* File ares_build.h includes platform and configuration dependent info,
51 and must not be modified by anyone. Configure script generates it for you.
52
53* We cannot assume anything else but very basic compiler features being
54 present. While c-ares requires an ANSI C compiler to build, some of the
55 earlier ANSI compilers clearly can't deal with some preprocessor operators.
56
57* Newlines must remain unix-style for older compilers' sake.
58
59* Comments must be written in the old-style /* unnested C-fashion */
60
61
README.cares
1c-ares
2======
3
4This package is based on ares 1.1.1 (written by Greg Hudson). I decided to
5fork and release a separate project since the ares author didn't want the
6improvements that were vital for our use of it.
7
8This package is dubbed 'c-ares' since I (Daniel Stenberg) wanted this for use
9within the curl project (hence the letter C) and it makes a nice pun. Also,
10c-ares is not API compatible with ares: a new name makes that more obvious to
11the public.
12
13The original libares was distributed at athena-dist.mit.edu:pub/ATHENA/ares.
14
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