Function libp2p::tokio_development_transport
source ยท pub fn tokio_development_transport(
keypair: Keypair,
) -> Result<Boxed<(PeerId, StreamMuxerBox)>>
๐Deprecated: Use
libp2p::SwarmBuilder
instead.Available on non-WebAssembly and crate feature
tcp
and crate feature dns
and crate feature websocket
and crate feature noise
and crate feature yamux
and crate feature tokio
only.Expand description
Builds a Transport
based on TCP/IP that supports the most commonly-used features of libp2p:
- DNS resolution.
- Noise protocol encryption.
- Websockets.
- Yamux for substream multiplexing.
All async I/O of the transport is based on tokio
.
Note: This
Transport
is not suitable for production usage, as its implementation reserves the right to support additional protocols or remove deprecated protocols.