aboutsummaryrefslogtreecommitdiff
path: root/ares/ares.h
AgeCommit message (Collapse)Author
2009-11-20Add missing external API decoration for ares_set_socket_callback()Yang Tse
2009-11-20Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() APIYang Tse
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-20Initial support for the generic ares_free_data() function that will allowYang Tse
applications to free memory allocated and returned by some c-ares funtions.
2009-10-31Symbol hiding configure options renamed to the hopefully less ambiguousYang Tse
--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-30In no particular order, changed/fixed all of the following inYang Tse
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-29Jakub Hrozek added ares_parse_txt_reply() for TXT parsingDaniel Stenberg
2009-10-29use 'ares_srv_reply' for proper name-spacingDaniel Stenberg
2009-10-29External API function linkage decoration adjustmentYang Tse
2009-10-28Initial step towards the ability to reduce c-ares exported symbolsYang Tse
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-23John Engelhart noticed an unreleased problem relative to a duplicateYang Tse
ARES_ECANCELLED error code value and missing error code description.
2009-09-05changed u_int16_t to unsigned short because it is the only place within ares ↵Gunter Knauf
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-04- Jakub Hrozek added ares_parse_srv_reply() for SRV parsingDaniel Stenberg
2009-08-03- Timo Teras changed the reason code used in the resolve callback done whenDaniel Stenberg
ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to better allow the callback to know what's happening.
2009-05-26Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZEDYang Tse
if library initialization has not been performed calling ares_library_init().
2009-05-19Fix caseYang Tse
2009-05-18Remove run-time requirement for advapi32.dll sinceYang Tse
c-ares can work even with no advapi32.dll at all.
2009-05-18Intentionally avoid checking if the address of SystemFunction036, a.k.a.Yang Tse
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- Provide in external interface preprocessor symbol definitions forYang Tse
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-17Introduction of ares_library_init() and ares_library_cleanup()Yang Tse
2009-05-02Use build-time configured ares_socklen_t instead of socklen_tYang Tse
2009-04-28Initial step towards a configure time ares_socklen_t definitionYang Tse
2009-01-14- ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead itDaniel Stenberg
now declares the private struct ares_in6_addr for all systems instead of relying on one possibly not present in the system.
2008-12-04Gregor Jasny provided the patch that introduces ares_set_socket_callback(),Daniel Stenberg
and I edited it to also get duped by ares_dup().
2008-12-04Bring the sys/include.h include test in line with curl's.Dan Fandrich
2008-12-03Let's not call ares_save_options() deprecated just yetDaniel Stenberg
2008-12-03Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.Daniel Stenberg
Also discussed on the ml.
2008-12-01Convert the public config struct to the same binary size/construct as in theDaniel Stenberg
latest releases to remain ABI compatible.
2008-11-29Make sure sys/socket.h is included before netinet/in.h (required byDan Fandrich
OpenWatcom C)
2008-11-19- Brad Spencer brought the new function ares_gethostbyname_file() which simplyDaniel Stenberg
resolves a host name from the given file, using the regular hosts syntax.
2008-11-01- Carlo Contavalli added support for the glibc "rotate" option, as documentedDaniel Stenberg
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-05-13- Introducing millisecond resolution support for the timeout option. SeeDaniel Stenberg
ares_init_options()'s ARES_OPT_TIMEOUTMS.
2007-12-10Fix for targets that do have 'struct in6_addr', but which doesn'tGisle Vanem
define 's6_addr' as a macro.
2007-11-15Needed now that in6_addr is referenced in ares.hYang Tse
2007-11-15Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. ↵Steinar H. Gunderson
Patch from the Google tree.
2007-11-08Define WIN32 when build target is Win32 API.Yang Tse
This also defines it for WinCE even though it is a subset of WIN32.
2007-10-19Avoid shadowing a global declarationYang Tse
2007-09-28Support a few more socket options, and refactor the option setting a bit. ↵Steinar H. Gunderson
(Patch from the Google tree.)
2007-09-28Make the query callbacks return the number of timeouts that happened during ↵Steinar H. Gunderson
the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
2007-07-03added NetWare CLIB-own header to solve gcc warnings.Gunter Knauf
2007-07-03few minor changes to make ares compile for NetWare CLIB architecture.Gunter Knauf
2007-05-30Brad House added ares_save_options() and ares_destroy_options() that can beDaniel Stenberg
used to keep options for later re-usal when ares_init_options() is used.
2007-05-30added ares_process_fd() to allow applications to ask for processing onDaniel Stenberg
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-04-16ares_getopt() command-line parser function does not belong to actualYang Tse
c-ares library. It is just a convinience source code helper function for use in example programs adig.c and ahost.c
2007-04-12add ares_getopt prototypeYang Tse
2007-02-19Vlad Dinulescu added ares_parse_ns_reply()Daniel Stenberg
2006-10-11Remove redundant __CYGWIN__ symbol checkYang Tse
2006-07-05Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows ↵Yang Tse
headers when compiled with Cygwin in POSIX emulation mode.
2006-05-03Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makesDaniel Stenberg
c-ares call a callback on socket state changes. A better way than the ares_getsock() to get full control over the socket state.
2005-12-22Added ares_getsock() to extract sockets to wait for action on, without beingDaniel Stenberg
limited to select().
2005-12-19Undo previous change. This header file belongs to the publicYang Tse
interface and the change could break the compilation of thrid party apps which link against this library.