d81cae7a67
Windows CE specific adjustment
...
All versions of Windows CE support Winsock 1.1
2011-03-22 14:28:47 +01:00
28ff9336d5
Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
2010-07-29 23:27:46 +02:00
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 >
2010-07-18 23:58:39 +02:00
63918fca76
added ares_parse_mx_reply
2010-04-18 00:29:26 +02:00
63627fa5ab
remove all $Id$ lines
2010-03-27 19:42:02 +01:00
907b09ccd0
fix compiler warning
2010-03-11 18:53:42 +00:00
8fe746fcf2
Added IPv6 name servers support
2010-03-05 20:01:47 +00:00
612a29311a
Daniel wants upcoming release to be 1.7.0
2009-11-23 12:03:32 +00:00
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.
2009-11-23 01:24:17 +00:00
7a7befd37b
Add missing external API decoration for ares_set_socket_callback()
2009-11-20 14:11:06 +00:00
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().
2009-11-20 09:06:33 +00:00
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.
2009-11-20 08:50:03 +00:00
f77839ed17
Symbol hiding configure options renamed to the hopefully less ambiguous
...
--enable-symbol-hiding and --disable-symbol-hiding as well as related
macro names and some internal variables used for them.
Related configuration file preprocessor symbols named to
CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN.
2009-10-31 04:16:40 +00:00
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.
2009-10-30 16:21:56 +00:00
9cbd5ed034
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
2009-10-29 08:59:40 +00:00
9ff3cb7411
use 'ares_srv_reply' for proper name-spacing
2009-10-29 08:50:34 +00:00
de18bf7562
External API function linkage decoration adjustment
2009-10-29 01:02:54 +00:00
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.
2009-10-28 19:45:26 +00:00
b53526b1a9
John Engelhart noticed an unreleased problem relative to a duplicate
...
ARES_ECANCELLED error code value and missing error code description.
2009-10-23 15:49:05 +00:00
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.
2009-09-05 15:12:30 +00:00
a5b204dd5b
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
2009-09-04 21:56:14 +00:00
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.
2009-08-03 11:51:06 +00:00
cf3301f024
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
...
if library initialization has not been performed calling ares_library_init().
2009-05-26 18:00:14 +00:00
d3f3189860
Fix case
2009-05-19 15:19:03 +00:00
757642f675
Remove run-time requirement for advapi32.dll since
...
c-ares can work even with no advapi32.dll at all.
2009-05-18 15:49:32 +00:00
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.
2009-05-18 01:25:20 +00:00
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
2009-05-18 00:21:02 +00:00
b7c7bab713
Introduction of ares_library_init() and ares_library_cleanup()
2009-05-17 17:11:28 +00:00
3a55bbebf1
Use build-time configured ares_socklen_t instead of socklen_t
2009-05-02 02:36:47 +00:00
5fc305a0ba
Initial step towards a configure time ares_socklen_t definition
2009-04-28 16:47:33 +00:00
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.
2009-01-14 13:08:50 +00:00
f61fa37f40
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
...
and I edited it to also get duped by ares_dup().
2008-12-04 12:53:03 +00:00
20e7876430
Bring the sys/include.h include test in line with curl's.
2008-12-04 07:18:13 +00:00
413f8dd2a7
Let's not call ares_save_options() deprecated just yet
2008-12-03 10:03:07 +00:00
e61d4b9e21
Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
...
Also discussed on the ml.
2008-12-03 09:59:50 +00:00
f31add0695
Convert the public config struct to the same binary size/construct as in the
...
latest releases to remain ABI compatible.
2008-12-01 19:06:24 +00:00
b4371466d4
Make sure sys/socket.h is included before netinet/in.h (required by
...
OpenWatcom C)
2008-11-29 00:26:07 +00:00
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.
2008-11-19 15:16:16 +00:00
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
2008-11-01 18:35:19 +00:00
46dbd9461a
- Introducing millisecond resolution support for the timeout option. See
...
ares_init_options()'s ARES_OPT_TIMEOUTMS.
2008-05-13 20:48:48 +00:00
6fed3ff520
Fix for targets that do have 'struct in6_addr', but which doesn't
...
define 's6_addr' as a macro.
2007-12-10 16:14:02 +00:00
8627b23715
Needed now that in6_addr is referenced in ares.h
2007-11-15 19:44:01 +00:00
b4bdb6d4d7
Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree.
2007-11-15 08:36:25 +00:00
7cd35ce698
Define WIN32 when build target is Win32 API.
...
This also defines it for WinCE even though it is a subset of WIN32.
2007-11-08 18:13:54 +00:00
e2d80922fe
Avoid shadowing a global declaration
2007-10-19 10:52:28 +00:00
56ffdcefe1
Support a few more socket options, and refactor the option setting a bit. (Patch from the Google tree.)
2007-09-28 15:15:39 +00:00
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.)
2007-09-28 14:46:51 +00:00
9837d91d68
added NetWare CLIB-own header to solve gcc warnings.
2007-07-03 16:21:57 +00:00
316c126447
few minor changes to make ares compile for NetWare CLIB architecture.
2007-07-03 16:00:36 +00:00
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.
2007-05-30 20:49:14 +00:00