ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.BlockFetch.Direct

Synopsis

Documentation

direct :: forall block point m a b. Monad m => BlockFetchClient block point m a -> BlockFetchServer block point m b -> m (a, b) Source #

Run BlockFetchClient and BlockFetchServer directly against each other. This includes running it in any pure monad (e.g. Identity), and return the result of client and the server.

directPipelined :: forall block point m a b. Monad m => BlockFetchClientPipelined block point m a -> BlockFetchServer block point m b -> m (a, b) Source #

Run a pipelined client against a server, directly, and return the result of both client and the server.