fromProto

fun fromProto(source: NodeId, destination: NodeId, intermediateRoute: List<Int>, intermediateRouteBack: List<Int>, snrTowards: List<Float> = emptyList(), snrBack: List<Float> = emptyList()): RouteDiscoveryResult(source)

Reconstructs a full route from a RouteDiscovery proto response.

Parameters

source

the node that initiated the traceroute

destination

the target node

intermediateRoute

intermediate node IDs from the proto route field

intermediateRouteBack

intermediate node IDs from the proto route_back field

snrTowards

SNR values from proto snr_towards field

snrBack

SNR values from proto snr_back field