libp2p-hs-0.1.0.0: Haskell implementation of the libp2p networking stack
Safe HaskellNone
LanguageGHC2021

LibP2P.Transport

Description

Transport abstraction for libp2p.

Defines the record-of-functions pattern for transport-agnostic connection management. Stream transports produce a byte stream for the standard security/muxer upgrade; native multiplexed transports such as QUIC provide an already authenticated stream multiplexer.

Synopsis

Documentation

data ConnectionEndpoint Source #

The I/O endpoint established by a transport.

data NativeMuxer Source #

A transport-native authenticated stream multiplexer.

data RawConnection Source #

A connection established by a transport.

TCP and relayed connections carry an unencrypted byte stream. QUIC carries a TLS-authenticated native multiplexer and therefore bypasses Noise/Yamux.

data Listener Source #

A listener that accepts inbound connections.

Constructors

Listener 

data Transport Source #

Transport provides dial/listen capabilities for a specific protocol.