curl-library
Re: Re: IP addresses of redirected servers
Date: Tue, 22 Feb 2011 11:38:52 -0800
On Tue, Feb 22, 2011 at 07:22:34PM +0000, binziwang_at_gmail.com wrote:
> There are two issues with CURLOPT_OPENSOCKETFUNCTION:
>
> (1) If it happens that an existing connection is reused, then
> CURLOPT_OPENSOCKETFUNCTION would not be called, would it?
Only if you set CURLOPT_FORBID_REUSE.
> (2) We try to be low-level socket agnostic, so we are reluctant to call
> low-level socket functions directly.
If you're concerned about which hosts are being connected to and which sockets
are used to do it, what you're doing is already a pretty low-level task.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-22