15 releases
0.1.15 | Oct 31, 2024 |
---|---|
0.1.14 | Oct 25, 2024 |
0.1.6 | Sep 23, 2024 |
#541 in Network programming
1,690 downloads per month
Used in net_link
310KB
8K
SLoC
A decentralized p2p library powered by Rust, which is devoted to simple use.
Features
- UDP hole punching for both Cone and Symmetric Nat
- 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).
Dependencies
~7–18MB
~255K SLoC