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