I wrote a function for POE::Kernel called 'kill_session', oddly enough, it 
forces the removal of a session that you specify. All children of the 
session move up and become children of the grandparent, and all of the 
dispatching is taken care of for this.

The problem is, I have no clue how to subclass POE::Kernel, my attempt is 
located at http://kuiki.net/hachi/Kernel-killable.pm.txt

I also wrote a test case for the function, located at 
http://kuiki.net/hachi/kill-test.perl

If someone wants to help me out with subclassing this sucker properly, 
thanks. Otherwise you can just shove the function into Kernel.pm and it will 
work.

Have fun either way :)

--hachi

PS. I found that I wanted this functionality for use in 
POE::Component::Server::IRC, so thats why it has been written.

Reply via email to