Help for this page

Select Code to Download


  1. or download this
    use Fcntl qw(F_GETFL F_SETFL O_NONBLOCK);
    
    ...
    
    $flags = fcntl(REMOTE, F_SETFL, $flags | O_NONBLOCK)
        or die "Can't set flags for the socket: $!\n";