Thursday, August 5, 2010

Tad tired with Bittorrent/Firefox

Last night added:
  • timers to keep in contact with Tracker after first call (prior to this, called Tracker once)
  • set a minimum interval for the above to 2 minutes, otherwise uses the interval received from the tracker
  • will now retry a disconnected peer if it appears in a tracker response received after a 10 minute cool down.
  • notification on completed torrent (alert)
  • if Firefox is shutdown, saves state of torrent download to a status file in the folder the torrent is downloading to
  • if a .torrent is opened, and then chosen to download to a folder with a status file that matches the infohash of the torrent, it will resume from the state in the status file.
  • timer for keepalive with peer
  • used existing counters for download/upload/remaining bytes
  • informing peers of completed pieces (sending it on keepalive, only informing if the peer doesn't have the piece)
Obvious missing things:
  • Listening to port (no server started or even implemented yet). Would like to listen on one port for multiple torrents.
  • No ability to control downloading (ie. stop it) except closing browser. Would like to use download manager.

No comments:

Post a Comment