HopResolved Event

Fired when the name of a hop address is found.

Syntax

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

Callback

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

function(e){ }

The argument 'e' has the following properties:

e.hopNumber
e.statusCode
e.hopHostName

Remarks

The StatusCode contains 0 if the address is resolved successfully, or an error code, in which case, HopHostName contains a textual description of the error.

Host name resolution is disabled by default. Set ResolveNames to True to enable it.

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