code wiki / (root) / nx_printer_ports.nx

nx_printer_ports.nx

buildroot/runtime/nx_printer_ports.nx

3301 B75 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic printer
docsdependenciesstructsconstsfunctions

about

nx_printer_ports.nx -- sovereign service-surface recon of the operator's OWN Brother on the OWN LAN: a read-only TCP connect-probe of the ports that matter for print/scan, so the next rung targets the protocol the HARDWARE ACTUALLY EXPOSES (hardware-rung-up). No data is sent -- just connect()/close(). never-brick #26 (read-only). Reuses nx_ipt_sockaddr from the proven transport. license_tier: ORIGINAL genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_ipp_transport.nx nx_printer_ports.nx

imports: nx_syscalls.nxnx_connect.nxnx_ipp_transport.nx

imported by: nobody (leaf or entry point)

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

main p sys_write pn sys_write ↻ sys_mmap report try_port sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap sys_mmap ↻ nx_ipt_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close p ↻ pn ↻ sys_exit

structs

none

consts

10const K_MAGIC_9100: i64 = 9100
11const K_MAGIC_5357: i64 = 5357

functions

13func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: reportmain calls 1: sys_write
14func pn(v: i64) -> i64
called by 2: reportmain calls 2: sys_writesys_mmap
26func try_port(a: i64, b: i64, c: i64, d: i64, port: i64) -> i64
38func report(a: i64, b: i64, c: i64, d: i64, port: i64, label: *u8) -> i64
called by 1: main calls 3: try_portppn
48func main() -> i64