Get the transport specification out of the construction path, since it's not a

streamed property of the event. It turns out to be cleaner to just set it in
the places where we know that we want a specific transport anyway.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2011-04-02 00:01:46 +00:00
parent 22330e955b
commit fc7706c79d
29 changed files with 73 additions and 121 deletions
@@ -22,7 +22,6 @@
package com.threerings.presents.dobj;
import com.samskivert.util.StringUtil;
import com.threerings.presents.net.Transport;
/**
@@ -41,17 +40,23 @@ public class InvocationResponseEvent extends DEvent
* @param methodId the method to be invoked.
* @param args the arguments for the method. This array should contain only values of valid
* distributed object types.
* @param transport a hint as to the type of transport desired for the event.
*/
public InvocationResponseEvent (
int targetOid, int requestId, int methodId, Object[] args, Transport transport)
public InvocationResponseEvent (int targetOid, int requestId, int methodId, Object[] args)
{
super(targetOid, transport);
super(targetOid);
_requestId = (short)requestId;
_methodId = (byte)methodId;
_args = args;
}
/** @deprecated Regenerate your services. */
@Deprecated
public InvocationResponseEvent (int targetOid, int requestId, int methodId, Object[] args,
Transport transport)
{
this(targetOid, requestId, methodId, args);
}
/**
* Returns the invocation request id associated with this response.
*/