POE::Filter::Reference help
"Simon Taylor" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <CF268C57160BE84289D36FF46801A2C808400CC7@zharhxm0.corp.nortel.com> |
I can send messages between child processes and the parent process no
problem when i define the following sub in the class that is created
directly in the forked child.
But when the object is nested 2 or 3 classes into the forked process the
messages never get to the parent.
They fire fine but dont get received.
They don't show up when i trace out POE and aren't shown in the parent
log like the other messages.
I have to admit i dont fully understand how POE::Filter::Reference
achieves what it needs to. How are the end points between which messages
are sent determined?
Any clarification appreciated.
Simon
sub _ReportStatusToParent{
my ($self, @args) = @_;
my $filter = POE::Filter::Reference->new();
my %result = (
taskid => $self->{_id}->{section_name},
pid => $$,
status => $args[0],
);
# Generate some output via the filter. Note the strange use of list
# references.
my $output = $filter->put([\%result]);
print @$output;
}
Simon Taylor
Development Team Lead NMS Applications
Network Managed Services
Nortel Networks
(e) [email protected]
(p) +44 1279 402291 ESN 6 742 2291
(m) +44 7740 533743 ESN 6 748 3743
(yim) setuk_nortel