ouroboros-network-0.1.0.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

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

Constructors

TracersExtra 

Fields

nullTracersApplicative 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

runTracers RemoteAddress NodeToNodeVersion LocalAddress NodeToClientVersion IOTracersExtra RemoteAddress NodeToNodeVersion NodeToNodeVersionData LocalAddress NodeToClientVersion NodeToClientVersionData IOException IOArguments Socket RemoteAddress LocalSocket LocalAddressArgumentsExtra IOApplications RemoteAddress NodeToNodeVersion NodeToNodeVersionData LocalAddress NodeToClientVersion NodeToClientVersionData IOApplicationsExtra RemoteAddress IOIO Void Source #

Main entry point for data diffusion service. It allows to:

  • connect to upstream peers;
  • accept connection from downstream peers, if run in InitiatorAndResponderDiffusionMode.
  • runs a local service which allows to use node-to-client protocol to obtain information from the running system. This is used by 'cardano-cli' or a wallet and a like local services.

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

Constructors

Interfaces 

Fields

runM Source #

Arguments

∷ ∀ 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 

type NodeToNodePeerConnectionHandle (mode ∷ MuxMode) ntnAddr m a = PeerConnectionHandle mode ntnAddr ByteString m () a Source #