module

RNS::Rnpath

Class methods

drop_all_via(transport_hash : Bytes) : Int32

Drop all paths via a transport instance, matching Python Reticulum.drop_all_via().

Source
drop_announce_queues

Drop all announce queues, matching Python Reticulum.drop_announce_queues().

Source
drop_path(destination_hash : Bytes) : Bool

Drop path to a destination, matching Python Reticulum.drop_path().

Source
format_path_found(destination_hash : Bytes, hops : Int32, next_hop : Bytes, next_hop_interface : String) : String

Format a path found response.

Source
format_path_table(table : Array(PathTableEntry), destination_hash : Bytes | Nil = nil) : String

Format path table output. Returns formatted string.

Source
format_rate_table(table : Array(RateTableEntry), destination_hash : Bytes | Nil = nil) : String

Format rate table output. Returns formatted string.

Source
get_path_table(max_hops : Int32 | Nil = nil) : Array(PathTableEntry)

Collect path table from Transport, matching Python Reticulum.get_path_table().

Source
get_rate_table

Collect rate table from Transport, matching Python Reticulum.get_rate_table().

Source
main(argv : Array(String) = ARGV.to_a)

Main entry point for the rnpath binary.

Source
parse_args(argv : Array(String)) : Args

Parse command-line arguments matching Python argparse behavior.

Source
parse_hash(input : String) : Bytes

Validate a hex hash string, returning the bytes. Raises ValueError on invalid input.

Source
pretty_date(timestamp : Int64) : String

Convert a relative timestamp to a human-readable "X ago" string. Matches Python rnpath.py pretty_date() behavior.

Source
version_string

Version string matching Python's "rnpath {version}" format.

Source

Nested types