Hop Event

Fired for each hop in the trace to the RemoteHost .

Syntax

traceroute.on('Hop', [callback])

Callback

The 'callback' is called when the 'Hop' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.hopNumber
e.hostAddress
e.duration

Remarks

This event provides access to the information for each hop in the trace. The HopNumber parameter denotes which hop the trace is at. The HostAddress parameter is the IP address of the host for the hop identified by HopNumber. The Duration parameter shows the amount of time taken by the hop.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Node.js Edition - Version 20.0 [Build 8307]