code wiki / _hdl_build / nx_email_mta_daemon.nx
nx_email_mta_daemon.nx
buildroot/runtime/_hdl_build/nx_email_mta_daemon.nx
about
nx_email_mta_daemon.nx -- runnable receiving MTA: bind 127.0.0.1:2525 and
accept SMTP connections forever, delivering to the mailbox store. This is
the continuously-running server (vs the one-shot serve in the gate).
Monotonic segid counter across connections (each connection's deliveries
use a fresh segid range) so segments never collide. Cross-restart segid
persistence is a follow-on. Loopback bind only -- public bind is a
separate operator opt-in (see EMAIL-D4).
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_email_mta_io.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
| 13 | const MD_PORT: i64 = 0x09DD // 2525 |
| 14 | const MD_PREFIX: *u8 = "knowledge/status/jbox/" |
| 15 | const MD_DOMAIN: *u8 = "jasonewest.com" |
functions
| 17 | func md_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 25 | func md_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 27 | func main() -> i64 |