Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bytesnake/raw-trace
A native traceroute implementation
https://github.com/bytesnake/raw-trace
Last synced: about 2 months ago
JSON representation
A native traceroute implementation
- Host: GitHub
- URL: https://github.com/bytesnake/raw-trace
- Owner: bytesnake
- Created: 2013-09-25T14:24:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-25T14:25:58.000Z (over 11 years ago)
- Last Synced: 2024-11-20T01:51:45.438Z (about 2 months ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
# raw-trace
trace a route using ICMP echo request packets
# methods
``` js
var trace = require('raw-trace')
```## 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
``` js
var trace = require('raw-trace');trace('npmjs.org', 5000/*ms*/, 20/*ms*/, function(id, host, dt) {
console.log(id+": "+host+" in "+dt+"ms");
});
```## license
BSD-2