diff src/goodjava/rpc/RpcCall.java @ 1402:27efb1fcbcb5

move luan.lib to goodjava
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 17 Sep 2019 01:35:01 -0400
parents src/luan/lib/rpc/RpcCall.java@e4710ddfd287
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/goodjava/rpc/RpcCall.java	Tue Sep 17 01:35:01 2019 -0400
@@ -0,0 +1,22 @@
+package goodjava.rpc;
+
+import java.io.InputStream;
+
+
+public final class RpcCall {
+	public final InputStream in;
+	public final long lenIn;
+	public final String cmd;
+	public final Object[] args;
+
+	public RpcCall(String cmd,Object... args) {
+		this(null,-1L,cmd,args);
+	}
+
+	public RpcCall(InputStream in,long lenIn,String cmd,Object... args) {
+		this.in = in;
+		this.lenIn = lenIn;
+		this.cmd = cmd;
+		this.args = args;
+	}
+}