Author Topic: Programming Challenge: DCE Device: Torrent Downloader PlugIn  (Read 30204 times)

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #15 on: August 18, 2009, 05:52:29 am »
I have it about half working but have not looked at it for the last three weeks (or anything linuxmce really). Was hoping to get a few hours this week to have a play with it.
Long hours at work and family commitments mean it is always going to be down on the priorities for me.
Will post an update when I get a bit further.

Couple of questions from when I last looked at it. I was trying to work out what the best behaviour should be with the download. Should it complete the download in its own storage and then rely on different commands to move the content into the appropriate part of the repository or shoudl it attempt to do this itself and let updatemedia pick it up.
With the latter it will require a certain amount of metadata being sent either with the request or after the download is finished.
I will have a further look at the model for ripping a disc as this should probably work the same way.

Thom, I don't know that anyone else is working on it but happy to work with them if we want to move it a bit quicker.

Darren

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #16 on: August 18, 2009, 05:59:24 am »
look at the SCREEN_FileSave stuff, as well as the Copy Disc button in designer, note that these pass their parameters to the target command, so the download command should be able to extract a parameter for where to put the final file. The file should also be suffixed with something like .download, so that the system can determine if a file is being downloaded.

This can be used to show in orbiter's file list for example, if a file is being downloaded, and take them to the status screen.

-Thom

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #17 on: August 18, 2009, 06:03:46 am »
Will do , thanks

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #18 on: October 16, 2009, 05:31:14 pm »
Darren? any progress?

-Thom

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #19 on: November 04, 2009, 03:26:17 pm »
I'm bumping this up to try and generate more interest.

-Thom

fastie81

  • Veteran
  • ***
  • Posts: 136
  • SSDD
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #20 on: November 04, 2009, 09:19:25 pm »
Hi Thom

Is this only going to be a torrent client?
This would be nice but a download client will also be cool..
So I can just put in a url and username and password if required and then let the system download it.
Just want to know.
Chris

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #21 on: November 04, 2009, 10:37:19 pm »
Yeah sorry, happy for someone to look at it. To be quite honest - I havn't had a chance to even turn the dev computer on in the last few months...

Contact me if someone wants the stuff I had done to date.

Bub is starting to sleep more now so who knows I might have some time soon - but can't promise much.

Regards
Darren


PlatypusPedersen

  • Regular Poster
  • **
  • Posts: 43
  • Hugs?
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #22 on: January 10, 2010, 08:36:52 am »
Bumping this... maybe something for GSoC?

david_a_dawson

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #23 on: January 26, 2010, 11:44:05 pm »
is anyone still working on this?

-thom

How do all.

I've been developing a java implementation of the DCE protocol.

It's mostly functional, and covers the most used features of DCE.

Using this library, I've developed a bittorrent DCE device.

I've put together a device template, as suggested, with the addition of a download failed event.

The bittorrent functionality is built using the snark (http://www.threerings.net/code/snark/) library.

Seems ok, but quite flaky, so I think I'll swap it out at some point.


The only thing not yet implemented is adding status items to the Task List.  I'll look at this next.

Also, the java DCE lib isn't making use of any command/ ... other ref data, they are all magic numbers at the moment, so I'm going to write a script to generate a java enum for each class of reference data.

I can upload this code to somewhere after a little bit more polishing, where would be best? 

Cheerio.

David.

Aviator

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #24 on: December 15, 2010, 04:13:52 pm »
Did this ever get finished? I'm looking for a simple programming exercise to learn more about DCE.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Programming Challenge: DCE Device: Torrent Downloader PlugIn
« Reply #25 on: December 15, 2010, 04:21:25 pm »
No. Nobody took it.

But, dude, there are almost a hundred example DCE drivers all over our source tree that you can look at for examples in C++.

-Thom