Replies: 1 comment 8 replies
-
Yamux is handled implicitly for you, you don't need to deal with it.
You need to create a separate protocol for that! See https://github.com/libp2p/rust-libp2p/tree/master/examples/file-sharing for some point-to-point communication using |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I run the dcutr example with relay-server , and both of client nodes receive ConnectionEstablished event successfully. Next step I want to send something like "hello world" from one client to the other. But I don't know how to do that. I can't find any function in dcutr::Behaviour for sending/receiving data.
Could anyone told me how to do that?
Further more, Can anyone provide some guidance or examples on how to use yamux to create multiple streams after establishing a connection with DCUTR?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions