Checkpoint.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3864 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-19 23:35:22 +00:00
parent bb379347f0
commit 7a353e6722
8 changed files with 25 additions and 8 deletions
@@ -72,7 +72,7 @@ public class ObjectInputStream
readBareObjectImpl(target, cmap.streamer);
return target;
} catch (MemoryError me) {
} catch (me :MemoryError) {
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));
}
public function postEvent (DEvent event) :void
public function postEvent (event :DEvent) :void
{
// TODO: transactons?
if (_omgr != null) {
@@ -15,14 +15,14 @@ public class AuthResponseData extends DObject
public var code :String;
// documentation inherited
public function writeObject (out :ObjectOutputStream) :void
public override function writeObject (out :ObjectOutputStream) :void
{
super.writeObject(out);
out.writeField(code);
}
// documentation inherited
public function readObject (ins :ObjectInputStream) :void
public override function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
code = ins.readField(String);
@@ -15,12 +15,14 @@ public class Credentials
public function writeObject (out :ObjectOutputStream) :void
//throws IOError
{
out.writeObject(_username);
}
// documentation inherited from interface Streamable
public function readObject (in :ObjectInputStream) :void
public function readObject (ins :ObjectInputStream) :void
//throws IOError
{
_username = ins.readObject();
}
/** The username. */
@@ -20,7 +20,7 @@ public class PingRequest extends UpstreamMessage
}
// documentation inherited
public function writeObject (out :ObjectOutputStream)
public override function writeObject (out :ObjectOutputStream)
{
_packStamp = new Date().getTime();
super.writeObject(out);
@@ -28,7 +28,7 @@ public class PongResponse extends DownstreamMessage
return _unpackStamp;
}
public function readObject (ins :ObjectInputStream)
public override function readObject (ins :ObjectInputStream)
{
_unpackStamp = new Date().getTime();
super.readObject(ins);
+1 -1
View File
@@ -30,7 +30,7 @@ public class Name extends Object
return Name.isBlank(this);
}
public override function toString () :String
public function toString () :String
{
return _name;
}