recently I want to study the Kad's file publishing process in the emule source code,but I don't know the entrance of the publishing,could anybody tell me that in the emule source code where does the publishing start.
Page 1 of 1
Questions About Kad's File Publishing
#2
Posted 23 June 2007 - 06:39 PM
Take a look at CSharedFileList::Publish() in SharedFileList.cpp.
For New Users:
1. Read the eMule manual and the Forum Rules.
2. Then Read This Before Starting A New Thread!
3. Then check the Quick help & guides forum.
4. Search the forum for your problem.
before opening your own posts.
1. Read the eMule manual and the Forum Rules.
2. Then Read This Before Starting A New Thread!
3. Then check the Quick help & guides forum.
4. Search the forum for your problem.
before opening your own posts.
#3
Posted 17 May 2011 - 04:43 PM
(note: ah! One of the (few) cases that "search first ask later" worked! note: search by google not internal forum search)
in CSharedFileList::Publish()
there is a block about STOREFILE kad action.
The file hash that will be published is based on:
CKnownFile* pCurKnownFile = GetFileByIndex(m_currFileSrc);
and this operation is not related to STOREKEYWORD or others kad action in the same function. (In other words: the keyword that is used by STOREKEYWORD action is not computed on the pCurKnowFile name)
Am i right?
Thanks for the replies.
in CSharedFileList::Publish()
there is a block about STOREFILE kad action.
The file hash that will be published is based on:
CKnownFile* pCurKnownFile = GetFileByIndex(m_currFileSrc);
and this operation is not related to STOREKEYWORD or others kad action in the same function. (In other words: the keyword that is used by STOREKEYWORD action is not computed on the pCurKnowFile name)
Am i right?
Thanks for the replies.
>>>Feature Request (ICS) or SOTN, EmuleCollectionV2 >>> Emule on old hardware (intel pentium 2 or 3 - via c3 - and so on) with good OS settings and enough ram (256+ mb): great >>>user of: eMule - Xtreme - ZZUL bastard - SharX - SharkX 1.8b5 pierQR - ZZUL-Tra - ZZUL-Tra-TL - kMule - Beba
Extended signature: click.
Extended signature: click.
#4
Posted 21 May 2011 - 08:58 AM
pier4r, on 17 May 2011 - 06:43 PM, said:
(note: ah! One of the (few) cases that "search first ask later" worked! note: search by google not internal forum search)
in CSharedFileList::Publish()
there is a block about STOREFILE kad action.
The file hash that will be published is based on:
CKnownFile* pCurKnownFile = GetFileByIndex(m_currFileSrc);
and this operation is not related to STOREKEYWORD or others kad action in the same function. (In other words: the keyword that is used by STOREKEYWORD action is not computed on the pCurKnowFile name)
Am i right?
Thanks for the replies.
in CSharedFileList::Publish()
there is a block about STOREFILE kad action.
The file hash that will be published is based on:
CKnownFile* pCurKnownFile = GetFileByIndex(m_currFileSrc);
and this operation is not related to STOREKEYWORD or others kad action in the same function. (In other words: the keyword that is used by STOREKEYWORD action is not computed on the pCurKnowFile name)
Am i right?
Thanks for the replies.
I needs only a "Yes"|"No" reply!
I know that i should know all the emule code by myself to find answers but, can i beg for a little reply?
Thanks!
>>>Feature Request (ICS) or SOTN, EmuleCollectionV2 >>> Emule on old hardware (intel pentium 2 or 3 - via c3 - and so on) with good OS settings and enough ram (256+ mb): great >>>user of: eMule - Xtreme - ZZUL bastard - SharX - SharkX 1.8b5 pierQR - ZZUL-Tra - ZZUL-Tra-TL - kMule - Beba
Extended signature: click.
Extended signature: click.
#5
Posted 28 May 2011 - 07:48 AM
On a longer view, CSharedFileList::Publish() manage to publish on Kad our keywords, our file hash and other. (I'm interested in file hash)
(did i explained myself better now?)
edit: Yes, i'm quite sure, i must play with this.
thanks also to "CSharedFilesCtrl::IsSharedInKad"
(did i explained myself better now?)
edit: Yes, i'm quite sure, i must play with this.
thanks also to "CSharedFilesCtrl::IsSharedInKad"
This post has been edited by pier4r: 28 May 2011 - 07:51 AM
>>>Feature Request (ICS) or SOTN, EmuleCollectionV2 >>> Emule on old hardware (intel pentium 2 or 3 - via c3 - and so on) with good OS settings and enough ram (256+ mb): great >>>user of: eMule - Xtreme - ZZUL bastard - SharX - SharkX 1.8b5 pierQR - ZZUL-Tra - ZZUL-Tra-TL - kMule - Beba
Extended signature: click.
Extended signature: click.
Page 1 of 1