ouroboros-network-framework-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.Handshake.Server

Synopsis

Documentation

handshakeServerPeerOrd vNumber ⇒ VersionDataCodec Term vNumber vData → (vData → vData → Accept vData) → Versions vNumber vData r → Peer (Handshake vNumber Term) AsServer StPropose m (Either (HandshakeProtocolError vNumber) (r, vNumber, vData)) Source #

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