Subject: | IO::Socket::INET silently exits on Win32 |
use IO::Socket::INET;
The following code exits silently on Win32 StrawberryPerl. According to
most examples on the web, this should set up a server listening on UDP 1434.
use strict;
my $PORTNO = 1434;
my $listensock = IO::Socket::INET->new (
LocalHost => "localhost",
LocalPort => $PORTNO,
Proto => "udp",
Type => SOCK_DGRAM,
QUEUE => 10,
ReuseAddr => 1,
) or die " There's a problem with this server $! \n";
while ($listensock->accept()) {
print "loop $forever \n";
$forever++
} # end relaying loop