Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 16:549229fd7288
proxy only
author | e085711 |
---|---|
date | Sun, 17 Apr 2011 21:25:57 +0900 |
parents | 89e1c5f84407 |
children | 4eda2dbb7fef |
files | src/VncCanvas.java |
diffstat | 1 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/VncCanvas.java Sun Apr 17 19:33:01 2011 +0900 +++ b/src/VncCanvas.java Sun Apr 17 21:25:57 2011 +0900 @@ -395,15 +395,25 @@ while (true) { + + if(!rfb.ready())continue; System.out.println("\ncount=" + count); count++; + System.out.println("ready rfb.available()="+rfb.available()); - rfb.mark(16); - int mesageType = rfb.readU8(); - System.out.println("mesageType=" + mesageType); - rfb.skipBytes(11); + rfb.mark(20); + int messageType = rfb.readU8(); + System.out.println("messageType=" + messageType); + rfb.skipBytes(1); + int rect = rfb.readU16(); + System.out.println("rectangles="+rect); + rfb.skipBytes(8); int encoding = rfb.readU32(); System.out.println("encoding=" + encoding); + if(encoding == 16){ + int zlen = rfb.readU32(); + System.out.println("zlen=" + zlen); + } rfb.reset(); // rfb.mark(rfb.available());