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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user