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

Network.LibP2P.Transport.Transport

Description

Transport abstraction for libp2p.

Defines the record-of-functions pattern for transport-agnostic connection management. Each transport (TCP, QUIC, etc.) provides a Transport value with diallistencanDial implementations.

Synopsis

Documentation

data RawConnection Source #

A raw (unencrypted, un-muxed) connection from a transport. Provides byte-level I/O via StreamIO, plus address info and cleanup.

Constructors

RawConnection 

Fields

data Listener Source #

A listener that accepts inbound connections.

Constructors

Listener 

Fields

data Transport Source #

Transport provides dial/listen capabilities for a specific protocol.

Constructors

Transport 

Fields