For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > January 2006 > propoer use of PoCo::Client::TCP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author propoer use of PoCo::Client::TCP
Gil Vidals

2006-01-12, 7:12 pm

I'm working on my first POE application. POE seems terrific by the way.

In any case, my program uses PoCo::Client::TCP and I found a program on the
net that I used as my guide.


<http://cpan.uwinnipeg.ca/htdocs/POE...k-Manager/POE/C
omponent/Client/Asterisk/Manager.pm.html#examples>
http://cpan.uwinnipeg.ca/htdocs/POE...-Manager/POE/Co
mponent/Client/Asterisk/Manager.pm.html#examples

The program has:

$heap->{client} = POE::Component::Client::TCP->new (.....

However, $heap->{client} is never used after it's initial assigment above.
I'm not sure if I should use it this way or just say:

POE::Component::Client::TCP->new (.....

Please help me understand under what circumstances would I want to code with
the $heap->{client} and when I should not. It seems pointless to me to have
$heap->{client} just hanging around and taking up memory.


Gil.Vidals@PositionResearch.com
Position Research, Inc.
Search engine results by research
tel: (760) 480-8291 fax: (760) 480-8271
www.PositionResearch.com <http://www.positionresearch.com/>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com