fixed UDPSocketRange error on broadcast

This commit is contained in:
Brandon Nozaki Miller 2014-08-27 19:09:01 -07:00
parent d49f2f4a63
commit 874df2fbfb
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -51,7 +51,7 @@ function broadcast(type,data){
);
if(this.udp4 || this.udp6){
for(var i=0, count=this.sockets.length; i<count; i++){
for(var i=1, count=this.sockets.length; i<count; i++){
this.server.write(e,this.sockets[i]);
}
}else{