in reply to POE Sending Data Between 2 simultaneous TCP connections
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' ))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POE Sending Data Between 2 simultaneous TCP connections
by Anonymous Monk on Jun 13, 2004 at 18:21 UTC |