This needs to be a TypedArray and then written out with writeObject() not

writeField(). Fiddly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4561 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-02-12 03:10:34 +00:00
parent 4bc3e1e48d
commit 40538c81ad
@@ -2,6 +2,7 @@ package com.threerings.presents.net {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.TypedArray;
import com.threerings.util.StringUtil;
@@ -11,7 +12,8 @@ public class AuthRequest extends UpstreamMessage
{
_creds = creds;
_version = version;
_bootGroups = bootGroups;
_bootGroups = new TypedArray("[Ljava.lang.String;");
_bootGroups.concat(bootGroups);
// magic up a timezone in the format "GMT+XX:XX"
// Of course, the sign returned from getTimezoneOffset() is wrong
@@ -31,12 +33,12 @@ public class AuthRequest extends UpstreamMessage
out.writeObject(_creds);
out.writeField(_version);
out.writeField(_zone);
out.writeField(_bootGroups);
out.writeObject(_bootGroups);
}
protected var _creds :Credentials;
protected var _version :String;
protected var _zone :String;
protected var _bootGroups :Array;
protected var _bootGroups :TypedArray;
}
}