On Thursday 23 March 2006 15:28, Matthew Toseland wrote:

> Try LineInputStream, in freenet/support/io.

I already rewrote my already existing LineReader into a LineInputStream, 
thanks. ;)

> > 1) On Get requests there are the parameters MaxSize and
> > MaxTempSize. What are they for? At least MaxSize does not limit the
> > size of the data found and/or returned. So what it is for?
> Well it should! If it doesn't there is a bug.

At least I was able to insert 15 bytes, set maxSize to 10, request the 
data and read 15 bytes from the network.

Though now that I think of it I might have the line that writes the 
maxsize parameter to the network disabled... :)

> There are no maximum sizes. CHKs are 32kB, SSKs are 1kB. But the node
> splits everything automatically.

Fine.

> USKs will use internally SSK at foo,bar,bat/test-1/ - I suggest you be
> compatible with this (or tell me why it's bad).

"-" is fine, I already took that after seeing some of the links in the 
wiki which contain dashes to split off something like an edition 
number.

But that still leaves me with the problem of how to insert a file to a 
URI like SSK at foo,bar/test/images/old/stuff.png. ClientPutDiskDir does 
it correctly somehow but I can't figure out what exactly it does, nor 
can I simulate the behaviour with ClientPutComplexDir.

> > 5) The docs should mention that a ClientGet with ReturnType=none
> > does _not_ return the correct length of the data.
> It does? I'll have a look at that...

Nope. It returns 0.


        David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/tech/attachments/20060324/a6041f42/attachment.pgp>

Reply via email to