Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

udptest

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

udptest - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

13

lib/bin/udpTest.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc