[Spread-users] Multiple connections: how long between calls to SP_poll() ?

matthew.garman at gmail.com matthew.garman at gmail.com
Thu Aug 30 14:08:18 EDT 2007


On Thu, Aug 30, 2007 at 10:56:29AM -0400, John Robinson wrote:
> Better wait a short time.

How long is a "short time"?  :)

> Or you can actually use the poll() (or select()) system call on
> the collection of mboxes to wait until any of them has more for
> you to process.  They behave like normal non-blocking fd's in this
> respect.
> 
> The event system packaged with spread can also help with this.

That's probably the ideal solution, but for now we have an object
wrapper around the spread interface that does not expose the mboxes.
Of course there are still a lot of options, I'm just looking for the
quickest and easiest!

Thanks!
Matt




More information about the Spread-users mailing list