0.5.0 • Published 7 years ago

udping v0.5.0

Weekly downloads
85
License
MIT
Repository
github
Last release
7 years ago

UDPING

instalation

  • CLI tool

`bash:~/ npm install udping --global

* npm module

```bash:~/yourNodeAppDir/
npm install udping --save
  • WEB Console

`bash:~/ npm install udping --global

udping-web

## EXAMPLE

```bash:~/udping/
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
}
*/
0.5.0

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago