fixed UDPSocketRange error on broadcast
This commit is contained in:
parent
d49f2f4a63
commit
874df2fbfb
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ var ipc=require('../../../node-ipc');
|
||||||
* hello or goodbye in any order you
|
* hello or goodbye in any order you
|
||||||
* choose.
|
* choose.
|
||||||
*
|
*
|
||||||
* *************************************/
|
***************************************/
|
||||||
|
|
||||||
ipc.config.id = 'world';
|
ipc.config.id = 'world';
|
||||||
ipc.config.retry= 1500;
|
ipc.config.retry= 1500;
|
||||||
|
|
|
@ -17,7 +17,7 @@ var ipc=require('../../../node-ipc');
|
||||||
* relationship, you should start world
|
* relationship, you should start world
|
||||||
* first and then hello.
|
* first and then hello.
|
||||||
*
|
*
|
||||||
* *************************************//
|
***************************************/
|
||||||
|
|
||||||
ipc.config.id = 'world';
|
ipc.config.id = 'world';
|
||||||
ipc.config.retry= 1500;
|
ipc.config.retry= 1500;
|
||||||
|
|
|
@ -51,7 +51,7 @@ function broadcast(type,data){
|
||||||
);
|
);
|
||||||
|
|
||||||
if(this.udp4 || this.udp6){
|
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]);
|
this.server.write(e,this.sockets[i]);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in a new issue