ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.PeerSharing.Examples

Synopsis

Documentation

peerSharingClientCollect :: forall peer (m :: Type -> Type). Monad m => [PeerSharingAmount] -> PeerSharingClient peer m [peer] Source #

A client which collects answers whenever it receives MsgSharePeers and returns the result.

peerSharingServerReplicate :: forall (m :: Type -> Type). Monad m => Fun Word8 Int -> PeerSharingServer Int m Source #

A server which counts number received of MsgPeerShareRequest.