Gorby has asked for the wisdom of the Perl Monks concerning the following question:
$server = IO::Socket::INET->new ( LocalPort => 8001, Type => SOCK_STREAM, Reuse => 1, Listen => 5 ); while ($client = $server->accept()) { $line=<$client>; print "$line\n"; print $client "Hello there"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Socket Server without forking?
by fmerges (Chaplain) on Sep 14, 2007 at 08:10 UTC | |
by Gorby (Monk) on Sep 14, 2007 at 09:06 UTC | |
by Gorby (Monk) on Sep 14, 2007 at 09:17 UTC | |
by moritz (Cardinal) on Sep 14, 2007 at 09:30 UTC | |
|
Re: Socket Server without forking?
by salva (Canon) on Sep 14, 2007 at 08:50 UTC | |
by Gorby (Monk) on Sep 14, 2007 at 09:55 UTC | |
|
Re: Socket Server without forking?
by dk (Chaplain) on Sep 14, 2007 at 09:13 UTC | |
|
Re: Socket Server without forking?
by suaveant (Parson) on Sep 14, 2007 at 14:47 UTC |