Help for this page

Select Code to Download


  1. or download this
        my $sock = IO::Socket::INET->new(PeerAddr => '127.0.0.1',
                                             PeerPort => '9090',
                                             Proto    => 'tcp')
          or die("Couldn't connect: $!");
    
  2. or download this
    
        my $server = IO::Socket::INET->new( Proto     => 'tcp',
    ...
                                            Listen    => 10,
                                            Reuse     => 0)
            or die("$!");
    
  3. or download this
    # server
    sub write {
    ...
    
        return $buffer;
    }
    
  4. or download this
    server
      ...
    ...
      
      Tried to read 00000000000000014848 bits but only got 13140 bits