Crates.io | rustp2p |
lib.rs | rustp2p |
version | 0.1.15 |
source | src |
created_at | 2024-09-14 02:51:26.835886 |
updated_at | 2024-10-31 08:26:22.817155 |
description | A decentralized p2p library powered by Rust, which is devoted to simple use. |
homepage | |
repository | https://github.com/rustp2p/rustp2p |
max_upload_size | |
id | 1374382 |
size | 228,472 |
A decentralized p2p library powered by Rust, which is devoted to simple use.
UDP hole punching for both Cone and Symmetric Nat
TCP hole punching for NAT1
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).