code wiki / (root) / nx_edge_daemon.nx

nx_edge_daemon.nx

buildroot/runtime/nx_edge_daemon.nx

10105 B272 linesdepth 13pulls 61 transitivereach 1 importersview sourcekind servicetopic edge
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_x25519_ephemeral.nx nx_tls13.nx nx_tls13_record.nx nx_tls13_server_session.nx nx_tls13_server_session_recv_ch.nx nx_tls13_server_session_emit_sh.nx nx_tls13_server_session_derive_hs. nx_tls13_server_session_derive_tra nx_tls13_server_session_emit_ee.nx nx_edge_daemon.nx nx_edge_daemon_test.nx

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

main sys_mmap nx_edge_daemon_run sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_http_server_addr_any nx_http_server_make_sockad nx_http_server_listen sys_ignore_sigpipe sys_mmap ↻ sys_socket sys_mmap ↻ sys_setsockopt sys_bind sys_close ↻ sys_listen sys_accept sys_close ↻ nx_edge_handle_connection sys_mmap ↻ sys_read ↻ nx_tls13_server_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch fe_alloc fe_from_bytes fe_one fe_zero fe_copy x25519_ladder_step

structs

none

consts

37const NX_MAGIC_2048: i64 = 2048
38const NX_MAGIC_4096: i64 = 4096
39const NX_MAGIC_8192: i64 = 8192
40const NX_MAGIC_8443: i64 = 8443
43const NX_EDGE_OK: i64 = 0
44const NX_EDGE_ERR_CERT_LOAD: i64 = 1
45const NX_EDGE_ERR_PRIV_LOAD: i64 = 2
46const NX_EDGE_ERR_HTML_LOAD: i64 = 3
47const NX_EDGE_ERR_LISTEN: i64 = 4
48const NX_EDGE_ERR_ACCEPT: i64 = 5
49const NX_EDGE_ERR_HANDSHAKE: i64 = 6
50const NX_EDGE_ERR_SERVE: i64 = 7

functions

60func nx_edge_handle_connection(
176func nx_edge_daemon_run(
251func main() -> i64