nx_tracker_list.nx
buildroot/runtime/nx_tracker_list.nx
about
nx_tracker_list.nx -- DATA-DRIVEN tracker list parser (Cardinal 11: the tracker SET is config in
<bundle>/trackers.txt, not hardcoded magic). One announce URL per line; '#' comment lines + blank /
whitespace-only lines are skipped; a trailing CR (CRLF files) is trimmed. The worker feeds each
extracted URL to ht_announce_url (HTTP/HTTPS over TCP -- bypasses this network's UDP-tracker block) to
WIDEN peer discovery => better odds of finding the one seed holding a rare tail piece (the "stuck at
99%" fix for poorly-seeded swarms). Pure logic here (gateable); the network + detached-fork glue lives
in the worker (nx_torrent_get). main() is the self-gate.
license_tier: ORIGINAL layer: peer-discovery config module: nishi-core.torrent.tracker_list
depends: nishi-core.syscalls
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_torrent_get.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 16 | func tl_next_line(buf: *u8, n: i64, pos: i64, out: *u8) -> i64 called by 1: tg_wide_to_pex |
| 37 | func tl_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 38 | func tl_pn(v: i64) -> i64 |
| 45 | func tl_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } |
| 46 | func tl_report(label: *u8, ok: i64) -> i64 { if ok == 1 { tl_puts(" [PASS] " as *u8) } else { tl_puts(" [FAIL] " as *u8) } tl_puts(label); tl_puts("\n" as *u8); return 0 } |
| 48 | func main() -> i64 calls 1: tl_report |