code wiki / _hdl_build / nx_synth_serve_daemon.nx

nx_synth_serve_daemon.nx

buildroot/runtime/_hdl_build/nx_synth_serve_daemon.nx

2109 B40 linesdepth 8pulls 17 transitivereach 0 importersview sourcekind servicetopic synth
docsdependenciesstructsconstsfunctions

about

nx_synth_serve_daemon.nx -- deployable Synth Studio daemon: argv[1]=listen_port; accept-fork loop calling sv_serve_conn (nx_synth_serve). Runs on loopback behind the site proxy (/synth -> this port). Forks per connection so the heavy per-request render mmaps are reclaimed by the kernel on child exit. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_synth_serve.nx nx_syscalls.nx nx_synth_serve_daemon.nx

imports: nx_synth_serve.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_write sys_exit sd_atoi sys_mmap sys_socket sys_setsockopt sys_bind sys_listen sys_accept sys_fork sys_close sv_serve_conn sys_set_socket_timeout sys_mmap ↻ sys_setsockopt ↻ sys_munmap sys_mmap ↻ sv_read_full sys_read sv_find_seq sv_hdr_int sv_find_seq ↻ sv_find_seq ↻ sv_reqpath sv_starts sv_do_text2motion sys_mmap ↻ sk_bytes rig_build sk_init sk_hdr sk_add_bone sk_hdr ↻ sk_bone mn_build_corpus sys_mmap ↻ move_bytes move_gen mv_times

structs

none

consts

6const K_MAGIC_1000000: i64 = 1000000

functions

8func sd_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8){ let c: i64=s[i] as i64; if c<48{return v} if c>57{return v} v=v*10+(c-48); i=i+1 } return v }
called by 1: main
10func main(argc: i64, argv: *i64) -> i64