cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multihomed connections

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 9 Jun 2004 22:56:33 +0200

> I did a patch that now looks like:
>
> * About to connect() to ubr4-ca5-0-sec.landg1.lb.home.nl port 80
> * trying 82.73.204.1... * Connection refused
> * trying 217.121.93.1... * Connection refused
> * trying 217.122.53.1... * Connection refused
> * trying 217.123.132.1... * Connection refused
> * trying 10.221.110.1... * No error
> * trying 82.72.140.1... * Connection refused
> * trying 10.243.112.1... * No error

Did that,

> BTW. I'd like to rewrite Curl_printable_address() so avoiding the #ifdef'ing
> where it's called. I.e.
> const char *Curl_printable_address (const Curl_addrinfo *, char*, size_t);

And this too, but the prototype is
const char *Curl_printable_address (const Curl_ipconnect*, char*, size_t);

Now moved to hostip.c

Hopefully Curl_connecthost() is now easier to follow. IMHO we should
make a more generic Curl_ipconnect. For IPv6, getaddrinfo() does the
tidbits of filling the port and addr-type. Why can't we do this ourselves
in hostip4.c or hostares.c so we don't need to fill the serv_addr again
in Curl_connecthost and then url.c.

--gv

Received on 2004-06-09