Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Search Today's Posts Mark Forums Read

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 31st, 2002
m_m m_m is offline
Novicius
 
Join Date: July 31st, 2002
Posts: 3
m_m is flying high
Default client file catalog

I was wondering, when a Gnutella query is sent out to all the clients, how does the client software find the file? i know you select the directory of shared files, but does the software catalog the files each time it's loaded, or does it just scan the folder(s) each time?

I would think that creating a database of files would take up more space, but make searching much faster.
Reply With Quote
  #2 (permalink)  
Old July 31st, 2002
Disciple
 
Join Date: July 18th, 2002
Posts: 19
prh99 is flying high
Default Re: client file catalog

Quote:
Originally posted by m_m
I was wondering, when a Gnutella query is sent out to all the clients, how does the client software find the file? i know you select the directory of shared files, but does the software catalog the files each time it's loaded, or does it just scan the folder(s) each time?

I would think that creating a database of files would take up more space, but make searching much faster.
There are functions to let you see the contents of directory. I'd imagin that client would get this information when it's load and store it in memory or a file and refreshes it from time to time. Then when it get's query for something like Modanna (Spelling?) it returns a query hit that contains all the matching files names (Any file containing the word Modanna) in the result list.
Reply With Quote
  #3 (permalink)  
Old July 31st, 2002
m_m m_m is offline
Novicius
 
Join Date: July 31st, 2002
Posts: 3
m_m is flying high
Default

OK, so the client creates a list in memory or in a file and refreshes it manually.

i didnt think it actually scanned the folder each time.

for the exception of limeware (due to its non-native coding) most of the clients (morpheus, bearshare, etc..) load fairly quickly. I'm assuming each load of the program must create a new list, or atleast refresh the list. how do they get all the file attributes (name, size, etc..) so quickly?
Reply With Quote
  #4 (permalink)  
Old August 1st, 2002
Smarter than you
 
Join Date: July 25th, 2002
Location: currently relocating...
Posts: 12
ToyG is flying high
Default

Quote:
Originally posted by m_m
how do they get all the file attributes (name, size, etc..) so quickly?
They're not using VB!
Reply With Quote
  #5 (permalink)  
Old August 1st, 2002
m_m m_m is offline
Novicius
 
Join Date: July 31st, 2002
Posts: 3
m_m is flying high
Default

Hah, i didnt think they were
Reply With Quote
  #6 (permalink)  
Old August 11th, 2002
Disciple
 
Join Date: July 18th, 2002
Posts: 19
prh99 is flying high
Default

They get the names with a routine that returns all files in a folder (involves and API call or two) or by having the user pick out the individual files to share. The sizes are easy, C\C++ and VB all have functions that can be used to get the file size. I am not sure what you mean by attribute, but if its the extension it's just a simple matter parsing the file name.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client to Client Encryption lyonadmiral New Feature Requests 1 February 1st, 2006 04:55 AM
Server-based multi-user file-sharing client fry76 General Gnutella / Gnutella Network Discussion 3 November 18th, 2004 12:20 PM
Gnougat, a jxta based file sharing client RusselHarvey General Gnutella Development Discussion 0 August 22nd, 2002 05:08 PM
CD Catalog software Funnyboy Mactella (Macintosh) 0 May 17th, 2002 02:47 PM
What is the best Client? swordfish General Gnutella / Gnutella Network Discussion 1 March 18th, 2001 10:38 PM


All times are GMT -7. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.