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

BitTorrent Bep 5: DHT Protocol #90

Closed
casey opened this issue Jan 30, 2020 · 1 comment
Closed

BitTorrent Bep 5: DHT Protocol #90

casey opened this issue Jan 30, 2020 · 1 comment

Comments

@casey
Copy link
Owner

casey commented Jan 30, 2020

BEP 5

The only metadata-related functionality here is supporting the top-level nodes key, which contains a list of host and port pairs to use to bootstrap the DHT.

Intermodal should support a --node or --dht-nodeflag that takesHOST:PORT` pairs.

Currently, this is blocked on toby/serde-bencode#17, which prevents serializing a list of tuples in a struct, which is the obvious way to represent the value of the nodes key: Vec<(String, u16)>

https://github.com/toby/serde-bencode looks unmaintained, so I might switch to a different library.

https://github.com/P3KI/bendy looks good and well-maintained, and although they don't have serde support, it probably wouldn't be hard to write, which seems like a better option than using an unmaintained crate.

@casey casey modified the milestones: eventually, Eventually, Soon Jan 30, 2020
@casey casey modified the milestones: soon, afoot Jan 30, 2020
@casey casey modified the milestones: soon, afoot Feb 6, 2020
@casey
Copy link
Owner Author

casey commented Feb 14, 2020

Done in #169.

@casey casey closed this as completed Feb 14, 2020
@casey casey modified the milestones: afoot, soon Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant