Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    use IO::Socket;
    ...
    
    sysread($remote, my $line, 4*1024) or die "couldn't read any data"; # 
    +one single attempt to read 4k of data
    print "$line\n";