Progress on the presents client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3848 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.threerings.presents.net {
|
||||
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
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 function PingRequest ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getPackStamp () :Number
|
||||
{
|
||||
return _packStamp;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public function writeObject (out :ObjectOutputStream)
|
||||
{
|
||||
_packStamp = new Date().getTime();
|
||||
super.writeObject(out);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public function readObject (ins :ObjectInputStream)
|
||||
{
|
||||
trace("read PingRequest on the client?");
|
||||
}
|
||||
|
||||
/** A time stamp obtained when we serialize this object. */
|
||||
protected var _packStamp :Number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user