ouroboros-network-framework-0.13.1.0: Ouroboros network framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.ConnectionManager.InformationChannel

Synopsis

Documentation

data InformationChannel a m Source #

Information channel.

Constructors

InformationChannel 

Fields

type InboundGovernorInfoChannel (muxMode ∷ MuxMode) initiatorCtx peerAddr versionData bytes m a b = InformationChannel (NewConnectionInfo peerAddr (Handle muxMode initiatorCtx (ResponderContext peerAddr) versionData bytes m a b)) m Source #

A Server control channel which instantiates to NewConnection and Handle.

It allows to pass STM transactions which will resolve to NewConnection. Server's monitoring thread is the consumer of these messages; there are two producers: accept loop and connection handler for outbound connections.

type OutboundGovernorInfoChannel peerAddr m = InformationChannel (peerAddr, PeerSharing) m Source #

Control Channel between Server and Outbound Governor.

Control channel that is meant to share inbound connections with the Peer Selection Governor. So the consumer is the Governor and Producer is the Server.