Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   client file catalog (https://www.gnutellaforums.com/general-gnutella-development-discussion/14076-client-file-catalog.html)

m_m July 31st, 2002 10:22 AM

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.

prh99 July 31st, 2002 01:07 PM

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.

m_m July 31st, 2002 07:08 PM

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?

ToyG August 1st, 2002 02:02 AM

Quote:

Originally posted by m_m
how do they get all the file attributes (name, size, etc..) so quickly?
They're not using VB! ;)

m_m August 1st, 2002 08:54 AM

Hah, i didnt think they were

prh99 August 11th, 2002 07:11 PM

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.


All times are GMT -7. The time now is 07:56 AM.

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.