Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use IO::Socket; $server = IO::Socket::INET->new ( LocalPort => 1116, Type => SOCK_STREAM, Reuse => 1, Listen => 5 ) or die "Could not open port.\n"; while ($client = $server->accept()) { $line = <$client>; print = $line; } close($server);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: New at socket programming
by dws (Chancellor) on Apr 19, 2002 at 03:14 UTC | |
by Anonymous Monk on Apr 19, 2002 at 03:39 UTC | |
by dws (Chancellor) on Apr 19, 2002 at 03:46 UTC | |
by Anonymous Monk on Apr 19, 2002 at 04:39 UTC | |
Re: New at socket programming
by jeffenstein (Hermit) on Apr 19, 2002 at 09:47 UTC | |
by Anonymous Monk on Apr 19, 2002 at 13:50 UTC | |
Re: New at socket programming
by mslattery (Initiate) on Apr 19, 2002 at 12:35 UTC | |
Re: New at socket programming
by TheHobbit (Pilgrim) on Apr 19, 2002 at 10:13 UTC | |
by Anonymous Monk on Apr 19, 2002 at 13:53 UTC |