ClientGet questions

Juergen Urner <[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
Hello,

I am playing a bit around with the client protocol (2.0)
currently and a have few questions.

One is regarding 'ClientGet'. To download a file to disk I have
to pass the filepath and its size in the request. This is leaving me
with one or the other headscratch. How am I supposed to know
in advance what type of file I am requesting and what its size
is?

One of the (bit hackish) solutions I came up with  sending a 'ClientGet'
with a size of -1 or 0, hoping the request fails, to get the missing 
peaces from 
'GetFailed'  (code 21), but have no idea if this is intendet use or how 
reliable it is.

Another headscratch is: how am I supposed to know in advance if a filepath
I pass today can be written tommorow? In the meantime some other file 
with the same
name may find its way into the folder, the folder might disappear... or 
whatever.
So I wonder why the filepath (and TestDDA) is not requested somewhere 
near 'DataFound',
when it is actually needed.

Anyone any hints?



Thanks, Juergen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.