From fdb4cc200dca5db5b374fc40ab3723eb8bf96886 Mon Sep 17 00:00:00 2001 From: jestin Date: Tue, 1 Aug 2006 21:42:25 +0000 Subject: small steps towards the Ivy tunnel . This is work in progress... --- src/Puppet.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/Puppet.java (limited to 'src/Puppet.java') 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 + +} + -- cgit v1.1