Help for this page

Select Code to Download


  1. or download this
    use IO::Socket::INET;
    $sock=IO::Socket::INET->new(PeerAddr => 'machinename',
         PeerPort => $portnumber,
         Proto => 'tcp');
    
  2. or download this
    use IO::Socket::INET;
    $sock=IO::Socket::INET->new(Listen => 1,
    ...
        LocalPort => $portnumber,
        ReuseAddr => 1,
        Proto => 'tcp');