Updated some bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4058 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -7,14 +7,14 @@ public class PingRequest extends UpstreamMessage
|
||||
/** The number of milliseconds of idle upstream that are allowed to elapse
|
||||
* before the client sends a ping message to the server to let it
|
||||
* know that we're still alive. */
|
||||
public static const PING_INTERVAL :int = 60 * 1000;
|
||||
public static const PING_INTERVAL :uint = 60 * 1000;
|
||||
|
||||
public function PingRequest ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getPackStamp () :Number
|
||||
public function getPackStamp () :uint
|
||||
{
|
||||
return _packStamp;
|
||||
}
|
||||
@@ -22,11 +22,11 @@ public class PingRequest extends UpstreamMessage
|
||||
// documentation inherited
|
||||
public override function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
_packStamp = new Date().getTime();
|
||||
_packStamp = flash.util.getTimer();
|
||||
super.writeObject(out);
|
||||
}
|
||||
|
||||
/** A time stamp obtained when we serialize this object. */
|
||||
protected var _packStamp :Number;
|
||||
protected var _packStamp :uint;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,14 +23,14 @@ public class PongResponse extends DownstreamMessage
|
||||
return _processDelay;
|
||||
}
|
||||
|
||||
public function getUnpackStamp () :Number
|
||||
public function getUnpackStamp () :uint
|
||||
{
|
||||
return _unpackStamp;
|
||||
}
|
||||
|
||||
public override function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
_unpackStamp = new Date().getTime();
|
||||
_unpackStamp = flash.util.getTimer();
|
||||
super.readObject(ins);
|
||||
|
||||
// TODO: Figure out how we're really going to cope with longs
|
||||
@@ -44,6 +44,6 @@ public class PongResponse extends DownstreamMessage
|
||||
|
||||
protected var _processDelay :int;
|
||||
|
||||
protected var _unpackStamp :Number;
|
||||
protected var _unpackStamp :uint;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user