I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-10-21 10:09:08-07 by alex1983
Please help with socks
Hello guys, So I'm trying to connect to remote host via SOCKS5 proxy using IO::Socket:Socks module. How I can check the proxy is dead or remote host is dead when I get undef after constructor calling? The same about Net::SOCKS module. Thanks guys!!!
use IO::Socket::Socks; my $sock = new IO::Socket::Socks(ProxyAddr=>"XXX.XXX.XXX.XXX", ProxyPort=>"PXXX", ConnectAddr=>"YYY.YYY.YYY.YYY", ConnectPort=>PYYY, AuthType=>"none", SocksDebug=>1 ); if(!defined $sock) { # How I can check who is dead XXX.XXX.XXX.XXX:PXXX or YYY.YYY.YYY.YYY:PYYY? # }
Direct Responses: Write a response