Skip to content
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

mechanism for adding peers manually #75

Open
hackergrrl opened this issue Oct 9, 2018 · 7 comments
Open

mechanism for adding peers manually #75

hackergrrl opened this issue Oct 9, 2018 · 7 comments

Comments

@hackergrrl
Copy link
Member

Some toronto mesh folks (tomeshnet/prototype-cjdns-pi#213) would appreciate this, since it would let them bypass dht and lan routing (since they're usng cjdns) and just connect to known peers directly.

This could be stored in a ${CONFIG}/cabal/config json file, or similar. cabal-client would also be a good place for this.

@makew0rld
Copy link

Thanks! I'd like to add that a way to list currently connected peers, and to drop connections would also be nice. A dynamic way to do all these things would be better then something in a config, as available peers can change often, and it'd be nice to look at who can be peered with at boot and every so often, and then be able to add them without restarting cabal, if that's possible.

@makew0rld
Copy link

Also, what would happen when you connect with peers who don't share any cabals with you? Cause with the bittorrent DHT you can dynamically request peers for each cabal but with this manual method, it might be nice to keep the peers to manually add in case they have messages to exchange later, even if they don't now.

@hackergrrl
Copy link
Member Author

hackergrrl commented Oct 13, 2018 via email

@makew0rld
Copy link

Thinking about this again, this is probably too hacky and difficult to be a long term solution. And so I think manual connections can be useful for testing, but we need a dht in the long term. Proving that they have access to the cabal is good, but not a top priority. All the stuff I was saying about keeping peers and stuff doesn't make sense if it's just for testing either. What I said in my first message is probably best: a way to add peers even when the client is already running, by ip address. And then a way to drop them and list the ones who are connected, again preferably as a command separate from the client. Is that ok? Sorry for doubling back on you there.

@hackergrrl
Copy link
Member Author

hackergrrl commented Oct 14, 2018 via email

@makew0rld
Copy link

makew0rld commented Dec 10, 2018

Any development on this so far? Don't mean to be annoying, I know it's not a priority. Thanks! @noffle

@cblgh
Copy link
Member

cblgh commented Jun 14, 2019

just want to say we're still thinking about this, and it just came up in a discussion! no implementation in sight yet tho, but holepunchto/hyperdht#4 shows others are thinking about features related to this as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants