joyent/node — Issue #1993: dgram broadcast, multicast and port reuse
Author: wankdanker
Created: 2011-11-02 19:04:55+00:00
State: open

There are a few dgram things that are not working in the 0.5.x series that were working in 0.4.x. I have created a gist with some simple test cases: https://gist.github.com/1334509

Both the broadcast and multicast test cases work the way I would expect them to when using node v0.4.12. You should be able to run multiple processes of broadcast or multicast and see the messages sent from each process.

The broadcast test does not work with the current v0.5.11-pre HEAD because setBroadcast() is not yet implemented.

The multicast test will work with a single instance when using the changes from pull request #1873. However, if you try to run another instance 'bind EADDRINUSE' is thrown.

I tried hacking at libuv to get the broadcast option enabled and was successful, but then had issues with the EADDRINUSE error. Let me know if there is anything I can do to help out with this issue.