Hi all,
I've got a simple file watcher that forwards the contents of the files on
to a TCP server. If my configuration is somehow messed up and I can't
open any files, I want the watcher to die.
Obviously, I can call 'die', but I can't seem to find a graceful way to
just tell the kernel to pull down all of the sessions and die. No mention
in the POD, and I couldn't find anything in the source or on Google.
Yes, sessions can have a _stop event, but that is a response to a
shutdown, not an initiator. I've seen mention of a "POE::Kernel
shutdown", but can't seem to turn that statement into functional code. Is
there a "stop" analog to "$poe_kernel->run()"?
Thanks,
Luke
--
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but
they've always worked for me. -- Hunter S. Thompson
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|