Outaspace has asked for the wisdom of the Perl Monks concerning the following question:
Later in the program I need the blocking. Has this anything to do with Perl or Windows Version, I have problems with sockets under Win NT 4.0 too, but on the Client side ( but this is another story ). Andre$Socket = IO::Socket::INET->new( LocalPort => '25022', Proto => 'tcp', Listen => 10, Timeout => 1, Type => SOCK_STREAM, Reuse => 1 ) or die $!; until($Client = $Socket->accept()) {} $Client->blocking(0); # The next statment shouldnt block, but it does !!! $Input = <$Client>; $Client->blocking(1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Non-Blocking INET getline
by matija (Priest) on Nov 22, 2005 at 13:22 UTC | |
|
Re: Non-Blocking INET getline
by monarch (Priest) on Nov 22, 2005 at 12:54 UTC | |
|
Re: Non-Blocking INET getline
by Outaspace (Scribe) on Nov 23, 2005 at 11:51 UTC |