|
|
Re: Stuck on a POE::Wheel::SocketFactory: msg#00062
|
Subject: |
Re: Stuck on a POE::Wheel::SocketFactory |
Philip Dobranski wrote:
Should this line:
RemoteAddress => $t->{host},
Read
RemoteAddress => $t->{name},
Given the definition of your data structures?
No, actually I meant to use "host" in the hashref below, instead of
"name". The data comes out of a file. I hardcoded it here to simplify
matters and got mixed up.
Thanks,
David
-----Original Message-----
From: David Landgren [mailto:david@xxxxxxxxxxxx]
Sent: Monday, September 12, 2005 10:25 AM
To: poe@xxxxxxxx
Subject: Stuck on a POE::Wheel::SocketFactory
Hello Poers,
I'm trying to write a socket factory that simply checks whether it can
connect to ports.
my $task = [
{ name => 'www.example.com', proto => 'tcp', port => 80 },
{ name => 'smtp.example.com', proto => 'tcp', port => 25 },
{ name => 'ns.example.com', proto => 'udp', port => 53 },
];
|
| |