b12658
The update introduces typed request helpers for RPC communication, using a shared table (rpc_msg_types) to map commands to their respective request and response structs, ensuring type safety and eliminating per-command code. Client and server interactions are streamlined via dispatcher->call<CMD>() and rpc_serve<CMD>(), respectively. Validation is centralized: deserialize_tensor checks tensor parameters for validity, rpc_check_region replaces individual bounds checks, graph_compute validates graph structure in a single pass, and allocation failures now close connections instead of terminating the server. The wire format remains unchanged, and comments have been trimmed.


