code wiki / _hdl_build / _pe_dchan_reorder.nx
_pe_dchan_reorder.nx
buildroot/runtime/_hdl_build/_pe_dchan_reorder.nx
about
_pe_dchan_reorder.nx -- X-ROOM-DC-003 rung-3 RELIABILITY DATA PLANE (the ACTION layer the spec
flagged as the emitter frontier: "seq-number arithmetic + payload reorder-buffer ... wired at
integration"). COMPOSES the organ-authored FSM control core _pe_dchan_arq (states/transitions =
WHEN to retransmit) with the data-plane ACTIONS (WHAT: in-order delivery under loss+reorder).
dp_recv: a sliding-window reorder buffer -- buffer out-of-order seqs, deliver contiguous from
base, dedup old seqs, drop out-of-window, cumulative-ack = base (next expected). This is the
N-party correctness layer (a 2-peer TCP room gets order free; N>2 / late-join needs this).
HONEST AUTHORSHIP (memory discipline): the FSM TABLE is organ-emitted (_pe_dchan_arq); these
ACTIONS are hand-built -- a DECLARED SCAFFOLD, emitter-of-emitters back-fill OWED (X-AUT-012 class).
Gate is self-validating: FSM send/ack/timeout-retransmit control + reorder/loss/dup data plane,
with a neg-control (a broken pass-through would deliver out-of-order -> RED).
dependencies 1 imports · 0 importers
imports: _pe_dchan_arq.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
| none |
functions
| 14 | func dr_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } called by 1: main |
| 15 | func dr_n(fd: i64, v: i64) -> i64 called by 1: main |
| 24 | func dp_recv(seq: i64, payload: i64, present: *i64, payl: *i64, base_box: *i64, WIN: i64, got: *i64, ng_box: *i64) -> i64 called by 1: main |
| 45 | func main(argc: i64, argv: *i64) -> i64 |