Yup ... very simple problem.
For a request and insert, you *must* include a filename to
get the data from on insert or put the data in on request.
It does not default to stdout.

According to Oskar, this is done since the encryption
algorithms need to pass over the data several times and it makes
it more straight-forward if the file is sitting on the disk.

In both of your inserts, you properly include a filename but
none of your requests include one to put the requested data
into.

Mike


> From: "mh mirror" <mh_mirror at hotmail.com>
> Date: Sun, 20 Aug 2000 18:54:29 GMT
>
> Hi,
> I downloaded today the snapshot and ran the 5 nodes on my machine.
> It seems inserting is okay, but requesting fails. Here is what I did
> and got back:
>
> $ java Freenet.client.BInsert -serverAddress tcp/localhost:50001
> freenet:SVK@ README
> 9444879698993340 - HandshakeRequest -> tcp/127.0.0.1:50001
> 9444879698993340 - HandshakeReply <- tcp/127.0.0.1:50001
> Handled: Src:tcp/127.0.0.1:50001 htl:1 depth:1 id:9444879698993340
> type:Freenet.message.HandshakeReply
> State "PREPARED" reached.
> abd51acb25b9444a - InsertRequest -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> State "REQUESTING" reached.
> abd51acb25b9444a - InsertReply <- tcp/127.0.0.1:50001
> Handled: Src:tcp/127.0.0.1:50001 htl:37 depth:5 id:abd51acb25b9444a
> type:Freenet.message.InsertReply
> A  message was received from tcp/127.0.0.1:50001.
> State "TRANSFERING" reached.
> abd51acb25b9444a - DataInsert -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> 3819 bytes read.
> Transfer ended with 3820 bytes read.
> abd51acb25b9444a - StoreData -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> State "DONE" reached.
> Inserted Key   :
> freenet:SVK at nM3UQZYNseNr7J3D379ZSgxsrEICAQ,09ItNQsoD30OwNQ6GY0hsA
> SVK private key: AJosICy0pQaKiaYYwwo2UsufrNvlR7dc
> Hang on to this key if you wish to update it in the future, or if you wish
> to
> insert subspace keys (SSKs) under this SVK root.
>
> $ java Freenet.client.BRequest -serverAddress tcp/localhost:50001
> freenet:SVK at nM3UQZYNseNr7J3D379ZSgxsrEICAQ,09ItNQsoD30OwNQ6GY0hsA
> Usage: freenet_request URL output-file
>
>   -length bytes              Bytes to insert (if reading stdin)
>   -metadata file             Attach private metadata to the document
>   -cipher cipher-name        Use 'cipher-name' as the cipher
>                              Choices are 'Twofish' (default) or 'Rijndael'
>                              See file `mime.types' for a list of common
> types
>   -listenPort port           Local port to listen for replies on
>   -serverAddress address     Server node to connect to
>   -htl hops-to-live          Hops-to-live for request
>   -logging error|normal      Logging level
>            |minor|debugging
>   -verbosity 0-5             Verbosity of log messages
> Examples:
>   freenet_request test-key test.txt
>   freenet_request freenet:KSK at test-key test.txt
>   freenet_request freenet:CHK at yoZOL0nrUhqIdGPjCYjgwhTJQAEDAQ,cH4oZkbe
>                   HS5wJijKBtKuPA test.txt
>
> Fix yar own damn bugs!
>
> $ java Freenet.client.BInsert -serverAddress tcp/localhost:50001
> freenet:SSK at test/mime,AJosICy0pQaKiaYYwwo2UsufrNvlR7dc mime.types
> 287d4a89e3f8f736 - HandshakeRequest -> tcp/127.0.0.1:50001
> 287d4a89e3f8f736 - HandshakeReply <- tcp/127.0.0.1:50001
> Handled: Src:tcp/127.0.0.1:50001 htl:1 depth:1 id:287d4a89e3f8f736
> type:Freenet.message.HandshakeReply
> State "PREPARED" reached.
> 343c2977e79eec51 - InsertRequest -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> State "REQUESTING" reached.
> 343c2977e79eec51 - InsertReply <- tcp/127.0.0.1:50001
> Handled: Src:tcp/127.0.0.1:50001 htl:1 depth:5 id:343c2977e79eec51
> type:Freenet.message.InsertReply
> A  message was received from tcp/127.0.0.1:50001.
> State "TRANSFERING" reached.
> 343c2977e79eec51 - DataInsert -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> 4096 bytes read.
> 7383 bytes read.
> Transfer ended with 7384 bytes read.
> 343c2977e79eec51 - StoreData -> tcp/127.0.0.1:50001
> A  message was sent to tcp/127.0.0.1:50001.
> State "DONE" reached.
> Inserted Key   : freenet:SSK at test/mime,nM3UQZYNseNr7J3D379ZSgxsrEICAQ
>
> $java Freenet.client.BRequest -serverAddress tcp/localhost:50001
> freenet:SSK at test/mime,nM3UQZYNseNr7J3D379ZSgxsrEICAQ
> Usage: freenet_request URL output-file
>
>   -length bytes              Bytes to insert (if reading stdin)
>   -metadata file             Attach private metadata to the document
>   -cipher cipher-name        Use 'cipher-name' as the cipher
>                              Choices are 'Twofish' (default) or 'Rijndael'
>                              See file `mime.types' for a list of common
> types
>   -listenPort port           Local port to listen for replies on
>   -serverAddress address     Server node to connect to
>   -htl hops-to-live          Hops-to-live for request
>   -logging error|normal      Logging level
>            |minor|debugging
>   -verbosity 0-5             Verbosity of log messages
> Examples:
>   freenet_request test-key test.txt
>   freenet_request freenet:KSK at test-key test.txt
>   freenet_request freenet:CHK at yoZOL0nrUhqIdGPjCYjgwhTJQAEDAQ,cH4oZkbe
>                   HS5wJijKBtKuPA test.txt
>
> Fix yar own damn bugs!
>
> It must be something very simple.
> Such test works on earlier snapshot.
> M.H.


_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to