by jaf656s » April 13, 2005, 5:28 pm
This is also a case of file names existing as unique identifiers. But also, the protocol specifies that the FILE message must include the file size, offset from the beginning, segment length, and the filename.
NOTE: It will be up to the client to maintain some sort of data that indicates the portion of the file that they have cached.
On a related note, answers to search queries should only include complete files. It can then be up to the searching client what segment of the file that they need, and can request accordingly with a GET message.
Jason and Kirk
This is also a case of file names existing as unique identifiers. But also, the protocol specifies that the FILE message must include the file size, offset from the beginning, segment length, and the filename.
NOTE: It will be up to the client to maintain some sort of data that indicates the portion of the file that they have cached.
On a related note, answers to search queries should only include complete files. It can then be up to the searching client what segment of the file that they need, and can request accordingly with a GET message.
Jason and Kirk