Comments (7)
The torrentSession struct has a field "peers", which is type "map[string]*peerState". This is a map from a string representation of a peer address (e.g. "173.194.123.37:1213") to a struct that stores the peer's current state.
from taipei-torrent.
Thank you. On a related note, how do I control upload\download limits?
from taipei-torrent.
the upload/download ratio is input as one of the command line arguments. Look for the "seedRatio" flag in main.go.
from taipei-torrent.
One more question and I will stop bothering you. How do I add torrent from magnet link?
from taipei-torrent.
No bother. From the command-line, just add the magnet link (between quotes) instead of a filepath.
Example: "magnet:?xt=urn:btih:bbb6db69965af769f664b6636e7914f8735141b3"
Here's how it works in a nutshell: Main.go parses the command-line flags, and passes the leftover arguments to RunTorrents. Then RunTorrents calls a NewTorrentSession with each argument string. Finally, NewTorrentSession checks the argument string to determine if it's a magnet link or a filepath.
from taipei-torrent.
Thank you. It is all much clearer now.
from taipei-torrent.
Always glad to help.
from taipei-torrent.
Related Issues (20)
- Feature Request: Support WebTorrent HOT 1
- Leachers seem to prefer seeders, is that correct behavior? HOT 3
- "Rejecting peer because already have a peer with the same id" after node restart HOT 2
- Killed process can leave corrupted resume file.
- Torrent session not properly torn-down on loading error.
- This project does not implement "rarest first" algorithm
- Usually have "send a bad piece" error HOT 1
- have it implementation bep_0009? HOT 1
- sorry for a problem
- need help!!!
- add http stream Features pls
- Integration with blockchain (tendermint) HOT 1
- keepalived msg, empty msg, also read msg len: 1, why do this? HOT 6
- Request: Status update in-place
- Torrent file created from magnet link can't be loaded.
- Compartmentalization/files API simplification HOT 3
- Incorrect download size reported after client-side restart during the download process
- install error HOT 1
- Skip files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taipei-torrent.