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.
pull_from
Hello then pull every roster member the peer advertised, applying pages and acking.
start_node
Start a sync node on SYNC_PROFILE.