curl-library
Re: cURL multi interface question.
Date: Wed, 25 Jan 2006 20:28:17 -0800 (PST)
>Anton Rakovchuk wrote:
>
>> servers and download time may vary significantly.
Now
>> the question: How do I know that specific file has
>> been downloaded completely?
>
>Call curl_multi_info_read() and it will give you the
easy_handle of the
>transfer that completed, and from there use
curl_easy_getinfo() to do
>whatever is desired.
>
>Brian
Thanks, Brian, looks like it is a decent way to get
completetion information. Although, I have another
question regarding multi interface. The application I
am working on is using poll instead of select. Is
there a way to get hold on the list of actual
sockets/file descriptor? curl_multi_fdset does give
this information but it is not very convenient to use
it. Also, this is kind of static information, which I
have to poll from the library periodically, I would
prefer to have some callback, which would inform me on
the operation I have to do, like adding socket into
the array for polling or removing it, or changing the
event mask.
I saw some information about 7.16 version where some
such functions are coming up, but I haven't found any
information regarding when this version will be
available.
Anton
Received on 2006-01-26