ouroboros-network-framework-0.1.0.1
Safe Haskell None
Language Haskell2010

Ouroboros.Network.Protocol.Handshake.Server

Synopsis

Documentation

handshakeServerPeer :: Ord 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 .