aboutsummaryrefslogtreecommitdiff
path: root/src/ProxyMaster.java
diff options
context:
space:
mode:
authorjestin2006-08-01 21:42:25 +0000
committerjestin2006-08-01 21:42:25 +0000
commitfdb4cc200dca5db5b374fc40ab3723eb8bf96886 (patch)
tree0398ad466257c6cacb5c1b28fa6597474025ec3b /src/ProxyMaster.java
parent21cec28549587db7e34d0ac455244fe4d73a0ed4 (diff)
downloadivy-java-fdb4cc200dca5db5b374fc40ab3723eb8bf96886.zip
ivy-java-fdb4cc200dca5db5b374fc40ab3723eb8bf96886.tar.gz
ivy-java-fdb4cc200dca5db5b374fc40ab3723eb8bf96886.tar.bz2
ivy-java-fdb4cc200dca5db5b374fc40ab3723eb8bf96886.tar.xz
small steps towards the Ivy tunnel . This is work in progress...
Diffstat (limited to 'src/ProxyMaster.java')
-rw-r--r--src/ProxyMaster.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ProxyMaster.java b/src/ProxyMaster.java
index 7ed9460..09216ed 100644
--- a/src/ProxyMaster.java
+++ b/src/ProxyMaster.java
@@ -9,7 +9,7 @@
* changelog:
* 1.2.12
*/
-package fr.dgac.ivy ;
+package fr.dgac.ivy ; // TODO go into sub tools, and build a shell/.BAT script
import java.io.*;
import java.net.*;
import java.util.* ;
@@ -122,8 +122,10 @@ public class ProxyMaster {
out.println("ID id="+getId.getParen(1)+" value="+newGhostId);
out.flush();
// TODO create Puppets in each other ProxyClient
- for (Enumeration e=proxyClients.elements();e.hasMoreElements();)
- ((SubReader)e.nextElement()).send("CreatePuppet id="+newGhostId);
+ for (Enumeration e=proxyClients.elements();e.hasMoreElements();) {
+ SubReader sr = (SubReader)e.nextElement();
+ if (sr!=SubReader.this) sr.send("CreatePuppet id="+newGhostId);
+ }
} else if (fwd.match(msg)) {
System.out.println("forwarding "+msg);
// TODO forward the message to all relevant puppets