So imagine the multicast client taken directly from the IO::Socket::Multicast docs:
use IO::Socket::Multicast;
my $sock = IO::Socket::Multicast->new(Proto=>'udp',LocalPort=>PORT);
$sock->mcast_add(GROUP);
while (1) {
my $data;
next unless $sock->recv($data,1024);
print $data;
}
How would one obtain the ip address of the machine that sent $data?
Thanks a million!
-Mike
|