Changed the names of the upstream messages to requests rather than
notifications. The client always requests, the server replies or notifies. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@25 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ForwardEventRequest.java,v 1.4 2001/06/02 01:31:43 mdb Exp $
|
// $Id: ForwardEventRequest.java,v 1.5 2001/06/05 21:29:51 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.net;
|
package com.threerings.cocktail.cher.net;
|
||||||
|
|
||||||
@@ -9,23 +9,23 @@ import java.io.DataOutputStream;
|
|||||||
|
|
||||||
import com.threerings.cocktail.cher.dobj.DEvent;
|
import com.threerings.cocktail.cher.dobj.DEvent;
|
||||||
|
|
||||||
public class ForwardEventNotification extends UpstreamMessage
|
public class ForwardEventRequest extends UpstreamMessage
|
||||||
{
|
{
|
||||||
/** The code for a forward event notification. */
|
/** The code for a forward event request. */
|
||||||
public static final short TYPE = TYPE_BASE + 4;
|
public static final short TYPE = TYPE_BASE + 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zero argument constructor used when unserializing an instance.
|
* Zero argument constructor used when unserializing an instance.
|
||||||
*/
|
*/
|
||||||
public ForwardEventNotification ()
|
public ForwardEventRequest ()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a forward event notification for the supplied event.
|
* Constructs a forward event request for the supplied event.
|
||||||
*/
|
*/
|
||||||
public ForwardEventNotification (DEvent event)
|
public ForwardEventRequest (DEvent event)
|
||||||
{
|
{
|
||||||
_event = event;
|
_event = event;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
//
|
//
|
||||||
// $Id: LogoffRequest.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
|
// $Id: LogoffRequest.java,v 1.3 2001/06/05 21:29:51 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.net;
|
package com.threerings.cocktail.cher.net;
|
||||||
|
|
||||||
public class LogoffNotification extends UpstreamMessage
|
public class LogoffRequest extends UpstreamMessage
|
||||||
{
|
{
|
||||||
/** The code for a logoff notification. */
|
/** The code for a logoff request. */
|
||||||
public static final short TYPE = TYPE_BASE + 6;
|
public static final short TYPE = TYPE_BASE + 6;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zero argument constructor used when unserializing an instance.
|
* Zero argument constructor used when unserializing an instance.
|
||||||
*/
|
*/
|
||||||
public LogoffNotification ()
|
public LogoffRequest ()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
//
|
//
|
||||||
// $Id: PingRequest.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
|
// $Id: PingRequest.java,v 1.3 2001/06/05 21:29:51 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.net;
|
package com.threerings.cocktail.cher.net;
|
||||||
|
|
||||||
public class PingNotification extends UpstreamMessage
|
public class PingRequest extends UpstreamMessage
|
||||||
{
|
{
|
||||||
/** The code for a ping notification. */
|
/** The code for a ping request. */
|
||||||
public static final short TYPE = TYPE_BASE + 5;
|
public static final short TYPE = TYPE_BASE + 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zero argument constructor used when unserializing an instance.
|
* Zero argument constructor used when unserializing an instance.
|
||||||
*/
|
*/
|
||||||
public PingNotification ()
|
public PingRequest ()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Registry.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
|
// $Id: Registry.java,v 1.3 2001/06/05 21:29:51 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.net;
|
package com.threerings.cocktail.cher.net;
|
||||||
|
|
||||||
@@ -27,14 +27,14 @@ public class Registry
|
|||||||
SubscribeRequest.class);
|
SubscribeRequest.class);
|
||||||
TypedObjectFactory.registerClass(FetchRequest.TYPE,
|
TypedObjectFactory.registerClass(FetchRequest.TYPE,
|
||||||
FetchRequest.class);
|
FetchRequest.class);
|
||||||
TypedObjectFactory.registerClass(UnsubscribeNotification.TYPE,
|
TypedObjectFactory.registerClass(UnsubscribeRequest.TYPE,
|
||||||
UnsubscribeNotification.class);
|
UnsubscribeRequest.class);
|
||||||
TypedObjectFactory.registerClass(ForwardEventNotification.TYPE,
|
TypedObjectFactory.registerClass(ForwardEventRequest.TYPE,
|
||||||
ForwardEventNotification.class);
|
ForwardEventRequest.class);
|
||||||
TypedObjectFactory.registerClass(PingNotification.TYPE,
|
TypedObjectFactory.registerClass(PingRequest.TYPE,
|
||||||
PingNotification.class);
|
PingRequest.class);
|
||||||
TypedObjectFactory.registerClass(LogoffNotification.TYPE,
|
TypedObjectFactory.registerClass(LogoffRequest.TYPE,
|
||||||
LogoffNotification.class);
|
LogoffRequest.class);
|
||||||
|
|
||||||
// register our downstream message classes
|
// register our downstream message classes
|
||||||
TypedObjectFactory.registerClass(AuthResponse.TYPE,
|
TypedObjectFactory.registerClass(AuthResponse.TYPE,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: UnsubscribeRequest.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
|
// $Id: UnsubscribeRequest.java,v 1.3 2001/06/05 21:29:51 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.net;
|
package com.threerings.cocktail.cher.net;
|
||||||
|
|
||||||
@@ -7,24 +7,24 @@ import java.io.IOException;
|
|||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
|
|
||||||
public class UnsubscribeNotification extends UpstreamMessage
|
public class UnsubscribeRequest extends UpstreamMessage
|
||||||
{
|
{
|
||||||
/** The code for an unsubscribe notification. */
|
/** The code for an unsubscribe request. */
|
||||||
public static final short TYPE = TYPE_BASE + 3;
|
public static final short TYPE = TYPE_BASE + 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zero argument constructor used when unserializing an instance.
|
* Zero argument constructor used when unserializing an instance.
|
||||||
*/
|
*/
|
||||||
public UnsubscribeNotification ()
|
public UnsubscribeRequest ()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a unsubscribe notification for the distributed object
|
* Constructs a unsubscribe request for the distributed object
|
||||||
* with the specified object id.
|
* with the specified object id.
|
||||||
*/
|
*/
|
||||||
public UnsubscribeNotification (int oid)
|
public UnsubscribeRequest (int oid)
|
||||||
{
|
{
|
||||||
_oid = oid;
|
_oid = oid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user