[solved] Problems to download

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
foux
Posts: 11
Joined: 2004-03-21 04:41

[solved] Problems to download

Post by foux » 2004-04-14 08:35

Hello, I'm writing a DC client in Java and I have a problem when I try to download a file from a user using DC++ (works fine if the user has dcgui_qt. Here's my complete download procedure (M stands for me, O for other) :

Code: Select all

M->O : $MyNick robert
M->O : $Lock EXTENDEDPROTOCOLDCEDCEDCEDCEDCEDCE Pk=DtCClientv1.0BYFOUXANDWIP
O->M : $MyNick Fanfan
O->M : $Lock EXTENDEDPROTOCOLABCABCABCABCABCABC Pk=DCPLUSPLUS0.181ABCABC
O->M : $Supports BZList
O->M : $Direction Upload 17762
O->M : $Key .....
M->O : $Support BZList
M->O : $Direction Download 3788
M->O : $Key ....
M->O : $Get e:\EasyDivX_082.exe$1
and then, .... nothing happens, I didn't get a $FileLength command, nor than anything else. If I try to get MyList.DcLst instead of a file, everything works perfectly

I hop someone wii be able to help me

Foux
Last edited by foux on 2004-04-15 08:09, edited 1 time in total.

IntraDream
Posts: 32
Joined: 2003-12-12 14:28
Location: FL,USA
Contact:

Post by IntraDream » 2004-04-14 13:41

you removed | just for this post or do u not send it. ?

Also if thats exact data looks like you are sending 'Support' and not 'Supports'
im not sure that would affect the download in this situation but you may wanna look into that

Tim-

foux
Posts: 11
Joined: 2004-03-21 04:41

Post by foux » 2004-04-14 14:29

I have only removed the | on the post, but I'm sending it with my client. I've changes my "$Support" to "$Supports" but unfortunately, it did'nt solve my problem

Fx

IntraDream
Posts: 32
Joined: 2003-12-12 14:28
Location: FL,USA
Contact:

Post by IntraDream » 2004-04-14 14:56

M->O : $MyNick MyNAme|
M->O : $Lock EXTENDEDPROTOCOLABCABCABCABCABCABC Pk=DCPLUSPLUS0.401ABCABC|
M->O : $Supports BZList |


O->M : $MyNick ThereName|
O->M : $Lock EXTENDEDPROTOCOLABCABCABCABCABCABC Pk=DCPLUSPLUS0.401ABCABC|


M->O : $Direction Download 2045|
M->O : $Key ---|


O->M : $Supports BZList MiniSlots XmlBZList GetTestZBlock GetZBlock |
O->M : $Direction Upload 22856|
O->M : $Key ---|


M->O : $Get Path\File.ext$1|

This is how my client sends seems to work maybee this will help...

Tim-

foux
Posts: 11
Joined: 2004-03-21 04:41

Post by foux » 2004-04-14 15:19

I've got he same problem in this order. What I don't understand is that I've got no problem de get MyList files, but I can't manage to get other files, dc++ isn't sending me the $FileLength

IntraDream
Posts: 32
Joined: 2003-12-12 14:28
Location: FL,USA
Contact:

Post by IntraDream » 2004-04-14 15:25

Id Recommend, use commview or some other packet sniffer and verify what order things are being sent. also change ur Lock/PK and use the same DC++ uses see if that makes a difference..

Tim-

foux
Posts: 11
Joined: 2004-03-21 04:41

Post by foux » 2004-04-14 17:00

I've used ethereal to capture the packets sent by dcgui (I'm under linux), I've change my lock and pk, nothings help, the dc++ client still disconnet just after I send the $Get command. I'm kind of stuck here....

IntraDream
Posts: 32
Joined: 2003-12-12 14:28
Location: FL,USA
Contact:

Post by IntraDream » 2004-04-14 17:09

ok my last suggestion. Make sure your not getting a $MaxedOut msg because then it will disconnect make sure your testing with people you know have an open slot. because even with no open slot most clients will upload a file list..

Tim-

foux
Posts: 11
Joined: 2004-03-21 04:41

Post by foux » 2004-04-14 17:23

No, (unfortunately) I'm not getting a $MaxedOut. If I snif the tcp packets, the client disconnects right after I've send the $Get

foux
Posts: 11
Joined: 2004-03-21 04:41

Post by foux » 2004-04-15 08:11

Ok, I've solved the problem. In fact, I was oppening a new connection with the client, and the previous one (from the MyList download) was still open, so the client kicks me out.

Thanks all for your help

Foux

Locked