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
Daniel Stenberg
8c35c65fc7
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.
18 years ago
Yang Tse
bba777d6da
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
18 years ago
Yang Tse
ddbe06ca13
add ares_getopt prototype
18 years ago
Daniel Stenberg
c1bc4c19be
Vlad Dinulescu added ares_parse_ns_reply()
18 years ago
Yang Tse
298541c56c
Remove redundant __CYGWIN__ symbol check
18 years ago
Yang Tse
413a37e409
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
19 years ago
Daniel Stenberg
22e34b53e4
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.
19 years ago
Daniel Stenberg
8d63eb75a9
Added ares_getsock() to extract sockets to wait for action on, without being
...
limited to select().
19 years ago
Yang Tse
c43edebb70
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.
19 years ago
Yang Tse
4b3090680a
Cleanup windows header includes. Where aplicable, inclusion of
...
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
19 years ago
Yang Tse
ed8eeae98e
Undo last changes
19 years ago
Yang Tse
b4e6ca49d8
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
19 years ago
Gisle Vanem
65ec4e9940
Replace <winsock.h> with <winsock2.h>
...
since IPv6 support is required.
19 years ago
Dominick Meglio
6afd5c16d3
Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment
19 years ago
Daniel Stenberg
b117fef909
detabified
20 years ago
Dominick Meglio
aba0b775ea
Added ares_getnameinfo which mimics the getnameinfo API
20 years ago
Daniel Stenberg
9586905220
Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
...
first little steps towards IPv6 support!
20 years ago
Gisle Vanem
7319c3a20a
Adapted for C++.
20 years ago
Daniel Stenberg
3e748f4b50
removed tabs and trailing whitespace from source
20 years ago