[FFmpeg-devel] UDP multicasts mixed up on receive due to wrong bind()
Thu Oct 16 18:15:46 CEST 2008
On 10/16/08, Luca Abeni <lucabe72 at email.it> wrote:
> 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 ;-)
Joining the multicast group before binding the port will fail. So you
don't have much the choice for the order.
More information about the ffmpeg-devel