For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > June 2005 > New snapshot for an inter-session Call class.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author New snapshot for an inter-session Call class.
Rocco Caputo

2005-06-08, 9:04 pm

It is the latest poecall-*.tar.gz file at http://poe.perl.org/poedown/

.... from the README:

2005-01-31:

This snapshot includes a Delay class. The Call and Stage classes have
been expanded, and pattern-many-responses.perl has been modified to
use Delay instead of POE::Kernel's delay().

Delay implements a subset of POE::Kernel's delay_set(). It's far from
complete, but it performs what pattern-many-responses.perl needs from
a Delay class.

Call has been extended to track resources, such as Delay objects.
When a Delay is created, it calls delay_set() internally and
associates itself with the currently active Call object. Canceling a
Call will automatically cancel any Delay objects associated with it.

Automatic resource cancelation will extend to other resources as
they're created. Eventually the resource tracking will be abstracted
into a base resource class.

The Stage class has been extended with an event handler for Delay's
internal events. This hidden event handler massages some parameters
and passes execution to the event handler associated with a particular
Delay. Since Delay objects are one-shots, they are automatically
dissociated from their Calls after they go off.

The many-responses session interaction pattern runs too slowly to
detect a memory leak.

--
Rocco Caputo - http://poe.perl.org/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com