on_hop Event

Fired for each hop in the trace to the RemoteHost .

Syntax

class TraceRouteHopEventParams(object):
  @property
  def hop_number() -> int: ...
  @property
  def host_address() -> str: ...
  @property
  def duration() -> int: ...

# In class TraceRoute:
@property
def on_hop() -> Callable[[TraceRouteHopEventParams], None]: ...
@on_hop.setter
def on_hop(event_hook: Callable[[TraceRouteHopEventParams], None]) -> None: ...

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