Gossamer Forum
Home : General : Perl Programming :

Multicast Socket

Quote Reply
Multicast Socket
I'm working on a script that uses the CPAN module IO::Socket::Multicast. My script opens a multicast socket and adds two groups, '' and '' on the same port 6760. Reading data is no problem but I need to be able to determine when a datagram comes in which group provided it. Any ideas on how to extract that info? I used the sockname and peername calls but they didn't identify the group IP. Instead they gave me and the IP for the server sending the UDP datagrams.

Any suggestions?