RNS::Rncp
Constants
APP_NAME = "rncp"
ERASE_STR = "\e[2K\r"
ANSI erase-to-start-of-line + carriage return
REQ_FETCH_NOT_ALLOWED = 240_u8
SPINNER_SYMS = "⢄⢂⢁⡁⡈⡐⡠"
Spinner characters matching Python's braille spinner.
Class methods
fetch(configdir : String | Nil, identitypath : String | Nil, verbosity : Int32, quietness : Int32, destination : String, file : String, timeout : Float64, silent : Bool, phy_rates : Bool, save : String | Nil, allow_overwrite : Bool)
Fetch mode — fetch a file from a remote rncp listener.
format_progress(percent : Float64, current_size : String, total_size : String, speed_str : String, phy_str : String = "") : String
Format a transfer progress string.
format_transfer_complete(percent : Float64, current_size : String, total_size : String, duration_str : String, speed_str : String, phy_str : String = "") : String
Format a transfer complete string.
listen(configdir : String | Nil, identitypath : String | Nil, verbosity : Int32, quietness : Int32, allowed : Array(String), fetch_allowed : Bool, no_compress : Bool, jail : String | Nil, save : String | Nil, display_identity : Bool, disable_auth : Bool, announce : Int32, allow_overwrite : Bool)
Listen mode — receive files from authenticated senders.
Parse command-line arguments matching Python argparse behavior.
Validate a hex destination hash string, returning the bytes.
send(configdir : String | Nil, identitypath : String | Nil, verbosity : Int32, quietness : Int32, destination : String, file : String, timeout : Float64, silent : Bool, phy_rates : Bool, no_compress : Bool)
Send mode — send a file to a remote rncp listener.
Size formatting matching Python's size_str exactly. suffix='B' for bytes, suffix='b' for bits (multiplies by 8).