Astro-SkyX
view release on metacpan or search on metacpan
lib/Astro/SkyX.pm view on Meta::CPAN
}
sub connect {
my ($obj,$destinationIP,$destinationPort) = @_;
$SkyXConnection = IO::Socket::INET->new (
PeerAddr => $destinationIP,
PeerPort => $destinationPort,
Blocking => 0,
autoflush => 1,
Proto => 'tcp',
Timeout => "300",
);
if ( ! Scalar::Util::openhandle($SkyXConnection ) ){
die "Unable to connect to The Sky X\n";
}
$SkyXConnection->autoflush(1);
select $SkyXConnection;
$| = 1;
$select = IO::Select->new();
$select->add($SkyXConnection);
( run in 0.391 second using v1.01-cache-2.11-cpan-4d50c553e7e )