The placement peer frames: F_PLACE (a placement change), F_FRAME (a frame's state and parts), F_INPUT (input to the program's owner)
$ sexc add @ajax/mesh-place-wire- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 04:09v/# 1 version
- drwxr-xr-x-Oct 27 04:09files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 04:09 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/mesh-mt ^0.1.0, @ajax/rust-fmt ^0.1.0, @ajax/mesh-place-mode ^0.1.0, @ajax/mesh-abi-base ^0.1.0, @ajax/mesh-abi-name ^0.1.0, @ajax/mesh-abi-placement ^0.1.0, @ajax/mesh-abi-place-ops ^0.1.0, @ajax/mesh-abi-peer-frames ^0.1.0, @ajax/mesh-abi-peer-sizes ^0.1.0
- dependents
- @ajax/mesh-peer-codec, @ajax/mesh-peer-link, @ajax/mesh-peer-relay, @ajax/mesh-place-compose, @ajax/mesh-placer
- keywords
- mesh alphaos fleet placement wire frames
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-place-wire
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-place-wire 2 3The placement peer frames, byte for byte as the Rust writes them: `F_PLACE` (a placement change: op, 4id, name, mode with its assignment, aux, then a state or a reason), `F_FRAME` (one frame's state and the 5parts its sender rendered), `F_INPUT` (input for a program's owner), and the 16-byte wire name. Each 6`*_rest_len` checks the body's declared length against its maximum before anything is read. 7 8## Ported from 9 10[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/place.rs`: 11`name16`, `name_of`, `PlaceMsg`, `FrameMsg`, `encode_input`, `input_len`, `PLACE_HEAD`, `FRAME_HEAD`, 12`INPUT_HEAD`, `AUX_AUTO`. 13 14## Tests 15 16`tests/wire.c`: the Rust's `frames_round_trip`, and the name checks of peer.rs `names_on_the_wire`. 17 18## Licence 19 20MIT. See the repository's LICENSE.