Yang Tse
d81cae7a67
Windows CE specific adjustment
...
All versions of Windows CE support Winsock 1.1
14 years ago
Guenter Knauf
28ff9336d5
Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
15 years ago
Ben Greear
e3b04e5a47
local-bind: Support binding to local interface/IPs
...
Add 3 new functions to set the local binding for the out-going
socket connection, and add ares_set_servers_csv() to set a
list of servers at once as a comma-separated string.
Signed-off-by: Ben Greear <greearb@candelatech.com>
15 years ago
Jérémy Lal
63918fca76
added ares_parse_mx_reply
15 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
907b09ccd0
fix compiler warning
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
612a29311a
Daniel wants upcoming release to be 1.7.0
15 years ago
Yang Tse
36b26039ac
- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
...
ares_addr6ttl in order to prevent name space pollution, along with
necessary changes to code base and man pages.This change does not break
ABI, there is no need to recompile existing applications. But existing
applications using these structs with the old name will need source code
adjustments when recompiled using c-ares 1.6.1.
15 years ago
Yang Tse
7a7befd37b
Add missing external API decoration for ares_set_socket_callback()
15 years ago
Yang Tse
5d62fe703f
Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
...
to return a linked lists of results. These were also modified to internally
use the ares_data memory struct and as such its result must be free'ed with
ares_free_data().
15 years ago
Yang Tse
2a916ce6e5
Initial support for the generic ares_free_data() function that will allow
...
applications to free memory allocated and returned by some c-ares funtions.
15 years ago
Yang Tse
f77839ed17
Symbol hiding configure options renamed to the hopefully less ambiguous
...
15 years ago
Yang Tse
cef06973a2
In no particular order, changed/fixed all of the following in
...
ares_parse_txt_reply() current version:
- Fixed a couple of potential double free's.
- Fixed memory leaks upon out of memory condition.
- Fixed pointer arithmetic.
- Setting ntxtreply to zero upon entry for all failure cases.
- Changed data type to size_t for variables substr_len, str_len and
the length member of ares_txt_reply struct.
- Avoided a couple of memcpy() calls.
- Changed i data type to unsigned int to prevent compiler warnings.
- Adjusted a comment.
- Use ARES_SUCCESS literal for successfull completion.
- Added CVS Id tag.
15 years ago
Daniel Stenberg
9cbd5ed034
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
15 years ago
Daniel Stenberg
9ff3cb7411
use 'ares_srv_reply' for proper name-spacing
15 years ago
Yang Tse
de18bf7562
External API function linkage decoration adjustment
15 years ago
Yang Tse
9cac6a4625
Initial step towards the ability to reduce c-ares exported symbols
...
based on the 'visibility' attribute for GNUC and __global for Sun
compilers, taking also in account __declspec function decoration
for Win32 and Symbian DLL's.
Introducing configure options --enable-hidden-symbols and
--disable-hidden-symbols following libcurl's naming.
15 years ago
Yang Tse
b53526b1a9
John Engelhart noticed an unreleased problem relative to a duplicate
...
ARES_ECANCELLED error code value and missing error code description.
15 years ago
Gunter Knauf
091393e79c
changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
...
also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
15 years ago
Daniel Stenberg
a5b204dd5b
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
15 years ago
Daniel Stenberg
408df8efcd
- Timo Teras changed the reason code used in the resolve callback done when
...
ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
better allow the callback to know what's happening.
16 years ago
Yang Tse
cf3301f024
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
...
if library initialization has not been performed calling ares_library_init().
16 years ago
Yang Tse
d3f3189860
Fix case
16 years ago
Yang Tse
757642f675
Remove run-time requirement for advapi32.dll since
...
c-ares can work even with no advapi32.dll at all.
16 years ago
Yang Tse
b677ff3d15
Intentionally avoid checking if the address of SystemFunction036, a.k.a.
...
RtlGenRandom, has been located or not. This function is only available on
WinXP and later. When unavailable c-ares uses portable rand() function.
16 years ago
Yang Tse
5b17412c1f
- Provide in external interface preprocessor symbol definitions for
...
CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP
to ease the use of new capabilities.
- Move ares_version() prototype to ares.h
16 years ago
Yang Tse
b7c7bab713
Introduction of ares_library_init() and ares_library_cleanup()
16 years ago
Yang Tse
3a55bbebf1
Use build-time configured ares_socklen_t instead of socklen_t
16 years ago
Yang Tse
5fc305a0ba
Initial step towards a configure time ares_socklen_t definition
16 years ago
Daniel Stenberg
28531dea2e
- ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it
...
now declares the private struct ares_in6_addr for all systems instead of
relying on one possibly not present in the system.
16 years ago
Daniel Stenberg
f61fa37f40
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
...
and I edited it to also get duped by ares_dup().
16 years ago
Dan Fandrich
20e7876430
Bring the sys/include.h include test in line with curl's.
16 years ago
Daniel Stenberg
413f8dd2a7
Let's not call ares_save_options() deprecated just yet
16 years ago
Daniel Stenberg
e61d4b9e21
Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
...
Also discussed on the ml.
16 years ago
Daniel Stenberg
f31add0695
Convert the public config struct to the same binary size/construct as in the
...
latest releases to remain ABI compatible.
16 years ago
Dan Fandrich
b4371466d4
Make sure sys/socket.h is included before netinet/in.h (required by
...
OpenWatcom C)
16 years ago
Daniel Stenberg
8a6b51d560
- Brad Spencer brought the new function ares_gethostbyname_file() which simply
...
resolves a host name from the given file, using the regular hosts syntax.
16 years ago
Daniel Stenberg
1a1b4eb4f2
- Carlo Contavalli added support for the glibc "rotate" option, as documented
...
in man resolv.conf:
causes round robin selection of nameservers from among those listed. This
has the effect of spreading the query load among all listed servers, rather
than having all clients try the first listed server first every time.
You can enable it with ARES_OPT_ROTATE
16 years ago
Daniel Stenberg
46dbd9461a
- Introducing millisecond resolution support for the timeout option. See
...
ares_init_options()'s ARES_OPT_TIMEOUTMS.
17 years ago
Gisle Vanem
6fed3ff520
Fix for targets that do have 'struct in6_addr', but which doesn't
...
define 's6_addr' as a macro.
17 years ago
Yang Tse
8627b23715
Needed now that in6_addr is referenced in ares.h
17 years ago
Steinar H. Gunderson
b4bdb6d4d7
Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree.
17 years ago
Yang Tse
7cd35ce698
Define WIN32 when build target is Win32 API.
...
This also defines it for WinCE even though it is a subset of WIN32.
17 years ago
Yang Tse
e2d80922fe
Avoid shadowing a global declaration
17 years ago
Steinar H. Gunderson
56ffdcefe1
Support a few more socket options, and refactor the option setting a bit. (Patch from the Google tree.)
17 years ago
Steinar H. Gunderson
50ba81cd23
Make the query callbacks return the number of timeouts that happened during the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
17 years ago
Gunter Knauf
9837d91d68
added NetWare CLIB-own header to solve gcc warnings.
18 years ago
Gunter Knauf
316c126447
few minor changes to make ares compile for NetWare CLIB architecture.
18 years ago
Daniel Stenberg
f1440b2405
Brad House added ares_save_options() and ares_destroy_options() that can be
...
used to keep options for later re-usal when ares_init_options() is used.
18 years ago