[erlang-questions] igmp v3 and join source specific multicast
Sergej Jurečko
sergej.jurecko@REDACTED
Mon Aug 19 07:36:54 CEST 2019
Why do you use raw instead of multicast options in gen_udp:open ?
Regards,
Sergej
> On 19 Aug 2019, at 04:30, Mark Geib <mark.geib.44@REDACTED> wrote:
>
> Using the code below I am able to join a source specific multicast
> group and receive the datagrams from the specified source. However,
> when I open a second socket and join a second group, i.e. different
> multicast address, I start to see the datagrams from both groups on
> both sockets. Any ideas would be greatly appreciated.
>
> Bin = << GroupIp/binary, LocalIp/binary, SourceIp/binary >>,
>
> {ok, Socket} = gen_udp:open(Port,
> [inet,
> binary,
> {active,true},
> {reuseaddr,true},
> {recbuf, RecBuf},
> {buffer, Buffer},
> {read_packets, ReadPackets},
> {raw, 0, 39, Bin}]),
>
> Thanks,
> Mark.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list