Well, it compiles.
It's not functional, there are still large holes in the implementation. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3868 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -24,8 +24,8 @@ public class AuthRequest extends UpstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_creds = ins.readObject();
|
||||
_version = ins.readField(String);
|
||||
_creds = (ins.readObject() as Credentials);
|
||||
_version = (ins.readField(String) as String);
|
||||
}
|
||||
|
||||
protected var _creds :Credentials;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class AuthResponse extends DownstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_data = ins.readObject();
|
||||
_data = (ins.readObject() as AuthResponseData);
|
||||
}
|
||||
|
||||
protected var _data :AuthResponseData;
|
||||
|
||||
@@ -25,7 +25,7 @@ public class AuthResponseData extends DObject
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
code = ins.readField(String);
|
||||
code = (ins.readField(String) as String);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class BootstrapData
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
clientOid = ins.readInt();
|
||||
services = ins.readObject();
|
||||
services = (ins.readObject() as StreamableArrayList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class BootstrapNotification extends DownstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_data = ins.readObject();
|
||||
_data = (ins.readObject() as BootstrapData);
|
||||
}
|
||||
|
||||
/** The data associated with this notification. */
|
||||
|
||||
@@ -22,7 +22,7 @@ public class Credentials
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
_username = ins.readObject();
|
||||
_username = (ins.readObject() as Name);
|
||||
}
|
||||
|
||||
/** The username. */
|
||||
|
||||
@@ -40,7 +40,7 @@ public class EventNotification extends DownstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_event = ins.readObject();
|
||||
_event = (ins.readObject() as DEvent);
|
||||
}
|
||||
|
||||
/** The event which we are forwarding. */
|
||||
|
||||
@@ -53,7 +53,7 @@ public class ForwardEventRequest extends UpstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_event = ins.readObject();
|
||||
_event = (ins.readObject() as DEvent);
|
||||
}
|
||||
|
||||
public function toString () :String
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ObjectResponse extends DownstreamMessage
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_dobj = ins.readObject();
|
||||
_dobj = (ins.readObject() as DObject);
|
||||
}
|
||||
|
||||
/** The object which is associated with this response. */
|
||||
|
||||
@@ -20,7 +20,7 @@ public class PingRequest extends UpstreamMessage
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public override function writeObject (out :ObjectOutputStream)
|
||||
public override function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
_packStamp = new Date().getTime();
|
||||
super.writeObject(out);
|
||||
|
||||
@@ -28,13 +28,13 @@ public class PongResponse extends DownstreamMessage
|
||||
return _unpackStamp;
|
||||
}
|
||||
|
||||
public override function readObject (ins :ObjectInputStream)
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
_unpackStamp = new Date().getTime();
|
||||
super.readObject(ins);
|
||||
|
||||
// TODO: Figure out how we're really going to cope with longs
|
||||
_packStamp = new long();
|
||||
_packStamp = new long(0);
|
||||
_packStamp.readObject(ins);
|
||||
|
||||
_processDelay = ins.readInt();
|
||||
|
||||
@@ -42,7 +42,7 @@ public class SubscribeRequest extends UpstreamMessage
|
||||
return _oid;
|
||||
}
|
||||
|
||||
public override function toString () :String
|
||||
public function toString () :String
|
||||
{
|
||||
return "[type=SUB, msgid=" + messageId + ", oid=" + _oid + "]";
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class UnsubscribeRequest extends UpstreamMessage
|
||||
return "[type=UNSUB, msgid=" + messageId + ", oid=" + _oid + "]";
|
||||
}
|
||||
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
public override function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
out.writeInt(_oid);
|
||||
|
||||
@@ -6,6 +6,8 @@ import com.threerings.io.Streamable;
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
import com.threerings.util.JavaConstants;
|
||||
|
||||
public class UpstreamMessage
|
||||
implements Streamable
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user