Function libp2p::tokio_development_transport[][src]

pub fn tokio_development_transport(
    keypair: Keypair
) -> Result<Boxed<(PeerId, StreamMuxerBox)>>
Expand description

Builds a Transport based on TCP/IP that supports the most commonly-used features of libp2p:

  • DNS resolution.
  • Noise protocol encryption.
  • Websockets.
  • Both Yamux and Mplex 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.