curl-library
CURLOPT_LOCALPORT option broken ?!
Date: Wed, 18 Feb 2009 16:26:55 -0800
Hi,
I have installed the latest CURL (7.19.3) on Solaris 10 system. I tried
to use the connect only option to create a socket, but the local binding
fails if I use it along with the interface option as below;
curl_easy_setopt(mp_curl, CURLOPT_LOCALPORT,
mLocalAddress.sin_port);
curl_easy_setopt(mp_curl, CURLOPT_LOCALPORTRANGE, 1L);
curl_easy_setopt(mp_curl, CURLOPT_INTERFACE,
inet_ntoa(mLocalAddress.sin_addr));
curl_easy_setopt(mp_curl, CURLOPT_CONNECT_ONLY, 1L);
And the local port binding works fine without the interface option as
given below;
curl_easy_setopt(mp_curl, CURLOPT_LOCALPORT,
mLocalAddress.sin_port);
curl_easy_setopt(mp_curl, CURLOPT_LOCALPORTRANGE, 1L);
curl_easy_setopt(mp_curl, CURLOPT_CONNECT_ONLY, 1L);
Is this a known bug or did I miss something in my curl usage ?!
Please advise.
Thanks,
Senthil.
Received on 2009-02-19