A new type of general communication between peers - the NodeRequest - it's a lot like a NodeAction but produces a result which is sent back via the ResultListener.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6070 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mike Thomas
2010-06-01 23:48:50 +00:00
parent 3c2c86da60
commit 7101012413
5 changed files with 98 additions and 1 deletions
@@ -70,6 +70,12 @@ public class PeerDispatcher extends InvocationDispatcher<PeerMarshaller>
);
return;
case PeerMarshaller.INVOKE_REQUEST:
((PeerProvider)provider).invokeRequest(
source, (byte[])args[0], (InvocationService.ResultListener)args[1]
);
return;
case PeerMarshaller.RATIFY_LOCK_ACTION:
((PeerProvider)provider).ratifyLockAction(
source, (NodeObject.Lock)args[0], ((Boolean)args[1]).booleanValue()