types of filelists

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
futti
Posts: 4
Joined: 2003-07-27 03:00
Location: mostly at the computer
Contact:

types of filelists

Post by futti » 2003-07-27 03:14

I'm making this DC client in PHP. I hope some of you can answer my questions about filelists in DC.

What formats are the filelists in?
I know about the .bz2 type of list but I'm not sure with the .dclst. Do I need both?

Any answers migth help me out some...

cyberal
Posts: 360
Joined: 2003-05-16 05:42

Post by cyberal » 2003-07-27 04:46

umm, isn't the .bz2 a compressed .dclst ?
http://whyrar.omfg.se - Guide to RAR and DC behaviour!
http://bodstrom.omfg.se - Bodströmsamhället, Länksamling om hoten mot vår personliga integritet

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

Post by TheParanoidOne » 2003-07-27 05:03

No, it's not. A .bz2 decompresses into a plain text file whereas a .DcLst file is binary.

Try it yourself.
The world is coming to an end. Please log off.

DC++ Guide | Words

futti
Posts: 4
Joined: 2003-07-27 03:00
Location: mostly at the computer
Contact:

Post by futti » 2003-07-27 06:58

TheParanoidOne wrote:No, it's not. A .bz2 decompresses into a plain text file whereas a .DcLst file is binary.

Try it yourself.
Binary? What does that mean? How can I generate/make one? And how do I open it?

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

Post by GargoyleMT » 2003-07-27 11:00

futti wrote:Binary? What does that mean? How can I generate/make one? And how do I open it?
Please check the DC++ source. ;) I believe it involves Huffman encoding somehow, and in the 5 minutes alloted to answer this question, I couldn't find any documents on the reverse engineering of the file lists. :)

Gumboot
Posts: 22
Joined: 2003-01-15 20:08
Location: New Zealand

Post by Gumboot » 2003-07-28 09:27

I posted details and source code for the huffman scheme used in .dclst files a while ago. See here.

ZXer
Posts: 1
Joined: 2004-05-16 07:21

Post by ZXer » 2004-07-16 14:22

Hi!

Does anyone have some code to decompress .bz2 files? (I would prefer Pascal (Deplhi) or C if possible...)

thanks

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

Post by TheParanoidOne » 2004-07-16 14:44

For C, you could use the bzip2 library which is part of DC++. For Delphi, I'm sure you could find something via Google.
The world is coming to an end. Please log off.

DC++ Guide | Words

Locked