RouteDiscoveryResult

data class RouteDiscoveryResult(val route: List<NodeId>, val routeBack: List<NodeId>, val snrTowards: List<Float> = emptyList(), val snrBack: List<Float> = emptyList())(source)

Parsed result of a traceroute discovery, representing the full forward and backward routes.

Constructors

Link copied to clipboard
constructor(route: List<NodeId>, routeBack: List<NodeId>, snrTowards: List<Float> = emptyList(), snrBack: List<Float> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Number of intermediate hops (excludes source and destination).

Link copied to clipboard

Full forward route (source → destination), including endpoints

Link copied to clipboard

Full return route (destination → source), including endpoints

Link copied to clipboard

Per-hop SNR values on the return route (may be empty if not available)

Link copied to clipboard

Per-hop SNR values on the forward route (may be empty if not available)

Functions

Link copied to clipboard
fun formatRoute(resolveNode: (NodeId) -> String): String

Formats the route as a human-readable string using the provided node name resolver.