MyList.DcLst decoding

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
darcone
Posts: 4
Joined: 2004-07-13 16:38
Location: Sweden
Contact:

MyList.DcLst decoding

Post by darcone » 2004-07-13 17:29

Hi,

I am attempting to write a MyList.DcLst class, but I can´t find any info on how the codewords are stored and delimited etc. Anyone that knows anything about this?
I am familiar with huffman.

Sincerely

Piotr B

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-07-13 17:41

What language are you using?
The world is coming to an end. Please log off.

DC++ Guide | Words

darcone
Posts: 4
Joined: 2004-07-13 16:38
Location: Sweden
Contact:

Post by darcone » 2004-07-13 20:40

I am using Java, I have been able to transfer files etc etc but after hours of reverse engineering I haven´t been able to figure the huffman coding :-/

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-07-14 04:26

Have a look here: http://dcplusplus.sourceforge.net/forum ... ht=huffman

The version I linked to doesn't actually work "correctly", but files created by it can be opened in DC++. I'm not sure whether or not files created by DC++ can be opened by it though.

More details of th encoding scheme itself can be found here:
http://dcplusplus.sourceforge.net/forum ... php?t=1882

I think the difficulty lies in the fact that the particular encoding scheme used uses unsigned data types which are not available in Java and are therefore fiddly to work with.

Personally I would abandon the format completely and just stick with the more open and extensible XML file lists. But that's just me.

If you make any progress, please post back the results as others may find it useful.
The world is coming to an end. Please log off.

DC++ Guide | Words

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-07-14 10:53

TheParanoidOne wrote:Personally I would abandon the format completely and just stick with the more open and extensible XML file lists. But that's just me.
Seconded. Support XML file lists.

You need to at least support the generation of .DcLst files, and there are existing Java DC clients that you can look at for code:
http://sourceforge.net/projects/javadc/
http://sourceforge.net/projects/javadc2/
http://sourceforge.net/projects/javadc3/

Locked