ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.Handshake.Direct

Synopsis

Documentation

pureHandshake :: Ord vNumber => (vData -> vData -> Maybe vData) -> Versions vNumber vData r -> Versions vNumber vData r -> (Maybe r, Maybe r) Source #

Pure computation which serves as a reference implementation of the Handshake protocol. Useful for testing handshakeClientPeer against handshakeServerPeer using connect