nx_pe_compile_win_uiserve.nx
buildroot/runtime/nx_pe_compile_win_uiserve.nx
about
nx_pe_compile_win_uiserve.nx -- W-NET-5b: native static-file HTTP server (sockets + file I/O in ONE
PE) to serve the REAL Elder ui/dist on :5173. 13 imports across 2 DLLs:
kernel32 { ExitProcess, GetProcessHeap, HeapAlloc, CreateFileA, ReadFile }
ws2_32 { WSAStartup, socket, bind, listen, accept, recv, send, closesocket }
Keystone-linker redirects shims to thunks (tolerant: only those the source defines, so a combined
probe and the full server build from the same organ). lineage_id: substrate_pe_compile_win_uiserve_v1
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnxasm_x86.nxnx_pe_writer.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 US_CODE_CAP: i64 = 1048576 |
| 12 | const US_FILE_SIZE: i64 = 0x2400 // headers(0x200)+.text(0x2000)+.idata(0x200) |
| 13 | const US_STUB_LEN: i64 = 18 |
| 14 | const US_TEXT_CAP: i64 = 0x2000 |
| 15 | const US_RVA_TEXT: i64 = 0x1000 |
| 16 | const US_RVA_IDATA: i64 = 0x3000 // .text raw 0x2000 -> virtual 0x1000..0x3000 -> idata at 0x3000 |
| 17 | const US_FOFF_TEXT: i64 = 0x200 |
| 18 | const US_FOFF_IDATA:i64 = 0x2200 |
| 20 | const US_IAT_EXIT: i64 = 0x30BC |
| 21 | const US_IAT_GPH: i64 = 0x30C4 |
| 22 | const US_IAT_HA: i64 = 0x30CC |
| 23 | const US_IAT_CFA: i64 = 0x30D4 |
| 24 | const US_IAT_RF: i64 = 0x30DC |
| 25 | const US_IAT_WSA: i64 = 0x30EC |
| 26 | const US_IAT_SOCK: i64 = 0x30F4 |
| 27 | const US_IAT_BIND: i64 = 0x30FC |
| 28 | const US_IAT_LISTEN:i64 = 0x3104 |
| 29 | const US_IAT_ACCEPT:i64 = 0x310C |
| 30 | const US_IAT_RECV: i64 = 0x3114 |
| 31 | const US_IAT_SEND: i64 = 0x311C |
| 32 | const US_IAT_CLOSE: i64 = 0x3124 |
| 33 | const US_IAT_CONNECT:i64 = 0x312C |
| 35 | const US_L_HALLOC: i64 = 29 |
| 36 | const US_L_FOPEN: i64 = 57 |
| 37 | const US_L_FREAD: i64 = 42 |
| 38 | const US_L_WSA: i64 = 31 |
| 39 | const US_L_SOCK: i64 = 28 |
| 40 | const US_L_BIND: i64 = 65 |
| 41 | const US_L_LISTEN: i64 = 23 |
| 42 | const US_L_ACCEPT: i64 = 23 |
| 43 | const US_L_RECV: i64 = 27 |
| 44 | const US_L_SEND: i64 = 27 |
| 45 | const US_L_CLOSE: i64 = 18 |
| 46 | const US_L_CONNECT: i64 = 65 |
functions
| 48 | func us_lbloff(src: *u8, lab_off: *i64, lab_len: *i64, lab_addr: *i64, n_lab: i64, nm: *u8) -> i64 |
| 54 | func us_assemble(src: *u8, n: i64, out: *u8, out_cap: i64, off: *i64) -> i64 |
| 92 | func us_redirect(buf: *u8, shim_off: i64, thunk_off: i64) -> i64 |
| 101 | func us_putname(buf: *u8, base: i64, off: i64, s: *u8) -> i64 |
| 108 | func us_putdll(buf: *u8, base: i64, off: i64, s: *u8) -> i64 |
| 115 | func us_emit_pe(buf: *u8, code: *u8, code_len: i64, off: *i64) -> i64 |
| 340 | func main() -> i64 |