Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 55:7e96da3131ca
modify MyRfbProto.java
author | e085711 |
---|---|
date | Fri, 08 Jul 2011 18:03:19 +0900 |
parents | 796f2b3b8665 |
children | b2604c5c6a25 |
files | src/myVncProxy/VncCanvas.java |
diffstat | 1 files changed, 3 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/VncCanvas.java Fri Jul 08 12:38:14 2011 +0900 +++ b/src/myVncProxy/VncCanvas.java Fri Jul 08 18:03:19 2011 +0900 @@ -388,16 +388,6 @@ long count = 0; -/* - rfb.selectPort(); - try { - // rfb.setSoTimeout(1000); - Socket newCli = rfb.accept(); - rfb.sendInitData(newCli); - rfb.addSock(newCli); - } catch (IOException e) { - } -*/ while (true) { @@ -408,7 +398,8 @@ rfb.regiFramebufferUpdate(); // rfb.printFramebufferUpdate(); rfb.checkAndMark(); - + rfb.readSendData(); + // rfb.printNumBytesRead(); long bufSize = rfb.getNumBytesRead(); // Read message type from the server. @@ -562,7 +553,7 @@ } bufSize = rfb.getNumBytesRead() - bufSize; // System.out.println("bufSize="+bufSize); - rfb.bufResetSend((int)bufSize); +// rfb.bufResetSend((int)bufSize); if(rfb.createBimgFlag){ // bimg = createBufferedImage(rawPixelsImage);