[erlang-questions] Switching and Routing protocols

Torben Hoffmann <>
Mon Sep 8 13:17:02 CEST 2008


Got the reply going a bit to fast.

The code should look like this:

gen_udp:open(?PORT_NUM_TX_MULTI,
             [binary, {active, true},
             {ip, SomeIP},
             inet,
             {multicast_ttl, 255},
             {multicast_loop, true},
             {multicast_if, SomeIP}]),

This works for real!

Cheers,
Torben


On Mon, Sep 8, 2008 at 1:15 PM, Torben Hoffmann <
> wrote:

>
>
> On Sun, Aug 31, 2008 at 1:46 AM, Sargun Dhillon <>wrote:
>
>> Apparently gen_udp does support multicast, but it isn't in the
>> documentation. Does anyone know where one may find documentation
>> regarding multicasting with gen_udp?
>
>
> I cannot remember where we found the information, but I think we looked in
> the code...
>
> gen_udp:open(?PORT_NUM_TX_MULTI,
>             [binary, {active, true},
>
>             {ip, SomeIP},
>             inet,
> {multicast_ttl, 255},
>                                         {multicast_loop, true},
>                                         {multicast_if, IsiGwIP}]),
>
>
>
>
>
>>
>>
>> 2008/8/28 mog <>:
>> > On Thu, Aug 28, 2008 at 04:37:29PM -0700, Sargun Dhillon wrote:
>> >> protocol Erlang is great. Regarding OSPFd/RIP (other (broad/multi)cast
>> >> IGPs) the gen_udp module doesn't implement multicast last time I
>> >> checked. Unless this has changed you'll need to write an external port
>> >> driver for this purpose.
>> >> We'd love to hear your attempts at routing protocols in Erlang.
>> >
>> > I can't speak to the rest of this email but multicast support is
>> available in erlang as of r11b3 i know for sure probably earlier.
>> >
>> > Mog
>> >
>> > -----BEGIN PGP SIGNATURE-----
>> > Version: GnuPG v1.4.9 (GNU/Linux)
>> >
>> > iEYEARECAAYFAki3gwkACgkQeq+tARrxhnthiwCff+r9R7kH8O/pUp7gLVJHRqKo
>> > P5AAoKC9/n0nVkUaRZe3jhzr3Y0vBrq0
>> > =rrPM
>> > -----END PGP SIGNATURE-----
>> >
>> > _______________________________________________
>> > erlang-questions mailing list
>> > 
>> > http://www.erlang.org/mailman/listinfo/erlang-questions
>> >
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080908/004b5965/attachment.html>


More information about the erlang-questions mailing list