curl-library
Re: is curl_multi_socket_all() deprecated?
Date: Wed, 22 Oct 2008 13:18:24 +0200
On Oct 22, 2008, at 12:53 PM, ragnar_at_gatorhole.com wrote:
> I have another question for the list - the documentation states that
> curl_multi_socket() and curl_multi_socket_all() are deprecated, and
> that
> curl_multi_socket_action() should be used instead.
>
> However, is curl_multi_socket_all() really deprecated? How do you
> "start"
> execution without calling curl_multi_socket_all() at least once?
You shouldn't need to. At least when you've also set a timeout
callback (as you really should but apparently don't), adding an easy
handle to the multi handle will directly trigger the callbacks.
If you don't set a timeout callback, that may not happen though. In
that case, you MUST poll curl_multi_timeout and set timeouts based on
that. This would probably be better than forcing a
curl_multi_socket_all call manually. You can't just ignore timeouts.
Either you set a callback, or you poll them. The callback is easier
to handle though, in my experience.
-- Josef Drexler josef_at_ttdpatch.netReceived on 2008-10-22