Daniel Stenberg
efdd616118
timeoffset: made static and private
...
ares__timeoffset() was only used once within this single source file
11 years ago
Daniel Stenberg
30c9031afa
timeadd: make static
...
ares__timeadd() was only ever used from within the same source
11 years ago
Daniel Stenberg
9c03cc118c
ares__generate_new_id: moved to ares_query.c
...
... and ares__rc4 is turned into a local static function.
12 years ago
Yang Tse
4718066ea4
ares_private.h: use again memdebug.h instead of curl_memdebug.h
12 years ago
Yang Tse
5b5066d6bc
ares_private.h: use curl_memdebug.h instead of memdebug.h
12 years ago
Yang Tse
a1035276c1
Header inclusion clean-up
...
Remove header inclusions already done in setup_once.h
12 years ago
hpopescu@ixiacom.com
90364defb0
Added new feature (rfc2671)
12 years ago
Yang Tse
a831da792d
fix MSVC compiler warning 'conditional expression is constant'
13 years ago
David Stuart
6518b56a5e
IPv6-on-windows: find DNS servers correctly
14 years ago
Yang Tse
5b6a188909
build: move platform stuff to ares_platform.c and ares_platform.h
14 years ago
Yang Tse
bd066ab8ef
build: find out windows platform using GetVersionEx()
14 years ago
Yang Tse
822fd0f877
build: use getenv() replacement function for systems which lack it
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
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
91031e8ce4
Make header inclusion depend on HAVE_*_H definition
15 years ago
Yang Tse
f3346ca16b
Fix compiler warning
15 years ago
Yang Tse
f34c2a879b
sclose() function-like macro definition used to close a socket,
...
16 years ago
Yang Tse
546ef23c3e
fix comment
16 years ago
Yang Tse
ea46b347bb
Revert last change, it is inappropriate.
16 years ago
Gisle Vanem
51a10c962a
Replace CURLDEBUG with DEBUGBUILD.
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
Daniel Stenberg
8362245c42
- Phil Blundell added the internal function ares__expand_name_for_response()
...
that is now used by the ares_parse_*_reply() functions instead of the
ares_expand_name() simply to easier return ARES_EBADRESP for the cases where
the name expansion fails as in responses that really isn't expected.
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
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
Yang Tse
aa1534eb20
In preparation for the upcomming IPv6 nameservers patch, the internal
...
ares_addr union is now changed into an internal struct which also holds
the address family.
16 years ago
Daniel Stenberg
acf5ca090a
use unsigned short better intead of mixing with ints to prevent compiler
...
warnings
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
Yang Tse
1a9795b401
rearrange to allow internal/private use of ares_writev to any system
...
that lacks the writev function.
16 years ago
Yang Tse
746f3e2942
rearrange to allow internal/private use of ares_strcasecmp to any system that
...
lacks the strcasecmp function.
16 years ago
Yang Tse
797372b0f4
strdup() clone for systems/configurations which lack it
16 years ago
Yang Tse
2265b9281c
fix compiler warning
17 years ago
Yang Tse
0129767bf9
if'def out private function ares__tvdiff(), it is not in use yet.
17 years ago
Daniel Stenberg
46dbd9461a
- Introducing millisecond resolution support for the timeout option. See
...
ares_init_options()'s ARES_OPT_TIMEOUTMS.
17 years ago
Yang Tse
0848b4fdaa
Use monotonic time source if available.
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
343d6f221f
Avoid inline C99ism, and move c-ares routines for managing doubly-linked lists.
17 years ago
Steinar H. Gunderson
04e49e09dc
Previously, processing a large batch of timeouts was O(n^2) in the number of
...
outstanding queries, and processing a DNS response packet was O(n) in the
number of outstanding queries. To speed things up in Google, we added a few circular,
doubly-linked lists of queries that are hash-bucketed based on
the attributes we care about, so most important operations are now O(1).
It might be that the number of buckets are higher than most people would need,
but on a quick calculation it should only be 100kB or so even on a 64-bit
system, so I've let it stay as-is.
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
Steinar H. Gunderson
b669e17544
Three fixes in one commit (sorry): a) Take care of the tcpbuf if it ends while queued for transmission, note broken servers and close them in the main loop, and store TCP socket generation number in order not to send the same query twice over the same socket.
17 years ago
Daniel Stenberg
7a77f24d26
Shmulik Regev brought cryptographically secure transaction IDs
18 years ago
Gisle Vanem
f34c89a9a2
Moved select_s() to Makefile.dj since select() is used in applications.
18 years ago
Gisle Vanem
8e881e02f5
Added definition of select() for Watt32.
18 years ago
Yang Tse
bed83eaf82
Provide multiple header inclusion prevention definition __ARES_PRIVATE_H
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
d07656e76d
James Bursa fixes: find the hosts file on RISC OS, and made it build with
...
newer gcc versions that no longer defines "riscos".
19 years ago
Gunter Knauf
7dfc7b6d56
make ares compile again for NetWare.
20 years ago
Dominick Meglio
ad71e44cc0
Attempted to fix c-ares not building on non-IPv6 systems
20 years ago
Dominick Meglio
7012fc65d9
Made sortlist support IPv6 (this can probably use some testing)
20 years ago