ouroboros-network-0.1.0.1: A networking layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Network.Diffusion.P2P

Description

This module is expected to be imported qualified (it will clash with the Ouroboros.Network.Diffusion.NonP2P ).

Synopsis

Documentation

data TracersExtra ntnAddr ntnVersion ntnVersionData ntcAddr ntcVersion ntcVersionData resolverError m Source #

P2P DiffusionTracers Extras

nullTracers :: Applicative m => TracersExtra ntnAddr ntnVersion ntnVersionData ntcAddr ntcVersion ntcVersionData resolverError m Source #

data ArgumentsExtra m Source #

P2P Arguments Extras

Constructors

ArgumentsExtra

Fields

data AcceptedConnectionsLimit Source #

Policy which governs how to limit the number of accepted connections.

Constructors

AcceptedConnectionsLimit

Fields

data ApplicationsExtra ntnAddr m Source #

P2P Applications Extras

TODO: we need initiator only mode for Deadalus, there's no reason why it should run a node-to-node server side.

Constructors

ApplicationsExtra

Fields

data Interfaces ntnFd ntnAddr ntnVersion ntnVersionData ntcFd ntcAddr ntcVersion ntcVersionData resolver resolverError m Source #

Constructors

Interfaces

Fields

runM Source #

Arguments

:: forall m ntnFd ntnAddr ntnVersion ntnVersionData ntcFd ntcAddr ntcVersion ntcVersionData resolver resolverError. ( MonadAsync m, MonadEvaluate m, MonadFix m, MonadFork m, MonadLabelledSTM m, MonadTraceSTM m, MonadMask m, MonadThrow ( STM m), MonadTime m, MonadTimer m, Eq ( Async m Void ), Typeable ntnAddr, Ord ntnAddr, Show ntnAddr, Typeable ntnVersion, Ord ntnVersion, Show ntnVersion, Typeable ntcAddr, Ord ntcAddr, Show ntcAddr, Ord ntcVersion, Exception resolverError)
=> Interfaces ntnFd ntnAddr ntnVersion ntnVersionData ntcFd ntcAddr ntcVersion ntcVersionData resolver resolverError m

interfaces

-> Tracers ntnAddr ntnVersion ntcAddr ntcVersion m

tracers

-> TracersExtra ntnAddr ntnVersion ntnVersionData ntcAddr ntcVersion ntcVersionData resolverError m

p2p tracers

-> Arguments ntnFd ntnAddr ntcFd ntcAddr

configuration

-> ArgumentsExtra m

p2p configuration

-> Applications ntnAddr ntnVersion ntnVersionData ntcAddr ntcVersion ntcVersionData m

protocol handlers

-> ApplicationsExtra ntnAddr m

p2p protocol handlers

-> m Void