Ouroboros.Network.Protocol.PeerSharing.Examples
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.
MsgSharePeers
peerSharingServerReplicate :: forall (m :: Type -> Type). Monad m => Fun Word8 Int -> PeerSharingServer Int m Source #
A server which counts number received of MsgPeerShareRequest.
MsgPeerShareRequest