Crate libp2p_tcp

source ·
Expand description

Implementation of the libp2p libp2p_core::Transport trait for TCP/IP.

Usage

This crate provides a async_io::Transport and tokio::Transport, depending on the enabled features, which implement the libp2p_core::Transport trait for use as a transport with libp2p-core or libp2p-swarm.

Modules

async_ioasync-io
tokiotokio

Structs

The configuration for a TCP/IP transport capability for libp2p.
An abstract libp2p_core::Transport implementation.

Type Definitions

GenTcpConfigDeprecated
The configuration for a TCP/IP transport capability for libp2p.
TcpTransportDeprecatedasync-io
The type of a Transport using the async-io implementation.
TokioTcpTransportDeprecatedtokio
The type of a Transport using the tokio implementation.