Listening to Multicast.

Eric Newhuis <>
Tue Apr 27 23:38:06 CEST 2004


My faith thus has been restored.  I shall waiver nevermore.


On Apr 27, 2004, at 4:18 PM, Tony Rogvall wrote:

>
> 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