Expand description
Mesh accept loop and seed-connect loop (P3-K0).
Moved out of boot.rs unchanged in behaviour so a machine mesh
service can reuse them. serve_listener owns the per-connection
Noise responder handshake and the bidirectional pump;
connect_seeds dials the configured seed peers as Noise initiator.
Structs§
- Seed
Spec - One configured seed: the address to dial and, when the operator pinned
it, the node id the seed must claim. Written
addroraddr#node-id.
Functions§
- connect_
seeds - Dial each seed peer in its own task (Noise initiator when
noiseis set) and register it withruntime. Returns immediately. - parse_
seed - Parse one
seed_peersentry (addroraddr#node-id). - seed_
specs - The seeds to dial: parsed, unusable entries skipped with a warning, and one entry per address (the first wins; a different pin on a repeat is reported, not honoured).
- serve_
listener - Accept connections on
listenerforever, pumping each throughruntime. Spawn this on a task; it never returns. - serve_
listener_ with serve_listenerwith explicitLimits(tests use short ones).- transport_
for - Build the transport for a
kernel.mesh.transportname.