curl-library
RE: Completed transfer (multi) question
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 17 Aug 2004 15:01:14 +0200 (CEST)
Date: Tue, 17 Aug 2004 15:01:14 +0200 (CEST)
On Tue, 17 Aug 2004, Tarendash, David wrote:
> So then comes the question, how do you know if its completed through the
> multi interface?
First, you know that when the amount of "running handles" you get back from
curl_multi_perform() decreases.
Then, curl_multi_info_read() returns a pointer to a 'struct CURLMsg'.
That CURLMsg struct has a member named 'msg' documented as "what this message
means". And if it contains CURLMSG_DONE, it means that one transfer/easy
handle has completed its transfer. The associated easy handle is found in the
CURLMsg struct and so is the CURLcode from the transfer.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-08-17