Answer the question
In order to leave comments, you need to log in
A simple torrent tracker with a rating?
To be even more precise, I’m directly interested in how to make a rating system (calculate which user distributed and downloaded how much), I don’t want to use such monsters as TBDev and other engines, it’s quite enough for me to learn how to attach a rating system to OpenTracker or Bitstorm. I want to make a tracker script where it will be possible to download without registration, but at the same time keep statistics for those who are already registered. Thanks for future tips
Answer the question
In order to leave comments, you need to log in
Look at the root tracker, as you can see, the TorrentPier engine ( torrentpier.info/ ) allows not only letting anonymous users download torrent files, but also specifying the size of the distributions for which it will be available. Perhaps you can see how it is implemented there.
The logic is something like this:
1. We look to see if the user who has contacted the announcer has a passkey (the key of a registered user). If not, then we simply return the list of peers and close the connection. If there is, then we continue.
2.1. If it was a started or completed command, or there was no command at all (and the session was opened with the started command before), then we save the data of the downloaded, uploaded and left parameters (all unsigned of the long type) into the current session.
2.2. If it was the stopped command, then we get general statistics (not sessions), we add the data of the current session to it, which were transferred to downloaded, uploaded and left. Delete the temporary session data from the table/memcache/etc.
If you need to explain something in more detail, write to ICQ or toad in the profile. Right now, in my free time (which, unfortunately, is not enough), I am writing a productive torrent tracker in Java (Play Framework). In fact, the tracker itself and a simple binding with statistics and registration are already ready, the principle of operation was taken from XBTT - namely, batch updating of data so as not to kill the database with a large number of requests. Now the most dreary thing remains - something like a CMS for downloading / uploading / searching / etc for torrents ...
See how it is implemented in other trackers? This is the best way, since the sources are open.
I don't want to use monsters like TBDev
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question