-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need help o(╥﹏╥)o #406
Comments
@Ice-Storm Have a look at libp2p/go-libp2p-examples repo. Some example that support dht are under review look at chat-with-rendezvous and chat-with-tor. They both support kad-dht and peer discovery. |
Thank you very much!! |
@upperwal This example help me a lot, But i still confused that how to implement 'root' node. |
@Ice-Storm Creating a new bootstrapping node is as simple as starting a new node with DHT support [atleast for now]. @Stebalien can you please confirm this. @florianlenz is working on a bootstrap module plus the community is also working on a new rendezvous protocol for the same. Maybe we can have a sample code in examples to start a bootstrap node. |
@upperwal thank you. I am trying it out. |
@upperwal Sorry to bother you. I just had a quick question. When I run the chat example, I find that the message does not broadcast when multiple terminals are started. like this |
Yeah, it won't broadcast and your message might be going to either one of the peer/terminal at a time. This is happening because each peer opens a new stream for chat and starts a new goroutine to read from A better chat implantation would be to use a pubsub model where peers can subscribe to chat rooms and everyone in that room will receive the message. Another way would be to start one goroutine which read stdin and copy the message to all connected peers stream. |
Thank you. I'm study that how to constructor p2p network and related knowledge. you replay help me a lot. i hope to make more contributions to this project. |
I don't know how to combine with libp2p-kad-dht. confused me for days. how to find a peer? Can you give me a demo?
o(╥﹏╥)o
The text was updated successfully, but these errors were encountered: