Monky Python has asked for the wisdom of the Perl Monks concerning the following question:
my $udpcon = "227.50.49.48:9897";
my $sock1 = IO::Socket::INET->new(Proto=>'udp',PeerAddr=>$udpcon);
die "Can't bind to $udpcon: $!\n" unless $sock1;
my $data;
my $len;
print "waiting for data on $udpcon ...\n";
while (1) {
$len = recv($sock1, $data, 10, 0);
print $len."\n";
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading from multicast socket
by rasta (Hermit) on Nov 12, 2002 at 08:56 UTC | |
|
Re: reading from multicast socket
by Chief of Chaos (Friar) on Nov 12, 2002 at 10:58 UTC | |
|
Re: reading from multicast socket
by amphiplex (Monk) on Nov 12, 2002 at 08:57 UTC |