cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_LOCALPORT option broken ?!

From: Senthil Raja Velu <Senthil.Raja_at_ss8.com>
Date: Mon, 23 Feb 2009 14:35:26 -0800

Thanks Dan!
I tried but it failed and trying to get more info as requested by Marcus
to understand why the fix didn't work for me.

Thanks,
Senthil.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Friday, February 20, 2009 1:40 PM
To: libcurl development
Subject: RE: CURLOPT_LOCALPORT option broken ?!

On Fri, 20 Feb 2009, Senthil Raja Velu wrote:

> I am not clear about the patch
"curl_interface_and_port_patch_2nd_try.diff".
> Do I need to use both the interface and port all the time and should
not use
> any one of those alone.

> In that case, if at all I have to use only the port, could I set the
> interface as "0.0.0.0" as a work-around for ADDR_ANY. Please clarify.

The patch should not alter any requirements or API, it should just make
what
previously didn't work (CURLOPT_INTERFACE + CURLOPT_LOCALPORT) function
properly and as you expected.

Thus the code you showed that failed before should run now with this
patch
applied.

-- 
  / daniel.haxx.se
Received on 2009-02-23