[Live-devel] multicast streams using same port
Warren Young
warren at etr-usa.com
Tue Jun 26 23:30:59 PDT 2012
On 6/26/2012 8:42 AM, Ross Finlayson wrote:
>> It seems we face some problems to receive several streams using
>> different multicast groups on same port.
>
> Are you using Linux? The Linux kernel has a bug[*] whereby different
> sockets joining different IP multicast groups with the same port number
> will receive packets that were sent to all multicast groups.
....if the receiving program bind()s to INADDR_ANY. So isn't the fix
simple? bind() each socket to the multicast address of interest.
I've never used Live555 to receive a multicast stream, but doesn't
Live555 need to be given the address anyway for the IGMP group add
setsockopt() call? If that's true, it's not like Live555 doesn't have
the information it needs to cope with the Linux way of handling
multicast reception.
Okay, granted, it's a Linux-specific exception. Is an ifdef so distasteful?
More information about the live-devel
mailing list