Thread
:
How to produce an unique File index ?
View Single Post
#
5
(
permalink
)
May 7th, 2003
tshdos
Gnutella Veteran
Join Date: March 24th, 2002
Location: Virginia
Posts: 101
If you just need the index for queryhits, use a simple 32 bit hash.
In C# just use the GetHashCode function of the string containing the full path of the file. Store this value in a lookup table with the hash as the key.
tshdos
View Public Profile
Find all posts by tshdos