ouroboros-network-protocols-0.8.1.0: Ouroboros Network Protocols
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.Protocol.PeerSharing.Codec

Synopsis

Documentation

codecPeerSharing ∷ ∀ m peerAddress. MonadST m ⇒ (peerAddress → Encoding) → (∀ s. Decoder s peerAddress) → Codec (PeerSharing peerAddress) DeserialiseFailure m ByteString Source #

codecPeerSharingId ∷ ∀ peerAddress m. Monad m ⇒ Codec (PeerSharing peerAddress) CodecFailure m (AnyMessage (PeerSharing peerAddress)) Source #

maxTransmissionUnitWord Source #

We assume that a TCP segment size of 1440 bytes with initial window of size 4. This sets upper limit of 5760 bytes on each message of peer sharing protocol, which means request and response should be done in a single RTT

byteLimitsPeerSharing ∷ (bytes → Word) → ProtocolSizeLimits (PeerSharing peerAddress) bytes Source #