On Fri, Mar 14, 2003 at 04:36:43PM -0500, Robert Landrum wrote:
> I have a TCP client that connects and obtains some type of job to perform
> from a central TCP server.
>
> I'm using PoCo::Client::TCP and POE::Wheel::Run for handling the job.
[sample code]
> I'm not getting any errors when I run this, but for some reason, childterm
> is never called. Neither is job_results.
I don't see anything wrong with the code you've presented, which leads
me to believe something elsewhere is causing the problem. I suppose
the first thing to do is verify that ServerInput's function is being
triggered, and that the yield('process_job',...) line is being called.
Also be sure that you save a copy of $task within process_job(). If
that variable goes out of scope, the wheel will be destroyed nearly
immediately. That's quite likely to happen before run_job() has an
opportunity to do anything.
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/