Hop Event

Fired for each hop in the trace to the RemoteHost .

Syntax

public event OnHopHandler OnHop;

public delegate void OnHopHandler(object sender, TracerouteHopEventArgs e);

public class TracerouteHopEventArgs : EventArgs {
  public int HopNumber { get; }
  public string HostAddress { get; }
  public int Duration { get; }
}
Public Event OnHop As OnHopHandler

Public Delegate Sub OnHopHandler(sender As Object, e As TracerouteHopEventArgs)

Public Class TracerouteHopEventArgs Inherits EventArgs
  Public ReadOnly Property HopNumber As Integer
  Public ReadOnly Property HostAddress As String
  Public ReadOnly Property Duration As Integer
End Class

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 .NET Edition - Version 20.0 [Build 8307]