-
I am totally new to torrent. I want to share files among known machines.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Your best bet would be to use https://github.com/anacrolix/torrent/blob/master/cmd/torrent/serve.go and https://github.com/anacrolix/torrent/blob/master/cmd/torrent/download.go, which are implementations for the cmd/torrent subcommands serve and download. They show examples of building a metainfo, and then downloading from an infohash. If you configure it correctly with DHT (the default, but you can force it by removing trackers), then the discovery part of the process will be through the DHT. |
Beta Was this translation helpful? Give feedback.
Your best bet would be to use https://github.com/anacrolix/torrent/blob/master/cmd/torrent/serve.go and https://github.com/anacrolix/torrent/blob/master/cmd/torrent/download.go, which are implementations for the cmd/torrent subcommands serve and download. They show examples of building a metainfo, and then downloading from an infohash. If you configure it correctly with DHT (the default, but you can force it by removing trackers), then the discovery part of the process will be through the DHT.