nx_doctor.nx
buildroot/runtime/nx_doctor.nx
about
nx_doctor.nx -- the bits-up AUTO-FIX tool a regular user runs. Probes
the things that break (services, sites, web layer, DNS), classifies each
as LOCAL (auto-fixable right here) or REMOTE (report -> the network
self-heals), AUTO-FIXES the local ones, and prints a plain-language
verdict anyone can read.
Fixes it performs locally: restart a dead service (fork+exec); flush the
stale Windows DNS cache (ipconfig.exe /flushdns via WSL interop) -- the
real cause of "site doesn't load in my browser but the server is fine".
Capstone of NX-NETSCOPE (diagnose) + self-heal (decide/act) + the
easy-for-anyone verdict. Sovereign: raw syscalls, zero deps.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_connect.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
| 18 | const DR_MAGIC_8787: i64 = 8787 |
| 19 | const DR_MAGIC_1500: i64 = 1500 |
| 21 | const DR_OK: i64 = 0 |
| 22 | const DR_LOCAL: i64 = 1 |
| 23 | const DR_REMOTE: i64 = 2 |
functions
| 25 | func dr_putn(n: i64) -> i64 |
| 35 | func dr_sym(state: i64) -> i64 |
| 43 | func dr_sockaddr(sa: *u8, ip_packed: i64, port: i64) -> i64 |
| 56 | func dr_timeout(fd: i64, opt: i64) -> i64 { // opt 20=RCVTIMEO 21=SNDTIMEO, 1s |
| 66 | func dr_tcp_ok(ip_packed: i64, port: i64) -> i64 |
| 80 | func dr_http_status(ip_packed: i64, port: i64, host: *u8, hlen: i64) -> i64 |
| 108 | func dr_restart_search() -> i64 |
| 121 | func dr_flush_windows_dns() -> i64 |
| 138 | func main() -> i64 |