wileykt has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/contrib/bin/perl -w use IO::Socket; use Proc::Daemon; Proc::Daemon::Init; $receivefile = ">test.CONF"; $server = IO::Socket::INET->new( Listen => 5, LocalAddr => 'localhost', LocalPort => 5050, Proto => 'tcp', Reuse => 1, Type => SOCK_STREAM ) or die "Can't create server socket: $!"; open FILE, $receivefile or die "Can't open: $!"; while ($client = $server->accept()) { print FILE $_; } close($client);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No data in server file using io::socket
by wog (Curate) on Oct 25, 2001 at 00:12 UTC | |
|
Re: No data in server file using io::socket
by traveler (Parson) on Oct 25, 2001 at 01:48 UTC | |
by wog (Curate) on Oct 26, 2001 at 01:31 UTC |