Expand description
Implementation of the transport protocol.
We use the Noise XK handshake pattern to establish an encrypted stream with a remote peer.
The handshake itself is implemented in the external cyphernet and netservices crates.
Modules§
Structs§
- Frame
- Protocol frame.
- Stream
Id - Identifies a (multiplexed) stream.
- Wire
- Wire protocol implementation for a set of peers.
Enums§
- Address
Type - Address type.
- Control
- Control message used internally between workers, users, and the service.
- Error
- Frame
Data - Frame payload.
- Invalid
- Message
Type - Message type.
Constants§
- DEFAULT_
CONNECTION_ TIMEOUT - Default time to wait until a network connection is considered inactive.
- DEFAULT_
DIAL_ TIMEOUT - Default time to wait when dialing a connection, before the remote is considered unreachable.
- MAX_
INBOX_ SIZE - Maximum size of a peer inbox, in bytes.
- NOISE_
XK - NoiseXK handshake pattern.
Traits§
Functions§
Type Aliases§
- Size
- The default type we use to represent sizes on the wire.
- Wire
Reader - Peer session type (read-only).
- Wire
Session - Peer session type.
- Wire
Writer - Peer session type (write-only).