Further wired up the client side of the distributed object system. Removed
the facilities for fetching (without subscribing to) an object. This is done extremely rarely and the user might as well just subscribe and immediately unsubscribe because the dichotomy between fetching and subscribing just served to overly complicate the internals for no good reason. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@30 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectResponse.java,v 1.6 2001/06/02 01:30:37 mdb Exp $
|
||||
// $Id: ObjectResponse.java,v 1.7 2001/06/09 23:39:04 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.net;
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.threerings.cocktail.cher.dobj.net.DObjectFactory;
|
||||
|
||||
public class ObjectResponse extends DownstreamMessage
|
||||
{
|
||||
/** The code for an event notification. */
|
||||
/** The code for an object repsonse. */
|
||||
public static final short TYPE = TYPE_BASE + 2;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ public class ObjectResponse extends DownstreamMessage
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an object response with supplied distributed object.
|
||||
* Constructs an object response with the supplied distributed object.
|
||||
*/
|
||||
public ObjectResponse (DObject dobj)
|
||||
{
|
||||
@@ -36,6 +36,11 @@ public class ObjectResponse extends DownstreamMessage
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public DObject getObject ()
|
||||
{
|
||||
return _dobj;
|
||||
}
|
||||
|
||||
public void writeTo (DataOutputStream out)
|
||||
throws IOException
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user