On Tue, Feb 22, 2011 at 07:22:34PM +0000, [email protected] 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

Reply via email to