rustp2p

Crates.iorustp2p
lib.rsrustp2p
version0.1.15
sourcesrc
created_at2024-09-14 02:51:26.835886
updated_at2024-10-31 08:26:22.817155
descriptionA decentralized p2p library powered by Rust, which is devoted to simple use.
homepage
repositoryhttps://github.com/rustp2p/rustp2p
max_upload_size
id1374382
size228,472
(xmh0511)

documentation

README

A decentralized p2p library powered by Rust, which is devoted to simple use.

Crates.io rustp2p

Features

  1. UDP hole punching for both Cone and Symmetric Nat

  2. TCP hole punching for NAT1

Description

For connecting two peers, all you need to do is to give the configuration as done in the example. In short, provide a peer named C, peer A and B can directly connect to C, then A and B will find each other by C, A and C can directly connect by hole-punching, the whole process is done by this library. If two peers D and F cannot directly connect via hole-punching, this library can find the best link for indirectly connection(i.e. through some middle nodes).

Commit count: 232

cargo fmt