on_hop_resolved Event

Fired when the name of a hop address is found.

Syntax

class TraceRouteHopResolvedEventParams(object):
  @property
  def hop_number() -> int: ...
  @property
  def status_code() -> int: ...
  @property
  def hop_host_name() -> str: ...

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

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 resolve_names to True to enable it.

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