Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Found a solution

by spaz (Pilgrim)
on Sep 19, 2002 at 21:32 UTC ( [id://199311]=note: print w/replies, xml ) Need Help??


in reply to HTTP Proxy Detection

This will work for the time being:
my $socket = IO::Socket::INET->new( PeerAddr => $cacheServer, PeerPort => $cachePort, Proto => 'tcp' ); if( $socket ) { print "Connected to $cacheServer at tcp port $cachePort\n"; close( $socket ); } else { print "*** Couldn't connect to $cacheServer at tcp port $cachePort +!!\n"; }
Does anybody have any suggestions on improving this snippet? I assume it's fine as it is, but if there's anything glaring please let me know!

-- Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://199311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-23 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found