rustp2p

Crates.iorustp2p
lib.rsrustp2p
version0.1.18
sourcesrc
created_at2024-09-14 02:51:26.835886
updated_at2024-12-05 03:05:09.397477
descriptionA decentralized p2p library powered by Rust, which is devoted to simple use.
homepage
repositoryhttps://github.com/rustp2p/rustp2p
max_upload_size
id1374382
size255,284
(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).

Example

Commit count: 262

cargo fmt