Skip to content

Commit

Permalink
Reset ping TTL after raw socket is closed, The traceRoute() example i…
Browse files Browse the repository at this point in the history
…n the READNE.md used pingHost(), Remove traceRoute() from enhancements section in the README.md
  • Loading branch information
stephenwvickers committed May 19, 2013
1 parent 8669295 commit 4da5eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ The following example initiates a trace route to a remote host:
}
}

session.pingHost ("192.168.10.10", 10, feedCb, doneCb);
session.traceRoute ("192.168.10.10", 10, feedCb, doneCb);

# Example Programs

Expand Down Expand Up @@ -436,10 +436,6 @@ Bug reports should be sent to <stephen.vickers.sv@gmail.com>.

# Roadmap

In no particular order:

* Implement traceRoute()

Suggestions and requirements should be sent to <stephen.vickers.sv@gmail.com>.

# License
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ Session.prototype.getSocket = function () {
this.socket.on ("close", this.onSocketClose.bind (me));
this.socket.on ("message", this.onSocketMessage.bind (me));

this.ttl = null;
this.setTTL (this.defaultTTL);

return this.socket;
Expand Down

0 comments on commit 4da5eeb

Please sign in to comment.