Mercurial > hg > Members > nobuyasu > tightVNCClient
diff src/VncCanvas.java @ 2:dc1d008d987b
commit test
author | e085711 |
---|---|
date | Wed, 13 Apr 2011 07:37:04 +0900 |
parents | e04119c40b9b |
children | 60a87e277536 |
line wrap: on
line diff
--- a/src/VncCanvas.java Tue Apr 12 14:51:30 2011 +0900 +++ b/src/VncCanvas.java Wed Apr 13 07:37:04 2011 +0900 @@ -27,7 +27,7 @@ import java.io.*; import java.lang.*; import java.util.zip.*; - +import java.net.*; // // VncCanvas is a subclass of Canvas which draws a VNC desktop on it. @@ -375,18 +375,16 @@ // // main dispatch loop // + + long count = 0; while (true) { - - if(rfb.TEST){ - System.out.println("rfb.available()="+rfb.available()); - byte b[] = new byte[rfb.available()]; - rfb.readFully(b); - rfb.cliSock.getOutputStream().write(b, 0, b.length); - } - - + System.out.println("\ncount="+count); + count++; + System.out.println("rfb.available()="+rfb.available()); + while(rfb.available() == 0)continue; + // Read message type from the server. int msgType = rfb.readServerMessageType();