Author: bback
Date: 2006-02-12 17:41:47 +0000 (Sun, 12 Feb 2006)
New Revision: 8028

Modified:
   trunk/apps/frost-0.7/source/frost/fcp/FcpConnection.java
Log:
TODOs for next steps

Modified: trunk/apps/frost-0.7/source/frost/fcp/FcpConnection.java
===================================================================
--- trunk/apps/frost-0.7/source/frost/fcp/FcpConnection.java    2006-02-12 
17:28:54 UTC (rev 8027)
+++ trunk/apps/frost-0.7/source/frost/fcp/FcpConnection.java    2006-02-12 
17:41:47 UTC (rev 8028)
@@ -150,6 +150,10 @@
     public FcpResults getKeyToFile(String keyString, String filename) 
     throws IOException, FcpToolsException, InterruptedIOException {

+        // TODO: exploit MaxRetries
+        // TODO: exploit MaxSize
+        // TODO: exploit ReturnType=disk
+        
         keyString = StripSlashes(keyString);
         FcpResults result = new FcpResults();
         FreenetKey key = new FreenetKey(keyString);
@@ -182,10 +186,16 @@
         System.out.println("Identifier=get");
         fcpOut.println("ReturnType=direct");
         System.out.println("ReturnType=direct");
+
+        //fcpOut.println("ReturnType=disk");
+        //System.out.println("Filename=<filename_on_disk>");
+        
         //fcpOut.println("MaxSize=256");
         //System.out.println("MaxSize=256");
         //fcpOut.println("MaxTempSize=1024");
         //System.out.println("MaxTempSize=1024");
+        
+        
         fcpOut.println("MaxRetries=1");
         System.out.println("MaxRetries=1");        
         fcpOut.println("EndMessage");
@@ -367,6 +377,9 @@
        public String putKeyFromFile(String key, File sourceFile, boolean 
getchkonly)
                throws IOException, FcpToolsException {

+        // TODO: exploit MaxRetries
+        // TODO: exploit UploadFrom
+        
         long dataLength = sourceFile.length();
         BufferedInputStream fileInput = new BufferedInputStream(new 
FileInputStream(sourceFile));

@@ -389,6 +402,9 @@

                fcpOut.println("DataLength=" + Long.toString(dataLength));
                System.out.println("DataLength="+ Long.toString(dataLength));
+        
+//        fcpOut.println("UploadFrom=disk");
+//        fcpOut.println("Filename=<filename_on_disk>");

                fcpOut.println("Identifier=put-" + fcpConnectionId );
                System.out.println("Identifier=put-" + fcpConnectionId );


Reply via email to