curl-library
Re: How to change address family
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Aug 2009 13:52:50 +0200 (CEST)
Date: Mon, 24 Aug 2009 13:52:50 +0200 (CEST)
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.seReceived on 2009-08-24