ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.KeepAlive.Examples

Synopsis

Documentation

keepAliveClientApply Source #

Arguments

:: forall acc (m :: Type -> Type). Monad m 
=> (acc -> acc) 
-> acc 
-> Int

count of number of requests

-> KeepAliveClient m acc 

A client which applies a function whenever it receives MsgKeepAliveResponse and returns the result.

keepAliveServerCount :: forall (m :: Type -> Type). Applicative m => KeepAliveServer m Int Source #

A server which counts number received of MsgKeepAlive.