On Thursday 14 June 2001 06:39 am, you wrote:
> Hi,
>
> I've been inserting keyindex keys, and on trying to list them, all I get
> from KeyIndexClient is 3 '#' characters.
>
> I'm working from the notion that key indexes are based on KSKs, where for
> index 'thisindex', the keys are named: KSK@thisindex-yyyymmdd-1,
> KSK@thisindex-yyyymmdd-2, ...
>
You should just give it the index name and let KeyIndexClient add the
date and figure out the increment at the end. This is what I use to insert
a key in Freegle:
java Freenet.client.KeyIndexClient -insert freegle -key [EMAIL PROTECTED]
The date part is the seconds from epoch till 12 GMT of the current date.
The first entry in Freegle today looks like:
freegle-992476800-0
If you're writing your own client to insert or retrieve them use something
like this to figure out the date in seconds:
now = int(time.time()) # Seconds since Epoch
midnight = now - (now % 86400) # GMT Midnight (86400 seconds in a day)
> On running KeyIndexClient -insert indexname -file somefile, I keep getting
> the usage message.
Yeah, a bug. I always get the usage message error after it is done inserting.
That must confuse the hell out of everyone who has tried it. I suppose
that is why there is only 5 to 10 keys in Freegle and Snarfoo every day.
> This didn't seem to be happening prior to 0.3.9.1
>
> Can someone please clarify
>
> Cheers
> David
>
>
>
> _______________________________________________
> Devl mailing list
> [EMAIL PROTECTED]
> http://lists.freenetproject.org/mailman/listinfo/devl
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl