Skip to main content

Module tunnel

Module tunnel 

Source

Structs§

TunnelSigner

Enums§

TunnelProtocol

Constants§

MAX_SERVER_IDX

Functions§

alias_of
bump_epoch
Every write that changes what snapshot would return has to bump the epoch, or the nodes keep serving the state they already hold. Models bump; the route that owns the commit then calls poke_nodes.
bump_epoch_if_node_on_mesh
bump_epoch_if_server_on_mesh
epoch
frontend_address
is_alias_shaped
poke_nodes
Tells every node on the mesh to pull the snapshot now rather than on its next poll. Must be called after the commit that bumped the epoch, or a node can win the race and re-read the state it already has. Batched under one key, so several bumps in a request collapse to one round of pokes, and spawned so the batch loop is not held for the length of the requests.
signer
snapshot