diff options
Diffstat (limited to 'src/Puppet.java')
-rw-r--r-- | src/Puppet.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Puppet.java b/src/Puppet.java new file mode 100644 index 0000000..d122d52 --- /dev/null +++ b/src/Puppet.java @@ -0,0 +1,39 @@ +package fr.dgac.ivy ; +import java.lang.Thread; +import java.net.*; +import java.io.*; +import java.util.*; +import org.apache.regexp.*; + +class Puppet extends Ivy { + + Hashtable bound = new Hashtable(); // clef: l'ID de la regexp choisi par le ghost, valeur: l'Int de l'abonnement local + String myDomain; + ProxyClient pc; + + Puppet(ProxyClient pc,String domain) { + super("noname","noname not ready",null); + myDomain=domain; + this.pc=pc; + } + + void parse(String s){ + System.out.println("the puppet must parse "+s); + } + + protected IvyClient createIvyClient(Socket s,int port, boolean domachin) throws IOException { + return new PuppetClient(); + } + + class PuppetClient extends IvyClient { + protected synchronized void sendBuffer( String buffer ) throws IvyException { + super.sendBuffer(buffer); // and to all the agents on the Ghost bus ? I'm not sure + } + + protected boolean newParseMsg(String s) throws IvyException { + return super.newParseMsg(s); + } + } // class PuppetClient + +} + |