From 4ffe8b84071babe544086f94c66431380d301d59 Mon Sep 17 00:00:00 2001 From: jestin Date: Sat, 12 May 2012 14:26:08 +0000 Subject: - minor code cleanup - adds a separate file (Protocol.java) containing the Enum values in a proper pattern - resolved a synchronization bug on Ivy.stop() --- src/Puppet.java | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'src/Puppet.java') diff --git a/src/Puppet.java b/src/Puppet.java index 17844ea..c307e01 100644 --- a/src/Puppet.java +++ b/src/Puppet.java @@ -1,5 +1,5 @@ /** - * Part of a Ivy-level proxy + * Part of a Ivy-level proxy, still in development, DO NOT USE * * @author Yannick Jestin * @author http://www.tls.cena.fr/products/ivy/ @@ -7,6 +7,8 @@ * (c) CENA 1998-2004 * * CHANGELOG: + * 1.2.16 + * uses Protocol enum * 1.2.14 * - switch from gnu regexp (deprecated) to the built in java regexp * - add generic types to declarations @@ -49,13 +51,13 @@ class Puppet { bound.put(ghostId,localId); } public void receive(IvyClient ic,String args[]) { - StringBuffer tosend = new StringBuffer(IvyClient.Msg); + StringBuffer tosend = new StringBuffer(Protocol.MSG.value()); tosend.append(" "); tosend.append(ghostId); - tosend.append(IvyClient.StartArg); + tosend.append(Protocol.STARTARG); for (int i=0;i