code wiki / (root) / nx_iot_kasa_win.nx

nx_iot_kasa_win.nx

buildroot/runtime/nx_iot_kasa_win.nx

6254 B159 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind tooltopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_kasa_win.nx -- Pairs or probes Kasa bulbs via TCP/9999 using autokey-XOR encryption and credentials from a local file.

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_wsa nx_sock nx_connect sys_mmap nx_fopen nx_fread k_puts k_frame k_enc nx_send nx_close nx_recv k_dec k_find

structs

none

consts

2const K_MAGIC_9999: i64 = 9999
3const K_MAGIC_2048: i64 = 2048
4const K_MAGIC_4096: i64 = 4096

functions

22func sys_mmap(n: i64) -> i64 { return 0 }
called by 1: main
23func nx_wsa() -> i64 { return 0 }
called by 1: main
24func nx_sock() -> i64 { return 0 }
called by 1: main
25func nx_connect(s: i64, port: i64) -> i64 { return 0 }
called by 1: main
26func nx_send(c: i64, buf: *u8, n: i64) -> i64 { return 0 }
called by 1: main
27func nx_recv(c: i64, buf: *u8, n: i64) -> i64 { return 0 }
called by 1: main
28func nx_close(s: i64) -> i64 { return 0 }
called by 1: main
29func nx_fopen(path: *u8) -> i64 { return 0 }
called by 1: main
30func nx_fread(h: i64, buf: *u8, n: i64) -> i64 { return 0 }
called by 1: main
33func k_enc(plain: *u8, n: i64, out: *u8) -> i64
called by 1: k_frame
44func k_dec(cipher: *u8, n: i64, out: *u8) -> i64
called by 1: main
56func k_puts(out: *u8, off: i64, s: *u8) -> i64
called by 1: main
63func k_frame(plain: *u8, n: i64, out: *u8) -> i64
called by 1: main calls 1: k_enc
73func k_find(buf: *u8, len: i64, pat: *u8, pat_len: i64) -> i64
called by 1: main
92func main() -> i64