On Tue, Dec 7, 2010 at 2:51 PM, Daniel Stenberg <[email protected]> wrote: > On Tue, 7 Dec 2010, Michael Menegakis wrote: > >>> 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 figure you can just add "idle" easy handles to a list and add them to the > multi handle again once you get a need for one. Or you simply close them and > create new ones when you have a need.
I ended up doing that. It's basically a MAX_MSGS that it being populated trying to find available un-cleaned and unused easies that also have a MAX_EASIES. They all use the same handle to write the data which is being read when the global loop of the app finds that the multi has a new handle completed. It just for Google Translating game chat (with a common global loop for game logic) so it appears to suit it that way. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
