News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Programming Challenge: DCE Device: Torrent Downloader PlugIn

Started by tschak909, June 29, 2009, 08:33:08 PM

Previous topic - Next topic

darrenmason

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

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


tschak909


tschak909

I'm bumping this up to try and generate more interest.

-Thom

fastie81

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

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


david_a_dawson

Quote from: tschak909 on August 18, 2009, 05:33:48 AM
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

Did this ever get finished? I'm looking for a simple programming exercise to learn more about DCE.
My Setup: [url=http://wiki.linuxmce.org/index.php/User:Aviator]http://wiki.linuxmce.org/index.php/User:Aviator[/url]

tschak909

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