JMule project forum

JMule - Java file sharing client
 

It is currently Tue Nov 21, 2017 4:11 am

Your Ad Here


Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2, 3  Next
Author Message
Offline
 Post subject: Search by HASH
PostPosted: Mon Feb 08, 2010 3:25 pm 
 Profile

Joined: Mon Feb 08, 2010 3:14 pm
Posts: 5
Hi everyone, this is my first post in this forum.

I'm an italian student, and for my final work i should develop a module for emule that implement search by hash.

i'm studying Jmule 0.5.8 code and i found how the search by name works.


anyone has some tip or suggestion?

thanks


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Tue Feb 09, 2010 10:40 am 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
What do you mean on "search by hash" ?


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Tue Feb 09, 2010 10:48 am 
 Profile

Joined: Mon Feb 08, 2010 3:14 pm
Posts: 5
i mean insert a hash code and search all the occurrence for that file.

i don't care about file name, i care about that specific hash code.


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Tue Feb 09, 2010 11:00 am 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
You may search for hash only on server (related::<file hash>), Kad allow to search only sources for hash.

Analyze package org.jmule.core.searchmanager (SearchManagerImpl, SearchQuery, SearchQueryType) and UI packages - for SWT : org.jmule.ui.swt.maintabs.search, for SWING : org.jmule.ui.swing.maintabs.search


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Tue Feb 09, 2010 11:03 am 
 Profile

Joined: Mon Feb 08, 2010 3:14 pm
Posts: 5
thank you, i will try !


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Mon Feb 15, 2010 6:14 pm 
 Profile

Joined: Mon Feb 08, 2010 3:14 pm
Posts: 5
for what i understand is impossible implement a search by hash on the client side.

client can just search by file name, file type, max and min size.


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Wed Feb 17, 2010 8:03 am 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
Packet OP_FILEREQANSWER contains file name, check : http://jmule.org/?page=protocol&protolid=38


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Wed Feb 17, 2010 11:03 am 
 Profile

Joined: Mon Feb 08, 2010 3:14 pm
Posts: 5
thanx!

i made this choise :

- get the SearchResultItemList and wiht a loop get all the hash code of the file.

is not exactly what i need but is quiete good!


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Wed Feb 17, 2010 11:21 am 
JMule staff member
JMule staff member
User avatar
 Profile

Joined: Fri Jul 11, 2008 4:10 pm
Posts: 33
If you want file names for hash - query server for sources, query each source with OP_FILEREQUEST (http://jmule.org/?page=protocol&protolid=37) and receive response with file name.


Top
 

Offline
 Post subject: Re: Search by HASH
PostPosted: Sun Jun 27, 2010 4:11 pm 
 Profile

Joined: Sun Jun 27, 2010 4:09 pm
Posts: 8
Hi all

is possible to do a search by hash using OP_GETSOURCES?


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Contact : jmule [at] jmule.org
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group