IO-Multiplex

 view release on metacpan or  search on metacpan

contrib/portfw  view on Meta::CPAN

use strict;
use Getopt::Long;
use IO::Multiplex;
use IO::Socket;

my $pidfile;
GetOptions
  "pidfile=s" => \$pidfile,
  ;

my ($local_addr,$remote_addr)=@ARGV;
die "Missing local port\n" if !$local_addr;
die "Missing remote ip\n" if !$remote_addr;

my ($local_ip, $local_port, $proto,
    $remote_ip,$remote_port);
if ($local_addr =~ s%/(\w+)$%%) {
  $proto = $1;
} else {
  $proto = "tcp";
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.041 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )