On Tue, Dec 7, 2010 at 10:33 AM, Daniel Stenberg <[email protected]> wrote: > On Tue, 7 Dec 2010, Michael Menegakis wrote: > >>> You mean as in not already added to a multi handle? That's not possible >>> to find out I believe, you just have to keep track of which ones you've >>> already added and which you haven't. >> >> If it is already added, how can one "loop" through the multi and find >> available ones? Does it still have to be done externally? > > All easy handles you add to the multi handles are busy and in use until you > get the CURLMSG_DONE message and it identifies the handle that is complete. > >> Does one have to have at the point of CURLMSG_DONE a function that >> attempts to repopulate it immediately? > > That's the point where it makes sense to do it and it doesn't make sense to > do it elsewhere, so yes. This is also what the 10-at-a-time example does.
OK. So, if one doesn't have new data to replenish easies immediately, but he may have in a short while, does he have to keep track of what is being done externally? I'm thinking now of a 'find_an_easy' function that loops to what an 'an_easy_was_done' function was giving it.. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
