skip to content
[readonly]

The frames between meshd and its MPS worker processes: a length, an op, its body

sh
$ sexc add @ajax/mesh-mps-wire
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 02:57v/# 1 version
  • drwxr-xr-x-Oct 27 02:57files/# the files of 0.1.0
latest
0.1.0, published Oct 27 02:57 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-text ^0.1.0, @ajax/mesh-check ^0.1.0
dependents
@ajax/mesh-mps, @ajax/mesh-mps-worker
keywords
mesh alphaos cuda mps wire protocol
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-mps-wire
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-mps-wire
2
3The frames between meshd and its `--isolation mps` worker processes: a u32 little-endian length (op + body), the op, its body; the W_* ops each way; frame reading with the 64 MiB bound; little-endian field helpers.
4
5## Ported from
6
7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/mps.rs (`W_*`, `frame`, `read_frame`, `u32_at`).
8
9## Tests
10
11`tests/wire.c`: the Rust's `frames` test through a pipe, a zero-length frame, EOF, and the u32/u64 fields.
12
13## Licence
14
15MIT. See the repository's LICENSE.