ugly_legs has asked for the wisdom of the Perl Monks concerning the following question:
It will not connect up to the specified host on the specified port. If I explicitly name the host and port, then everything is fine:$dst_server = IO::Socket::INET->new( Proto => "tcp", PeerAddr => $host, PeerPort => $stream_port);
I've debugged this a bit and I have a print statement before I try to connect up to the server where I print out the values of $host and $stream_port and they are correct.$dst_server = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "stream.foo.com", PeerPort => "554");
Edit: added <code> tags, link to CPAN. larsen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Socket::INET grief
by DamnDirtyApe (Curate) on May 21, 2002 at 17:35 UTC | |
|
Re: IO::Socket::INET grief
by Aristotle (Chancellor) on May 21, 2002 at 19:21 UTC | |
|
Re: IO::Socket::INET grief
by tadman (Prior) on May 22, 2002 at 02:40 UTC |