Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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))
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
.