Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    print while <$client>;
    
    print "client went away";
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    print $con "ping"  while sleep 1;
    
    print "client ended";