Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHandshake before downloading file #1259
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
I am just passing and I saw this question... You can do a custom extension like shown here https://github.com/webtorrent/bittorrent-protocol#extension-api you can even look at my very (very) simple example here https://github.com/Robien/eth_reward/blob/master/index.js where I do an extension to exchange ethereum address between peers hope it helps |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of WebTorrent?
1.11.0 (0.98.20)
What operating system and Node.js version?
ubuntu 16.04 - v8.9.4
I didn't find a Q&A forum so I'll ask it here, sorry if it's not the place...
I'm trying to implement kind of handshake with one peer (the closest between all peer available) before downloading the file. I looked at the source code and tried to figure out where do I get the IP address and the port of the one I'm going to download from and where the one I'm going to download from know that I'm download from him.
I'll give an example for what I want, let's say I'm looking for torrent with
torrentIdwhich Node B has, I doclient.add(torrentId, opts, func...)and before Node B gives me the file he asks me 'You sure you wanttorrentId?` and only if I'll say yes I'll start downloading the file from him.Does someone know where should I'll look for?
Thanks and have a great day!