[Spread-users] New Perl module available: Spread::Session

Guido van Rossum guido at python.org
Sun Feb 10 16:09:45 EST 2002


> If $session->receive() doesn't pick up any inbound Spread messages,
> it will call the timeout callback.

I guess this is an alternate for calling SP_poll().

> Not a particularly sophisticated event model, but I wanted to use
> callbacks consistently.  Since many Spread applications would have
> other events besides Spread messages, a better use of Spread::Session
> would be to nest it inside another event-management framework, monitor
> the Spread file descriptor, and only call $session->receive(0) when
> there is activity.

That would be better, and then the timeout callback is not needed.

> I'm working on a message queueing system that uses Spread::Session,
> then I'll try hooking this into POE or possibly some other frameworks.
> 
> Then maybe some cross-language messaging experiments, using XML or
> perhaps YAML for the message format.  Guido, do you have any Python
> wrappers for Spread?

You must've missed my announcement of SpreadModule 1.0:

http://www.python.org/other/spread/

--Guido van Rossum (home page: http://www.python.org/~guido/)





More information about the Spread-users mailing list