Dear All,
Can anyone explain me what the following PERL code does:
#!/usr/bin/perl
use IO::Socket;
$hostname = "10.4.46.34";
$hostport = 5025;
$instr_sock = IO::Socket::INET->new(PeerAddr => $hostname,
PeerPort => $hostport,
Proto => 'tcp');
die "Can not connect to FW Socket Server at $hostname
(port $hostport)\n"
unless $instr_sock;
$instr_sock->autoflush(1);
In particular I don't understand what the "5025" is. Is it port number of a physical or virtual port? Is it a port of LAN connection or one of an instrument connection?
Thanks.
Can anyone explain me what the following PERL code does:
#!/usr/bin/perl
use IO::Socket;
$hostname = "10.4.46.34";
$hostport = 5025;
$instr_sock = IO::Socket::INET->new(PeerAddr => $hostname,
PeerPort => $hostport,
Proto => 'tcp');
die "Can not connect to FW Socket Server at $hostname
(port $hostport)\n"
unless $instr_sock;
$instr_sock->autoflush(1);
In particular I don't understand what the "5025" is. Is it port number of a physical or virtual port? Is it a port of LAN connection or one of an instrument connection?
Thanks.