Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java @ 243:0ed7719c1800
fix serial number option.
author | oc |
---|---|
date | Mon, 13 Oct 2014 17:39:36 +0900 |
parents | a640cd7001e1 |
children | 8cc07511b1d5 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Mon Oct 13 17:23:57 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Mon Oct 13 17:39:36 2014 +0900 @@ -442,7 +442,11 @@ public void addSerialNumber(LinkedList<ByteBuffer> bufs) { ByteBuffer serialNum = multicastqueue.allocate(4+8); // addSerialNum flag + SerialNum - serialNum.putInt(1); + if (this.addSerialNum) { + serialNum.putInt(1); + } else { + serialNum.putInt(0); + } serialNum.putLong(counter++); serialNum.flip(); bufs.addFirst(serialNum);