Comparing version 1.0.5 to 1.0.6
@@ -503,3 +503,3 @@ "use strict"; | ||
const dataLen = Buffer.byteLength(loopStr2, paserWriter.getEncoding()); | ||
console.log('单次发送大小:' + dataLen); | ||
console.log('单次发送大小:' + dataLen + ',发送次数:' + this.sendCount + ',每次同时发送:' + this.perCount + ',间隔时间:' + this.interval); | ||
let sendPackage = []; | ||
@@ -512,3 +512,2 @@ let intervalcount = 0; | ||
sendPackage.push(data); | ||
console.log(i); | ||
if ((i + 1) % udpTest.perCount == 0 || i == udpTest.sendCount - 1) { | ||
@@ -533,3 +532,3 @@ for (let m of sendPackage) { | ||
if (that.isClinet) { | ||
that.client.bind(that.portClinet); | ||
//that.client.bind(that.portClinet); | ||
} | ||
@@ -611,4 +610,4 @@ else { | ||
if (head.num == head.count) { | ||
console.log(that.currentReceive.get(head.id)); | ||
console.log(that.currentReceive.get(head.id).length); | ||
console.log('接收消息:' + that.currentReceive.get(head.id)); | ||
console.log('接收消息数量:' + that.currentReceive.get(head.id).length); | ||
let lostfiles = that.lostReceive.get(head.id); | ||
@@ -631,4 +630,4 @@ if (lostfiles == undefined) { | ||
} | ||
console.log(that.lostReceive.get(head.id)); | ||
console.log(that.lostReceive.get(head.id).length); | ||
console.log('丢失消息:' + that.lostReceive.get(head.id)); | ||
console.log('丢失消息数量:' + that.lostReceive.get(head.id).length); | ||
} | ||
@@ -635,0 +634,0 @@ if (total == head.length) { |
{ | ||
"name": "udptest", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "udp test", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31120
1
3
709