curl-library
Re: How to change address family
Date: Mon, 24 Aug 2009 18:57:32 +0530
I have XIP bridge implemented in my environment and so the family values
change for me. I can't use either AF_INET and AF_INET6.
I have implemented the callback and changed only the family and not
anything. But, when libcurl tries to do a connect(), it tries to connect to
some wrong address and it fails.
Thanks and Regards,
krishna
On 8/24/09, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Mon, 24 Aug 2009, Krishna Chaithanya Muthyala wrote:
>
> I want to change the address-family for sockets created by libcurl code. Is
>> there anyway I can do that?
>>
>> I know libcurl provides many callbacks and found one with name
>> CURLOPT_OPENSOCKETFUNCTION. Using this callback, will I be able to change
>> the family.
>>
>
> Yes, using that function you replace the call that libcurl would otherwise
> do to socket().
>
> Somehow it is not working for me. Can anyone explain the usage or point to
>> any example?
>>
>
> We already explained the usage in the curl_easy_setopt() man page. What
> isn't clear and what do you mean with "it is not working"?
>
> --
>
> / daniel.haxx.se
>
Received on 2009-08-24