0.3.3 • Published 10 years ago

raw-trace-ng v0.3.3

Weekly downloads
1
License
BSD-2-Clause
Repository
-
Last release
10 years ago

raw-trace

Native traceroute using ICMP echo request packets utilitising raw-socket-ng

methods

var trace = require('raw-trace-ng')

trace(host, timeout, interval, cb)

Trace the route to a host. Packets will be sent in the defined interval (in milliseconds). If the given timeout is elapsed, the trace will be aborted. On each founded router the cb with the parameters "id, host, dt" is called.

example

var trace = require('raw-trace-ng');

trace('npmjs.org', 5000/*ms*/, 20/*ms*/, function(id, host, dt) {
	console.log(id+": "+host+" in "+dt+"ms");
});

license

BSD-2

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago