Registry / networking / libp2prs-tcp

libp2prs-tcp

JSON →
library0.3.0rscratesunverified

TCP/IP transport protocol for libp2p.

# Cargo.toml [dependencies] libp2prs-tcp = "0.3.0"
INSTALL
IMPORT
SIG · LIBP2PRS-TCP
L
libp2prs-tcp
networkingrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TcpTransport
use libp2prs_tcp::TcpTransport;

Creates a TCP transport listener for libp2p.

use libp2prs_tcp::TcpTransport; use libp2p::core::transport::Transport; let transport = TcpTransport::new(); let addr = "/ip4/127.0.0.1/tcp/0".parse().unwrap(); let listener = transport.listen_on(addr).unwrap();
Debug
Known issues
gotchaRequires the libp2p core crate for Transport trait.
fix
Add libp2p as a dependency.
affects: >=0.1.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
libp2prs-tcp — cargo add libp2prs-tcp · libregistry