SimpleClient Network Access

From Pfyshnet

Jump to: navigation, search

Follow the Installation instructions to setup your node.


Configure SimpleClient

 java -jar simpleclient.jar GENCONFIG node.conf
 Password: XXXXXXX  
 Node IP (enter to use recommended default! 127.0.0.1):
 Node Port (enter to use recommended default! 41329):


Upload a test file

 echo "my test file" > testfile.txt
 java -jar simpleclient.jar node.conf UPLOAD dd testfile.txt 
 Min depth: 0

Now you will need to wait for a while (maybe 10 minutes).


Query for the returned download spec

 java -jar simpleclient.jar node.conf QUERYRETURNS dd up down search
 Min depth: 0
 cd up
 ls -ltr
 total 0   ## upload failed or not back yet.
 cd ..
 # Nothing is back yet.. wait a little longer, then try again.
 java -jar simpleclient.jar node.conf QUERYRETURNS dd up down search
 Min depth: 0
 cd up
 ls
 testfile.txt.ds   ##  Upload worked
 cd ..

If you don't get anything back after a while, simply try the upload again.


Store to a keyword

 java -jar simpleclient.jar node.conf STORESEARCH up/testfile.txt.ds keyword_store_test
 Min depth: 0

Wait for a while to allow the keyword to store. QUERYRETURNS does not do anything for keyword stores. The only way to see if a keyword store worked is search for it.


Search for a keyword

 java -jar simpleclient.jar node.conf SEARCH dd keyword_store_test
 Min depth: 0

Now you wait for the search to return.


Query for search returns

 java -jar simpleclient.jar node.conf QUERYRETURNS dd up down search
 Min depth: 0
 cd search
 ls
 testfile.txt.ds  ## Search worked!
 cd ..


Download

 java -jar simpleclient.jar node.conf DOWNLOAD dd search/testfile.txt.ds
 Min depth: 0

Now wait.


Query for download returns

 java -jar simpleclient.jar node.conf QUERYRETURNS dd up down search
 Min depth: 0
 cd down
 testfile.txt         ## Download worked!
 cat testfile.txt
 my test file.
Personal tools
SourceForge.net Logo