udping

0.5.0 • Public • Published

UDPING

instalation

  • CLI tool
npm install udping --global
  • npm module
npm install udping --save
  • WEB Console
npm install udping --global
 
udping-web

EXAMPLE

udping

options

Show this help message --help Wait wait seconds between sending each packet. -t, --time Wait wait seconds between sending each packet. -i, --wait output text file path -f, --file server host name -h, --host server port number -p, --port use server mode -s, --server use client mode -c, --client

module

const Udping =require("udping");
cosnt Server = new Udping(env).server;
 
 
/*
 
env = {
    //server or client  default:client
    mode:  mode || "client",
    //server host name default:ip.address();
    host: opts.get("host") || opts.args()[0] || ip.address(),
    // server port default:55555
    port: opts.get("port") || 55555,
    execTIme: new Date().getTime(),
    // output path default:"./udping_result.txt"
    savepath: opts.get("file") || "./udping_result.txt",
    //wait time default 1000
    wait: parseInt(opts.get("wait") * 1000) || 1000,
    //try time default:0(infinity)
    time: opts.get("time") || 0
    //callback function that is called when timeout or error occures.default is false(primitive).
    errCallback : yourCallbackFunction || false
}
*/

Readme

Keywords

none

Package Sidebar

Install

npm i udping

Weekly Downloads

12

Version

0.5.0

License

MIT

Last publish

Collaborators

  • yas-nyan