Help for this page

Select Code to Download


  1. or download this
     $sockclient = new IO::Socket::INET (PeerAddr => $remote_host,
                                      PeerPort => $remote_port,
                                      Proto    => 'tcp',
                                     );
        die "Socket could not be created. Reason: $!\n" unless $sockclient
    +;
    
  2. or download this
    foreach my $hostvar (@remote_host)
        {
    ...
        }
        close ($sockserver);
    }