提交 c9c1d700 编写于 作者: B bessani@gmail.com

Example of custon comparator and response extractor

上级 d0a39685
......@@ -63,7 +63,7 @@ public class RWCounterClient {
new DataOutputStream(out).writeInt(1);//i%2
//System.out.println(((i%2 == 0)?"(read-only)":"")+" requesting operation "+i+" on counter.");
byte[] reply = counterProxy.invoke(out.toByteArray());
byte[] reply = counterProxy.invoke(out.toByteArray(),true);
//(i%2 == 0)
int newValue = new DataInputStream(new ByteArrayInputStream(reply)).readInt();
Logger.println2(l,"Counter value = " + newValue);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册