nx_tracker_live.nx
buildroot/runtime/nx_tracker_live.nx
about
nx_tracker_live.nx -- LIVE BEP-15 tracker announce (X-TORRENT-LIVE-001 L2): resolve real trackers
(nx_dns_a) + UDP connect+announce a real info_hash -> REAL peers. Tries a LIST of public UDP
trackers (like a real client) and reports each, succeeding on the first that returns peers. Test
target: Big Buck Bunny (the standard legal/well-seeded CC test torrent). GATE = LIVE: any tracker
-> >=1 peer. Composes nx_dns_a_resolve + nx_udp_tracker build/parse. license_tier: ORIGINAL
module: nishi-core.torrent.tracker_live
depends: nishi-core.torrent.dns_a, nishi-core.torrent.udp_tracker
dependencies 2 imports · 0 importers
imports: nx_dns_a.nxnx_udp_tracker.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 11 | const K_MAGIC_305419896: i64 = 305419896 |
| 12 | const K_MAGIC_1000000000: i64 = 1000000000 |
| 13 | const K_MAGIC_6881: i64 = 6881 |
| 14 | const K_MAGIC_2048: i64 = 2048 |
| 15 | const K_MAGIC_1337: i64 = 1337 |
| 16 | const K_MAGIC_6969: i64 = 6969 |
functions
| 18 | func tl_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 19 | func tl_wn(fd: i64, v: i64) -> i64 |
| 24 | func tl_sockaddr(sa: *u8, port: i64, i0: i64, i1: i64, i2: i64, i3: i64) -> i64 called by 1: tl_try |
| 31 | func tl_ip(a: i64) -> i64 { return a } |
| 34 | func tl_try(host: *u8, port: i64, ih: *u8, pid: *u8, ip: *u8, peer0: *i64) -> i64 called by 1: main calls 10: nx_dns_a_resolvesys_socketsys_set_socket_timeouttl_sockaddrnx_udp_build_connectsys_sendto+4 |
| 60 | func tl_report(host: *u8, ip: *u8, rc: i64, peer0: *i64) -> i64 |
| 71 | func main() -> i64 |