Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$server = new IO::Socket::INET(Listen => 1, LocalPort => 8080) || +die "$!"; $sel = new IO::Select( $lsn ); while(@ready = $sel->can_read) { foreach $fh (@ready) { if($fh == $server) { # Create a new socket $new = $lsn->accept; $new->blocking(0); $sel->add($new); } else { # Process socket print "ERROR ",$fh->error," OPENED ",$fh->opened,"\n"; print $fh -> getlines; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Select->can_read isn't recognising closed INET connections
by ptkdb (Monk) on Nov 10, 2003 at 13:26 UTC | |
|
Re: IO::Select->can_read isn't recognising closed INET connections
by etcshadow (Priest) on Nov 10, 2003 at 20:20 UTC |