Checkpoint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3864 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -72,7 +72,7 @@ public class ObjectInputStream
|
|||||||
readBareObjectImpl(target, cmap.streamer);
|
readBareObjectImpl(target, cmap.streamer);
|
||||||
return target;
|
return target;
|
||||||
|
|
||||||
} catch (MemoryError me) {
|
} catch (me :MemoryError) {
|
||||||
throw new IOError("out of memory" + me.message);
|
throw new IOError("out of memory" + me.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.threerings.presents.client {
|
||||||
|
|
||||||
|
import com.threerings.util.Name;
|
||||||
|
import com.threerings.presents.net.Credentials;
|
||||||
|
|
||||||
|
public class TestClient extends Client
|
||||||
|
{
|
||||||
|
public function TestClient ()
|
||||||
|
{
|
||||||
|
super(new Credentials(new Name("Ray")));
|
||||||
|
setServer("tasman.sea.earth.threerings.net", DEFAULT_SERVER_PORT);
|
||||||
|
logon();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -69,7 +69,7 @@ public class DObject // extends EventDispatcher
|
|||||||
postEvent(new MessageEvent(_oid, name, args));
|
postEvent(new MessageEvent(_oid, name, args));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function postEvent (DEvent event) :void
|
public function postEvent (event :DEvent) :void
|
||||||
{
|
{
|
||||||
// TODO: transactons?
|
// TODO: transactons?
|
||||||
if (_omgr != null) {
|
if (_omgr != null) {
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ public class AuthResponseData extends DObject
|
|||||||
public var code :String;
|
public var code :String;
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public function writeObject (out :ObjectOutputStream) :void
|
public override function writeObject (out :ObjectOutputStream) :void
|
||||||
{
|
{
|
||||||
super.writeObject(out);
|
super.writeObject(out);
|
||||||
out.writeField(code);
|
out.writeField(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public function readObject (ins :ObjectInputStream) :void
|
public override function readObject (ins :ObjectInputStream) :void
|
||||||
{
|
{
|
||||||
super.readObject(ins);
|
super.readObject(ins);
|
||||||
code = ins.readField(String);
|
code = ins.readField(String);
|
||||||
|
|||||||
@@ -15,12 +15,14 @@ public class Credentials
|
|||||||
public function writeObject (out :ObjectOutputStream) :void
|
public function writeObject (out :ObjectOutputStream) :void
|
||||||
//throws IOError
|
//throws IOError
|
||||||
{
|
{
|
||||||
|
out.writeObject(_username);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface Streamable
|
// documentation inherited from interface Streamable
|
||||||
public function readObject (in :ObjectInputStream) :void
|
public function readObject (ins :ObjectInputStream) :void
|
||||||
//throws IOError
|
//throws IOError
|
||||||
{
|
{
|
||||||
|
_username = ins.readObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The username. */
|
/** The username. */
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class PingRequest extends UpstreamMessage
|
|||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public function writeObject (out :ObjectOutputStream)
|
public override function writeObject (out :ObjectOutputStream)
|
||||||
{
|
{
|
||||||
_packStamp = new Date().getTime();
|
_packStamp = new Date().getTime();
|
||||||
super.writeObject(out);
|
super.writeObject(out);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class PongResponse extends DownstreamMessage
|
|||||||
return _unpackStamp;
|
return _unpackStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function readObject (ins :ObjectInputStream)
|
public override function readObject (ins :ObjectInputStream)
|
||||||
{
|
{
|
||||||
_unpackStamp = new Date().getTime();
|
_unpackStamp = new Date().getTime();
|
||||||
super.readObject(ins);
|
super.readObject(ins);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class Name extends Object
|
|||||||
return Name.isBlank(this);
|
return Name.isBlank(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function toString () :String
|
public function toString () :String
|
||||||
{
|
{
|
||||||
return _name;
|
return _name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user