On Tue, Jan 08, 2002 at 03:48:08PM +0100, Bruno Boettcher wrote:
>
> here's what i did, i made a test-module that only hears after the
> default signal, and is otherwise a simple POE object. I didn't do a
> run() on it, since i thought that the kernel needs to be run only
> once (by the framework in this case)
>
> but not a single event comes by the module....
Sessions will stop if all they watch are signals. Having an alias,
though, is enough to keep a session from stopping. Try adding
something like this to your session's _start handler:
$_[KERNEL]->alias_set("signal_watcher");
> Besides, i made a basemodule class for my modules (with prototypes
> of all needed subs's) from which i derive all other module
> classes. As far as i could tell from the way POE is implemented, i
> don't need to inherit from it?
If it's really a base class, you probably should inherit from it. It
really depends on your program's design.
-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net