Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-01-24 02:38:25 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-24 03:11:45 +0400
commit46e86aa80348dd8e31ade16a3b19eeee6baee0de (patch)
tree0b78d4526bcf61365542b45ea65f0447d7e001ac /test
parent986e61255736a74fad1d96cc928f049c93734e05 (diff)
dgram: bring back setMulticastLoopback()
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-dgram-multicast-multi-process.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/simple/test-dgram-multicast-multi-process.js b/test/simple/test-dgram-multicast-multi-process.js
index 65d9dfc61c6..75fba18ae22 100644
--- a/test/simple/test-dgram-multicast-multi-process.js
+++ b/test/simple/test-dgram-multicast-multi-process.js
@@ -98,10 +98,13 @@ if (cluster.isMaster) {
}
var sendSocket = dgram.createSocket('udp4');
+ sendSocket.bind(); // FIXME a libuv limitation makes it necessary to bind()
+ // before calling any of the set*() functions - the bind()
+ // call is what creates the actual socket...
- //sendSocket.setBroadcast(true);
- //sendSocket.setMulticastTTL(1);
- //sendSocket.setMulticastLoopback(true);
+ sendSocket.setBroadcast(true);
+ sendSocket.setMulticastTTL(1);
+ sendSocket.setMulticastLoopback(true);
sendSocket.on('close', function() {
console.error('sendSocket closed');