network-mux
Safe HaskellNone
LanguageHaskell2010

Network.Mux.Bearer.AttenuatedChannel

Contents

Synopsis

Documentation

data AttenuatedChannel (m :: Type -> Type) Source #

An AttenuatedChannel supports:

  • attenuation applied after reading a message from QueueChannel;
  • two-way close handshake with 120s timeout. Read side is closed as soon as an internal MsgClose is received, write side has to be closed explicitly.

Constructors

AttenuatedChannel 

Fields

data Attenuation Source #

Attenuation of a channel.

data QueueChannel (m :: Type -> Type) Source #

QueueChannel is the low level bearer used by the simulated snocket.

Each read / write queues can be closed independently. Read queue is closed once MsgClose is read from the queue; dually, write queue is closed once MsgClose is written.

echoQueueChannel :: forall (m :: Type -> Type). MonadSTM m => STM m (QueueChannel m) Source #

Trace

Utils