aboutsummaryrefslogtreecommitdiff
path: root/src/ProxyClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProxyClient.java')
-rw-r--r--src/ProxyClient.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ProxyClient.java b/src/ProxyClient.java
index 1fd7b75..92f2c75 100644
--- a/src/ProxyClient.java
+++ b/src/ProxyClient.java
@@ -21,7 +21,9 @@
package fr.dgac.ivy ;
import java.io.*;
import java.net.*;
-import java.util.* ;
+import java.util.HashMap ;
+import java.util.Map ;
+import java.util.Properties ;
import gnu.getopt.Getopt;
import java.util.regex.*;
@@ -32,9 +34,9 @@ class ProxyClient extends Ivy {
private BufferedReader in;
private static boolean debug = (System.getProperty("IVY_DEBUG")!=null) ;
private volatile Thread clientThread; // volatile to ensure the quick communication
- private Hashtable<String,String> id=new Hashtable<String,String>();
- private Hashtable<String,Ghost>ghosts = new Hashtable<String,Ghost>();
- private Hashtable<String,Puppet> puppets =new Hashtable<String,Puppet>(); // key=id value=Puppet
+ private Map<String,String> id=new HashMap<String,String>();
+ private Map<String,Ghost>ghosts = new HashMap<String,Ghost>();
+ private Map<String,Puppet> puppets =new HashMap<String,Puppet>(); // key=id value=Puppet
String domain=null;
public static final int DEFAULT_SERVICE_PORT = 3456 ;
@@ -48,7 +50,7 @@ class ProxyClient extends Ivy {
int c;
int servicePort = DEFAULT_SERVICE_PORT;
boolean quiet = false;
- String domain=Ivy.getDomain(null);
+ String domain=null;
while ((c = opt.getopt()) != -1) switch (c) {
case 'n':
name=opt.getOptarg();