Do you have any samples of Rust for P2P communication?

Asked 1 years ago, Updated 1 years ago, 290 views

As per the title, do you have any samples of Rust for P2P communication?

https://docs.rs/libp2p/0.31.1/libp2p/
This seems to be the case, but it is very difficult to understand in English...

First, I would like to connect the two computers to send and receive data, so
I would appreciate it if you could give me that much code.

Also, I would like to try real-time voice calls in the end, but is Rust suitable?
I'd like to make something with a lower latency than WebRTC.

rust p2p

2022-09-30 21:49

1 Answers

In Rust's project, the sample source is supposed to be in a directory called examples, so you should look for it first.
For libp2p

https://github.com/libp2p/rust-libp2p/tree/master/examples

That's right.
For example,

https://github.com/libp2p/rust-libp2p/blob/master/examples/ping.rs

Is the simplest example of communication?


2022-09-30 21:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.