Each POE::Session instance has its own heap instance (that's its purpose, private storage for the session). You need to either stash the references somwhere both sessions can see (for instance a global %wheels and then use $wheel{ IRC }->put( ... )), or subclass and add a forward_msg state which would have access to the relevant heap and post that event. (Actually come to think of it I don't think you'd really need to subclass, just use $kernel->state( forward_msg => $session => 'forward_msg' ))
In reply to Re: POE Sending Data Between 2 simultaneous TCP connections
by Fletch
in thread POE Sending Data Between 2 simultaneous TCP connections
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |