Help for this page

Select Code to Download


  1. or download this
    use IO::Socket; 
    
    ...
    $sock->flush;
    sysread($sock, $buf, 2);
    print "Bytes 2 = $buf\n";
    
  2. or download this
    use IO::Socket; 
    
    ...
    $new_sock->flush;
    syswrite($new_sock, "12", 2);
    }