|
From: Jim V. <jim...@us...> - 2002-06-11 17:33:15
|
Update of /cvsroot/swapdv/swapdv/JtellaServer
In directory usw-pr-cvs1:/tmp/cvs-serv17606/JtellaServer
Modified Files:
JtellaDetails.java JtellaServer.java
Log Message:
Removed jtella-07.jar and dependancies on it.
Index: JtellaDetails.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/JtellaServer/JtellaDetails.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- JtellaDetails.java 5 Jun 2002 00:01:55 -0000 1.7
+++ JtellaDetails.java 11 Jun 2002 17:33:08 -0000 1.8
@@ -40,7 +40,9 @@
public String IP= "";
public boolean setIP = false;
public int Port = 6346;
+/**
public int speed = com.kenmccrary.jtella.DownloadConstants.DOWNLOADSPEED_DSL;
+**/
public int in = 3;
public int out = 3;
public Vector hosts = new Vector();
@@ -53,6 +55,8 @@
}
public void setProperties(pStoreNodeI options) {
+ enabled = false;
+/**
enabled = options.getBoolAttribute("enabled", true);
speed = options.getIntAttribute("downloadSpeed");
in = options.getIntAttribute("ConnectionsIn");
@@ -70,10 +74,12 @@
else
break;
}
+**/
}
public void getProperties(pStoreNodeI options) {
options.setAttribute("enabled", enabled);
+/**
options.setAttribute("downloadSpeed", speed);
options.setAttribute("ConnectionsIn", in);
options.setAttribute("ConnectionsOut", out);
@@ -86,5 +92,6 @@
for (i=0; i<hosts.size(); i++)
options.setAttribute("host" + i, (String) hosts.get(i));
options.setAttribute("host" + i, "");
+**/
}
}
Index: JtellaServer.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/JtellaServer/JtellaServer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JtellaServer.java 7 Jun 2002 01:48:37 -0000 1.5
+++ JtellaServer.java 11 Jun 2002 17:33:08 -0000 1.6
@@ -31,6 +31,7 @@
* $Id$
*/
+/**
import com.kenmccrary.jtella.GNUTellaConnection;
import com.kenmccrary.jtella.SearchMessage;
import com.kenmccrary.jtella.SearchReplyMessage;
@@ -41,6 +42,7 @@
import com.kenmccrary.jtella.DownloadConstants;
import com.kenmccrary.jtella.ConnectionData;
import com.kenmccrary.jtella.SearchSession;
+ **/
import swapdv.ReplayGuide.*;
import swapdv.ReplayServer.ReplayDetails;
import java.net.UnknownHostException;
@@ -48,6 +50,7 @@
import java.util.*;
public class JtellaServer {
+/**
PublicPrivateGuide guide = null;
ReplayDetails details = null;
JtellaDetails config = null;
@@ -57,8 +60,10 @@
public final static int maxhits = 100;
public final static int minspeed = 0;
public final static String VENDOR = "SWDV";
+**/
public JtellaServer(PublicPrivateGuide guide, ReplayDetails details, JtellaDetails config) {
+/**
this.details = details;
this.guide = guide;
this.config = config;
@@ -105,8 +110,9 @@
}
});
thread.start();
+**/
}
-
+/**
public void reConfig() {
setConfig(con.getConnectionData());
}
@@ -148,7 +154,7 @@
public void stopRunning() {
con.stop();
}
-
+**/
public static String encode (String string) {
StringBuffer in = new StringBuffer(string);
StringBuffer out = new StringBuffer();
@@ -181,6 +187,7 @@
}
return out.toString();
}
+/**
}
class QueryReceiver implements MessageReceiver {
@@ -340,4 +347,5 @@
public void receivePush(com.kenmccrary.jtella.PushMessage pushMessage) {
System.out.println("Received push request from" + pushMessage.getIPAddress()+" for file "+pushMessage.getFileIndex());
}
+**/
}
|