ouroboros-network-framework
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.Handshake.Server

Synopsis

Documentation

handshakeServerPeer :: forall vNumber vData r (m :: Type -> Type). Ord vNumber => VersionDataCodec Term vNumber vData -> (vData -> vData -> Accept vData) -> (vData -> Bool) -> Versions vNumber vData r -> Server (Handshake vNumber Term) 'NonPipelined ('StPropose :: Handshake vNumber Term) m (Either (HandshakeProtocolError vNumber) (HandshakeResult r vNumber vData)) Source #

Server following the handshake protocol; it accepts highest version offered by the peer that also belongs to the server versions.