Yang Tse
ce6731baf1
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
Yang Tse
d4ff44d5f6
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
Daniel Stenberg
950a034895
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
2009-10-29 08:59:40 +00:00
Daniel Stenberg
982e655c07
use 'ares_srv_reply' for proper name-spacing
2009-10-29 08:50:34 +00:00
Yang Tse
57eeee2ec3
External API function linkage decoration adjustment
2009-10-29 01:02:54 +00:00
Yang Tse
0d9f14f5c1
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
Yang Tse
a1cc78d5a1
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
Gunter Knauf
f3611c2773
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
Daniel Stenberg
2cf0f80e9f
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
2009-09-04 21:56:14 +00:00
Daniel Stenberg
0606b792f0
- 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
Yang Tse
1c93d9dcfe
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
Yang Tse
dff8076022
Fix case
2009-05-19 15:19:03 +00:00
Yang Tse
f96204dbe0
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
Yang Tse
a450efb483
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
Yang Tse
084447e414
- 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
Yang Tse
2d64cd55a1
Introduction of ares_library_init() and ares_library_cleanup()
2009-05-17 17:11:28 +00:00
Yang Tse
80186aa7f4
Use build-time configured ares_socklen_t instead of socklen_t
2009-05-02 02:36:47 +00:00
Yang Tse
1a2b88964f
Initial step towards a configure time ares_socklen_t definition
2009-04-28 16:47:33 +00:00
Daniel Stenberg
29b6a732f3
- 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
Daniel Stenberg
e5b0533dab
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
Dan Fandrich
a2a315a6e8
Bring the sys/include.h include test in line with curl's.
2008-12-04 07:18:13 +00:00
Daniel Stenberg
04ee89493e
Let's not call ares_save_options() deprecated just yet
2008-12-03 10:03:07 +00:00
Daniel Stenberg
dd3594c6b3
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
Daniel Stenberg
39eb96e9ff
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
Dan Fandrich
f33f8eee26
Make sure sys/socket.h is included before netinet/in.h (required by
...
OpenWatcom C)
2008-11-29 00:26:07 +00:00
Daniel Stenberg
7383225271
- 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
Daniel Stenberg
3e3d10824f
- 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
Daniel Stenberg
76c251513e
- Introducing millisecond resolution support for the timeout option. See
...
ares_init_options()'s ARES_OPT_TIMEOUTMS.
2008-05-13 20:48:48 +00:00
Gisle Vanem
bd99a7dc8c
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
Yang Tse
ca95f58ac0
Needed now that in6_addr is referenced in ares.h
2007-11-15 19:44:01 +00:00
Steinar H. Gunderson
17fde12fb8
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
Yang Tse
32195c673d
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
Yang Tse
9a70a6d0c0
Avoid shadowing a global declaration
2007-10-19 10:52:28 +00:00
Steinar H. Gunderson
08a70d117c
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
Steinar H. Gunderson
6ce589c3ee
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
Gunter Knauf
4182803bc2
added NetWare CLIB-own header to solve gcc warnings.
2007-07-03 16:21:57 +00:00
Gunter Knauf
7509ef6b4e
few minor changes to make ares compile for NetWare CLIB architecture.
2007-07-03 16:00:36 +00:00
Daniel Stenberg
79d59ec97b
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
Daniel Stenberg
670273968c
added ares_process_fd() to allow applications to ask for processing on
...
specific sockets and thus avoiding select() and associated functions/macros.
This function will be used by upcoming libcurl releases for this very
reason. It also made me export the ares_socket_t type in the public ares.h
header file, since ares_process_fd() uses that type for two of the arguments.
2007-05-30 12:58:47 +00:00
Yang Tse
0563a7a923
ares_getopt() command-line parser function does not belong to actual
...
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
2007-04-16 09:01:16 +00:00
Yang Tse
b36376e12d
add ares_getopt prototype
2007-04-12 18:59:46 +00:00
Daniel Stenberg
7ba53a4f41
Vlad Dinulescu added ares_parse_ns_reply()
2007-02-19 14:06:11 +00:00
Yang Tse
e150150d9f
Remove redundant __CYGWIN__ symbol check
2006-10-11 16:01:16 +00:00
Yang Tse
bc2f0c7dcb
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
2006-07-05 23:10:37 +00:00
Daniel Stenberg
dd06c60ada
Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
...
c-ares call a callback on socket state changes. A better way than the
ares_getsock() to get full control over the socket state.
2006-05-03 06:11:44 +00:00
Daniel Stenberg
e5247ae65d
Added ares_getsock() to extract sockets to wait for action on, without being
...
limited to select().
2005-12-22 15:27:41 +00:00
Yang Tse
e6b98d3152
Undo previous change. This header file belongs to the public
...
interface and the change could break the compilation of thrid
party apps which link against this library.
2005-12-19 00:15:04 +00:00
Yang Tse
d6c5d24af3
Cleanup windows header includes. Where aplicable, inclusion of
...
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
2005-12-18 15:36:14 +00:00
Yang Tse
b15f3bb969
Undo last changes
2005-12-11 23:37:58 +00:00
Yang Tse
36485e56ed
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
2005-12-11 12:03:01 +00:00