Mercurial > hg > Applications > TreeVNC
changeset 519:d17c048f356f
blocking worked
author | mir3636 |
---|---|
date | Fri, 22 Feb 2019 15:05:21 +0900 |
parents | c4d1a275b7d5 |
children | 3a9dadc8821f |
files | src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Fri Feb 22 14:19:39 2019 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Fri Feb 22 15:05:21 2019 +0900 @@ -721,6 +721,7 @@ byte[] bytes1 = b.array(); int headerPos = 4; int len2 = b.limit(); System.out.println(" bytes: " + bytes1[headerPos + 20] + ", " + bytes1[headerPos + 21] + ", " + bytes1[headerPos + 22] + ", " + bytes1[headerPos + 23]); + System.out.println(" bytes: " + bytes1[len2 - 8] + ", " + bytes1[len2 - 7] + ", " + bytes1[len2 - 6] + ", " + bytes1[len2 - 5]); System.out.println(" bytes: " + bytes1[len2 - 4] + ", " + bytes1[len2 - 3] + ", " + bytes1[len2 - 2] + ", " + bytes1[len2 - 1]); } multicastqueue.put(bufs); @@ -791,7 +792,7 @@ c1.flip(); System.out.println("multicastPut: " + c1rect + " length: " + (c1.remaining()-c1headerPos-header.limit())); try { - writeUpdateRectangleWithHeader(c1, c1headerPos, c1.remaining()-c1headerPos-header.limit(), c1rect.x, c1rect.y, c1rect.width, c1rect.height); + writeUpdateRectangleWithHeader(c1, c1headerPos, c1.remaining()-c1headerPos-header.limit()-4, c1rect.x, c1rect.y, c1rect.width, c1rect.height); } catch (InterruptedException e) { e.printStackTrace(); }