I can see something's happening with this already :)
> @@ -115,9 +116,8 @@ public abstract class Frame<V extends Visitor> extends
> TPObject<V> implements Vi
> try
> {
> in.readCharacter(buf, 0, template.length);
> - for (int i=0; i < template.length; i++)
> - if (buf[i] != template[i])
> - throw new IOException("Not a
> start of a frame");
> + if (!Arrays.equals(buf, template))
> + throw new IOException("Not a start of a
> frame");
> return true;
> }
> catch (EOFException ex)
> @@ -157,7 +157,7 @@ public abstract class Frame<V extends Visitor> extends
> TPObject<V> implements Vi
> if (!checkMagic(in, buf, MAGIC_TP04))
> return null;
> //frameversion (not in this compat)
> - framever=in.readInteger8();
> + framever=in.readInteger32();
> //sequence
> seq=in.readInteger32();
> //typeWas this branched off of some older version? These changes look familiar, and are not what will work... -- KS "To an engineer, everyone looks like a chimp" - Dilbert
signature.asc
Description: OpenPGP digital signature
_______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
