code wiki / _hdl_build / nx_email_webmail_gate.nx
nx_email_webmail_gate.nx
buildroot/runtime/_hdl_build/nx_email_webmail_gate.nx
about
nx_email_webmail_gate.nx -- LIVE: the webmail UI over a real HTTP socket.
Seeds the R3 store with 2 messages for self@jasonewest.com, then fork:
parent = the webmail server (nx_webmail_serve_conn over accept), child =
a real HTTP/1.1 client making 3 GETs:
1. GET / -> HTML lists BOTH subjects ("Welcome" + "Second Note")
2. GET /del?n=0 -> redraw NO LONGER shows "Welcome" (soft-deleted)
3. GET / -> still no "Welcome", still "Second Note"
Then the parent verifies the store: message #0 tombstoned, #1 live.
Evidence -> knowledge/status/webmail.log (WEBMAILGATE ... verdict=GREEN)
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_email_webmail.nxnx_connect.nxnx_syscalls.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
| 17 | const WM_PORT: i64 = 0x2555 |
| 18 | const WM_LOG: *u8 = "knowledge/status/webmail.log" |
| 19 | const WM_PREFIX: *u8 = "knowledge/status/wmail/" |
| 20 | const WM_BOX: *u8 = "self@jasonewest.com" |
functions
| 22 | func g_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 30 | func g_writes(fd: i64, s: *u8) -> i64 |
| 36 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 37 | func contains(hay: *u8, hlen: i64, needle: *u8) -> i64 |
| 49 | func http_get(addr: *u8, path: *u8, out: *u8, cap: i64) -> i64 |
| 66 | func g_run_client(addr: *u8) -> i64 |
| 88 | func main() -> i64 |