Help for this page

Select Code to Download


  1. or download this
    $self->{SOCK} = new IO::Socket::INET(LocalPort=>$port,
                                         Proto=>"tcp",
                                         Listen=>10,
                                         Reuse=>1,
                                         Blocking=>0);
    
  2. or download this
    ######################################################################
    +#########
    #
    ...
        fcntl($socket, F_SETFL, $flags | O_NONBLOCK) ||
            croak("Can't make socket nonblocking: $!\n");
    }