Checkpoint. Closing in on getting a chat client up, but slogging through

annoying streaming issues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3984 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-28 01:27:57 +00:00
parent d910fbb6f2
commit 538803e1fb
15 changed files with 97 additions and 23 deletions
@@ -61,6 +61,9 @@ public class Communicator
Translations.addTranslation(
"com.threerings.presents.dobj.DSetEntry",
"com.threerings.presents.dobj.DSet$Entry");
Translations.addTranslation(
"com.threerings.crowd.data.MoveMarshaller",
"com.threerings.crowd.data.LocationMarshaller$MoveMarshaller");
}
public function logoff () :void
@@ -109,7 +109,7 @@ public class InvocationRequestEvent extends DEvent
super.writeObject(out);
out.writeInt(_invCode);
out.writeByte(_methodId);
out.writeObject(_args);
out.writeField(_args);
}
// documentation inherited from interface Streamable
@@ -118,7 +118,7 @@ public class InvocationRequestEvent extends DEvent
super.readObject(ins);
_invCode = ins.readInt();
_methodId = ins.readByte();
_args = (ins.readObject() as Array);
_args = (ins.readField(Array) as Array);
}
/** The code identifying which invocation provider to which this
@@ -45,7 +45,8 @@ public class InvocationResponseEvent extends DEvent
* only values of valid distributed object types.
*/
public function InvocationResponseEvent (
targetOid :int, requestId :int, methodId :int, args :Array)
targetOid :int = 0, requestId :int = 0, methodId :int = 0,
args :Array = null)
{
super(targetOid);
_requestId = requestId;
@@ -109,7 +110,7 @@ public class InvocationResponseEvent extends DEvent
super.writeObject(out);
out.writeShort(_requestId);
out.writeByte(_methodId);
out.writeObject(_args);
out.writeField(_args);
}
// documentation inherited
@@ -118,7 +119,7 @@ public class InvocationResponseEvent extends DEvent
super.readObject(ins);
_requestId = ins.readShort();
_methodId = ins.readByte();
_args = (ins.readObject() as Array);
_args = (ins.readField(Array) as Array);
}
/** The id of the request with which this response is associated. */