Expand description
Network access compatibility
Contains types and traits used by HotShot
to abstract over network access
Structs§
- Asynchronous
Network - An asynchronous network. Packets may be dropped entirely
or delayed for arbitrarily long periods
probability that packet is kept =
keep_numerator
/keep_denominator
packet delay is obtained by sampling from a uniform distribution betweendelay_low_ms
anddelay_high_ms
, inclusive - Chaos
Network - A chaotic network using all the networking calls
- Data
Request - A request for some data that the consensus layer is asking for.
- Partially
Synchronous Network - An partially synchronous network. Behaves asynchronously until some arbitrary time bound, GST, then synchronously after GST
- Perfect
Network - ideal network
- Synchronous
Network - A synchronous network. Packets may be delayed, but are guaranteed
to arrive within
timeout
ns
Enums§
- Broadcast
Delay - When a message should be broadcast to the network.
- Network
Change - Changes that can occur in the network
- Network
Error - Errors that can occur in the network
- Push
CdnNetwork Error - Centralized server specific errors
- Request
Kind - Underlying data request
- Response
Message - A response for a request.
SequencingMessage
is the same as other network messages The kind of messageM
is determined by what we requested TODO: PutFound
content in aBox
to make enum smaller - Topic
- Used when broadcasting messages
- Transmit
Type - the type of transmission
Traits§
- Connected
Network - represents a networking implmentration exposes low level API for interacting with a network intended to be implemented for libp2p, the centralized server, and memory network
- Id
- Trait that bundles what we need from a request ID
- Network
Reliability - interface describing how reliable the network is
- Testable
Networking Implementation - Describes additional functionality needed by the test network implementation
- View
Message - a message
Type Aliases§
- Async
Generator - A channel generator for types that need asynchronous execution