Blogs

Torrent node type nearing completion

So there I was working on validating the data coming into the node and I started to look into the bencoding/decoding functions that were in the 4.7 module. I started to messing around with the functions that were implemented. I analyzed the data from bdec() which returns something similar to:

[announce] => Array (
[type] => string
[value] => http://torrent.linux.duke.edu:6969/announce
[strlen] => 46
[string] => 43:http://torrent.linux.duke.edu:6969/announce )

Validating uploaded files...

Tonight I have been focusing on getting the torrent node type to validate that a file is attached to the node and if not, throw an error alerting the user and do not let them submit until they have attached a torrent. I then started to look at more cases where the user may have attached a torrent, but now they are trying to remove it. While writing the validation functions for these cases I realized that I was being dense and that when the node is inserted I remove the attached torrent once I parse the data. So the only time there will be a torrent attached is never!

BitTorrent Module Weekly Update 2

What have I done this week??

Annouce.php work...

Today I continued work on announce.php. I have been looking at the BitTorrent module for Drupal 4.7 as guidance, and so far work seems to be progressing at a nice steady pace. I have setup the required GET keys for a minimal announce request. If you do not specify any of these keys an error is kicked back in bencoded format letting you know what went wrong. Part of this included reworking the error reporting system unifying three functions into one and updating documentation as I went along.

BitTorrent Module - Week 1

I cannot believe week one is over!

BitTorrent Tracker

The Drupal BitTorrent Tracker project looks to provide Drupal users the power of the BitTorrent protocol when moving large files from their website to their visitors. The main outcome of this project will be a BitTorrent “invisible tracker” that integrates with Drupal through a module. The module will allow for the addition and removal of torrents, IP address management (banning IP addresses or ranges) and statistical presentation concerning information about the tracker (current seeders, leechers, swarm speed, active torrents, etc.).

Syndicate content