code wiki / _hdl_build / nx_email_webmail_daemon.nx

nx_email_webmail_daemon.nx

buildroot/runtime/_hdl_build/nx_email_webmail_daemon.nx

1762 B42 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind servicetopic email
docsdependenciesstructsconstsfunctions

about

nx_email_webmail_daemon.nx -- runnable webmail server: bind 127.0.0.1:8025 and serve the mailbox UI in an accept loop. Browse http://127.0.0.1:8025/ (loopback only -- user opts in to any public bind separately). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_email_webmail.nx nx_syscalls.nx nx_email_webmail_daemon.nx

imports: nx_email_webmail.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap wd_addr sys_socket wd_puts sys_write sys_exit sys_bind sys_listen

structs

none

consts

7const WD_MAGIC_100000: i64 = 100000
9const WD_PORT: i64 = 0x1F59 // 8025
10const WD_PREFIX: *u8 = "knowledge/status/jmail/"
11const WD_BOX: *u8 = "self@jasonewest.com"

functions

13func wd_addr(out: *u8, port: i64) -> i64
called by 1: main
21func wd_puts(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 1: main calls 1: sys_write
23func main() -> i64