nx_edge_daemon.nx
buildroot/runtime/nx_edge_daemon.nx
about
nx_edge_daemon.nx -- bits-up HTTPS daemon serving nishifamily.com.
Operator directive (2026-05-20, verbatim correction): the substrate
has the deploy capability built bits-up. This file IS that daemon.
Reads cert + ECDSA priv + static HTML from disk, binds to a port,
accepts connections, runs the full TLS 1.3 handshake per shipped
stones, serves the HTML over the encrypted channel.
Composes shipped substrate:
sys_read_file file load
nx_socket (sys_socket/bind/listen/accept) TCP layer
nx_tls13_server_session_* 10 handshake stones
nx_edge_serve_static_response HTTPS response
All pure NishiLang. No C in the serving path.
license_tier: ORIGINAL
dependencies 17 imports · 1 importers
diagram shows first 10 each side; +7 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_x25519_ephemeral.nxnx_tls13.nxnx_tls13_record.nxnx_tls13_server_session.nxnx_tls13_server_session_recv_ch.nxnx_tls13_server_session_emit_sh.nxnx_tls13_server_session_derive_hs.nxnx_tls13_server_session_derive_traffic.nxnx_tls13_server_session_emit_ee.nxnx_tls13_server_session_emit_certificate.nxnx_tls13_server_session_emit_cv.nxnx_tls13_server_session_emit_sf.nxnx_tls13_server_session_recv_cf.nxnx_tls13_server_session_app_data.nxnx_edge_serve_static.nxnx_http_server.nx
imported by: nx_edge_daemon_test.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 37 | const NX_MAGIC_2048: i64 = 2048 |
| 38 | const NX_MAGIC_4096: i64 = 4096 |
| 39 | const NX_MAGIC_8192: i64 = 8192 |
| 40 | const NX_MAGIC_8443: i64 = 8443 |
| 43 | const NX_EDGE_OK: i64 = 0 |
| 44 | const NX_EDGE_ERR_CERT_LOAD: i64 = 1 |
| 45 | const NX_EDGE_ERR_PRIV_LOAD: i64 = 2 |
| 46 | const NX_EDGE_ERR_HTML_LOAD: i64 = 3 |
| 47 | const NX_EDGE_ERR_LISTEN: i64 = 4 |
| 48 | const NX_EDGE_ERR_ACCEPT: i64 = 5 |
| 49 | const NX_EDGE_ERR_HANDSHAKE: i64 = 6 |
| 50 | const NX_EDGE_ERR_SERVE: i64 = 7 |
functions
| 60 | func nx_edge_handle_connection( |
| 176 | func nx_edge_daemon_run( called by 1: main calls 7: sys_mmapsys_read_filenx_http_server_addr_anynx_http_server_listensys_acceptsys_close+1 |
| 251 | func main() -> i64 |