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

Network.LibP2P.Transport.TCP

Description

TCP transport implementation.

Provides diallisten for ip4...tcp... and ip6...tcp/... multiaddrs. Uses the network library for socket operations.

Synopsis

Documentation

newTCPTransport :: IO Transport Source #

Create a new TCP transport.

multiaddrToHostPort :: Multiaddr -> Either String (String, String) Source #

Extract (HostName, ServiceName) from a TCP multiaddr.

socketToStreamIO :: Socket -> StreamIO Source #

Convert a Socket to StreamIO.