Skip to main content

Module net

Module net 

Source
Expand description

The pull protocol running on a weirdnet_net::Node (/weirdnet/sync/1).

The official WeirdBrains relay must not store pages; this module only exchanges sealed envelopes between the user’s own nodes.

Structs§

SyncHandler
Request-response handler that talks Envelope on SYNC_PROFILE.
SyncState
Mutable state a sync node answers from and applies pages into.

Functions§

node_config
Listen with the in-memory transport (tests) or the caller’s config, 256 KiB caps.
observe
Advance our clock past the newest op held, so the next local write orders after everything this node has seen (a visit after a remote clear, say).
pull_chunks
Pull the chunks of typ (for crate::Limits::eager_chunks off, or to retry): the same session as pull_from, for the companion type chunk_type(typ).
pull_from
Hello then pull every roster member the peer advertised, applying pages and acking.
start_node
Start a sync node on SYNC_PROFILE.