network-transport-inmemory-0.5.4: In-memory instantiation of Network.Transport
Safe HaskellNone
LanguageHaskell2010

Network.Transport.InMemory.Debug

Description

Miscelanteous functions for debug purposes.

Synopsis

Documentation

breakConnection Source #

Arguments

:: TransportInternals 
-> EndPointAddress

From connection

-> EndPointAddress

To connection

-> String

Error message

-> IO () 

Function that simulate failing connection between two endpoints, after calling this function both endpoints will receive ConnectionEventLost message, and all LocalConnectionValid connections will be put into LocalConnectionFailed state.