[FFmpeg-devel] UDP multicasts mixed up on receive due to wrong bind()

Luca Abeni lucabe72
Thu Oct 16 16:29:28 CEST 2008


Hi Laurent,

Laurent wrote:
> Hi,
> 
> On 10/15/08, Luca Abeni <lucabe72 at email.it> wrote:
>> Ok, thanks for the information. So, I guess the real question now is:
>> what happens on windows (or on other non-linux systems) if I perform
>> a bind on a multicast address (instead of INADDR_ANY)?
>> Does this break multicast support? Or is it just useless (but does
>> not break anything)?
>> In the first case, the patch cannot be applied. In the second case,
>> the patch fixes an important usage case in linux and does not affect
>> windows, so maybe it can be applied.
>>
> 
> Under Windows (at least XP), this breaks the multicast support (bind fails).
Ok; thanks for checking. Which patch fails: the Jindrich one, my one,
or both?

I am asking because some years ago I worked on a multicast-enabled
application on windows, and I remember that if bind and join were done
in a particular order then binding the multicast group did not fail...
Maybe I am misremembering, or maybe windows behaviour changed.
But before introducing system-dependent code I'd like to really test
all the possibilities ;-)


			Thanks,
				Luca





More information about the ffmpeg-devel mailing list