My Opera is closing 1st of March

M.I.T = Multimedia IT dept.

Subscribe to RSS feed

Socket connection with Perl: checksocket.pl

,

use IO::Socket;
$remote_host="www.ap.ntdtv.com";
$remote_port="8080";
$socket = IO::Socket::INET->new(
Proto => "tcp",
Timeout => 5, # in seconds
PeerAddr => $remote_host,
PeerPort => $remote_port,
Type => SOCK_STREAM,
);

if($socket) {$success=1};
if(!$socket) {$success=0};
if($success eq 1){print "CONNECTED"};
if($success eq 0){print "NOTCONNECTED"};

close($socket);
February 2014
M T W T F S S
January 2014March 2014
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28