Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
PingOpts | |
|
data NodeVersion Source #
Instances
ToJSON NodeVersion Source # | |
Defined in Cardano.Network.Ping toJSON :: NodeVersion -> Value # toEncoding :: NodeVersion -> Encoding # toJSONList :: [NodeVersion] -> Value # toEncodingList :: [NodeVersion] -> Encoding # omitField :: NodeVersion -> Bool # | |
Show NodeVersion Source # | |
Defined in Cardano.Network.Ping showsPrec :: Int -> NodeVersion -> ShowS # show :: NodeVersion -> String # showList :: [NodeVersion] -> ShowS # | |
Eq NodeVersion Source # | |
Defined in Cardano.Network.Ping (==) :: NodeVersion -> NodeVersion -> Bool # (/=) :: NodeVersion -> NodeVersion -> Bool # | |
Ord NodeVersion Source # | |
Defined in Cardano.Network.Ping compare :: NodeVersion -> NodeVersion -> Ordering # (<) :: NodeVersion -> NodeVersion -> Bool # (<=) :: NodeVersion -> NodeVersion -> Bool # (>) :: NodeVersion -> NodeVersion -> Bool # (>=) :: NodeVersion -> NodeVersion -> Bool # max :: NodeVersion -> NodeVersion -> NodeVersion # min :: NodeVersion -> NodeVersion -> NodeVersion # |
data HandshakeFailure Source #
UnknownVersionInRsp Word | |
UnknownKey Word | |
UnknownTag Word | |
VersionMissmath [Word] | |
DecodeError Word String | |
Refused Word String |
Instances
Show HandshakeFailure Source # | |
Defined in Cardano.Network.Ping showsPrec :: Int -> HandshakeFailure -> ShowS # show :: HandshakeFailure -> String # showList :: [HandshakeFailure] -> ShowS # |
data InitiatorOnly Source #
Instances
pingClient :: Tracer IO LogMsg -> Tracer IO String -> PingOpts -> [NodeVersion] -> AddrInfo -> IO () Source #
handshakeDec :: Decoder s (Either HandshakeFailure [NodeVersion]) Source #
handshakeReq :: [NodeVersion] -> Bool -> ByteString Source #
isSameVersionAndMagic :: NodeVersion -> NodeVersion -> Bool Source #