![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Check for tftp daemon listening on remote serverby c (Hermit) |
on Jan 16, 2002 at 22:41 UTC ( #139275=perlquestion: print w/replies, xml ) | Need Help?? |
c has asked for the wisdom of the Perl Monks concerning the following question:
Reading through this post today, I found a comment by Gibble near the end of the page. It offered up some code to check for whether a remote port is listening or not. I took the code and modified it a little as:
The code doesnt appear to work. I think the <code>or $disconn</code statement is never set since the io::socket call is started. I'm not sure if it fails if the remote port is not listening. I like the simplicity behind the idea of this code. Can it be made to work, or is this altogether wrong? humbly -c
Back to
Seekers of Perl Wisdom
|
|