From 874df2fbfb5b51739ea5087a64720e02f6095b07 Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Wed, 27 Aug 2014 19:09:01 -0700 Subject: [PATCH] fixed UDPSocketRange error on broadcast --- example/UDPSocket/Multi-Client-Broadcast/world-server.js | 2 +- example/UDPSocket/basic/world-server.js | 2 +- lib/socketServer.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/UDPSocket/Multi-Client-Broadcast/world-server.js b/example/UDPSocket/Multi-Client-Broadcast/world-server.js index 80f5023..78b8c19 100644 --- a/example/UDPSocket/Multi-Client-Broadcast/world-server.js +++ b/example/UDPSocket/Multi-Client-Broadcast/world-server.js @@ -13,7 +13,7 @@ var ipc=require('../../../node-ipc'); * hello or goodbye in any order you * choose. * - * *************************************/ + ***************************************/ ipc.config.id = 'world'; ipc.config.retry= 1500; diff --git a/example/UDPSocket/basic/world-server.js b/example/UDPSocket/basic/world-server.js index 0d5a7f0..204230e 100644 --- a/example/UDPSocket/basic/world-server.js +++ b/example/UDPSocket/basic/world-server.js @@ -17,7 +17,7 @@ var ipc=require('../../../node-ipc'); * relationship, you should start world * first and then hello. * - * *************************************// + ***************************************/ ipc.config.id = 'world'; ipc.config.retry= 1500; diff --git a/lib/socketServer.js b/lib/socketServer.js index 56db3c2..03236ff 100644 --- a/lib/socketServer.js +++ b/lib/socketServer.js @@ -51,7 +51,7 @@ function broadcast(type,data){ ); if(this.udp4 || this.udp6){ - for(var i=0, count=this.sockets.length; i