Fixed up some things and added streaming translations.

I'm to the point where I need to go back to array streaming and straighten
that out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3905 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-02 03:44:37 +00:00
parent 961f3ffdfe
commit cec3ffe59d
5 changed files with 56 additions and 7 deletions
@@ -50,9 +50,19 @@ public class Communicator
inputFrameReceived);
_inStream = new ObjectInputStream();
addClassTranslations();
_socket.connect(_client.getHostname(), _client.getPort());
}
private function addClassTranslations () :void
{
_inStream.addTranslation("com.threerings.presents.dobj.DSet$Entry",
"com.threerings.presents.dobj.DSetEntry");
_outStream.addTranslation("com.threerings.presents.dobj.DSetEntry",
"com.threerings.presents.dobj.DSet$Entry");
}
public function logoff () :void
{
if (_socket == null) {