diff options
author | jestin | 2006-08-01 21:42:25 +0000 |
---|---|---|
committer | jestin | 2006-08-01 21:42:25 +0000 |
commit | fdb4cc200dca5db5b374fc40ab3723eb8bf96886 (patch) | |
tree | 0398ad466257c6cacb5c1b28fa6597474025ec3b /src/Puppet.java | |
parent | 21cec28549587db7e34d0ac455244fe4d73a0ed4 (diff) | |
download | ivy-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/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 + +} + |