MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Corruption/Error detection

 
Post new topic   Reply to topic    MLDonkey Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
oooOOOooo
neophyte


Joined: 20 Jan 2012
Posts: 3

PostPosted: Fri Jan 20, 2012 10:31 am    Post subject: Corruption/Error detection Reply with quote

I already posted this in the german forum but there was no answer so far. So I try my luck here:

I am looking for a technical description of the error/corruption detection with the ed2k protocol. I am interested in how MLDonkey detects when a client uploads wrong data. As far as I understand it there is the MD4 hash which can only be computed if the file is complete. Is this correct? Or is there another way to detect corruption even if the file is incomplete? How much data has to be transferred to be able to validate?
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Fri Jan 20, 2012 8:34 pm    Post subject: Reply with quote

http://en.wikipedia.org/wiki/Ed2k_URI_scheme#eD2k_hash_algorithm
http://wiki.amule.org/index.php/FAQ_eD2k-Kademlia#What_is_a_hash.3F
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
oooOOOooo
neophyte


Joined: 20 Jan 2012
Posts: 3

PostPosted: Sat Jan 21, 2012 1:37 pm    Post subject: Chunks Reply with quote

How are the MD4 hashes of the chunks trasmitted?
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Sat Jan 21, 2012 2:29 pm    Post subject: Reply with quote

http://hydranode.com/docs/ed2k/ed2kproto.php#reqfile
Quote:
If the downloading client needs a hashset of the file, it may ask the uploader for it using OP_REQHASHSET. The expected response is OP_HASHSET.
Code:
        OP_REQHASHSET      = 0x51, //!< <hash>hash
        OP_HASHSET         = 0x52, //!< <hash>hash<u16>cnt[cnt*<hash>parthash]

_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
oooOOOooo
neophyte


Joined: 20 Jan 2012
Posts: 3

PostPosted: Sat Jan 21, 2012 2:32 pm    Post subject: Reply with quote

OK, thank you!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo