Listening to Multicast.
Tony Rogvall
tony@REDACTED
Tue Apr 27 23:18:25 CEST 2004
tisdagen den 27 april 2004 kl 19.42 skrev Vance Shipley:
>
> We are still missing the add_membership and drop_membership
> options. There is a very simple patch required to add these
> options into inet.erl. The options are implemented however
> they are missing from inet:options/0 and so are unreachable.
>
They are not missing, they are however not listed among inet:options :-)
just do (on an udp socket)
inet:setopts(S, [{add_membership,{MultiCastAddress, InterfaceAddress}}])
and
inet:setopts(S, [{drop_membership,{MultiCastAddress,
InterfaceAddress}}])
one reason for the options to not be listed could be that you can not
use them
in inet:getopts. so inet:getopts(S, inet:options()) will not work for
add/drop membership.
(Multicast has been working for years :-)
Regards
/Tony
> Raimo had said the patch was accepted for the R9 release
> however that doesn't seem to have happed.
>
> -Vance
>
> http://www.erlang.org/ml-archive/erlang-questions/200303/msg00314.html
> http://article.gmane.org/gmane.comp.lang.erlang.patches/15
> http://article.gmane.org/gmane.comp.lang.erlang.patches/19
More information about the erlang-questions
mailing list