[erlang-questions] udp multicast: problem with OSX?

Max Lapshin max.lapshin@REDACTED
Mon Apr 11 17:58:20 CEST 2016


This is how it is working for me:

  {ok, Addr} = inet_parse:address(Host),
  Common =
[binary,{reuseaddr,true},{recbuf,2*1024*1024},inet,{ip,Addr},{read_packets,100}],
  Options = case is_multicast(Addr) of
    true ->
      Multicast =
[{multicast_ttl,4},{multicast_loop,true},{add_membership,{Addr,GwIP}}],
      Common ++ Multicast;
    false ->
      Common
  end,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160411/dccc6d1d/attachment.htm>


More information about the erlang-questions mailing list