cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl multi interface, every time added a new easy handle, need call curl_multi_perform to get socket descriptors?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Apr 2009 22:15:35 +0200 (CEST)

On Thu, 2 Apr 2009, Sun Yi-Ming wrote:

Please don't top-post and full-quote!

> well, you know, english is changing rapidly these days. Is it true that,
> every time after I added an easy handle to the multi stack, I need to call
> the curl_multi_socket_all function to update the socket status? or, I cannot
> get the SOCKETFUNCTION callback. Is there a way to only perform socket
> actions on those new added easy handles?

It is not true.

You _never_ need to use curl_multi_socket_all(), but you should make sure that
you have your timer callback set and you'll be fine with just adding the
handle and let libcurl do the rest.

-- 
  / daniel.haxx.se
Received on 2009-04-03