Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 42:03d2e5db2135
stop send png data
author | e085711 |
---|---|
date | Thu, 23 Jun 2011 04:47:53 +0900 |
parents | 37e287cfe7e0 |
children | 08317224ce21 |
files | src/myVncProxy/ProxyVncCanvas.java src/myVncProxy/acceptThread.java |
diffstat | 2 files changed, 5 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/ProxyVncCanvas.java Mon Jun 06 16:53:31 2011 +0900 +++ b/src/myVncProxy/ProxyVncCanvas.java Thu Jun 23 04:47:53 2011 +0900 @@ -361,17 +361,6 @@ // - // single thread -/* - try { - // rfb.setSoTimeout(1000); - Socket newCli = rfb.accept(); - rfb.sendInitData(newCli); - rfb.addSock(newCli); - } catch (IOException e) { - } -*/ - long count = 0; @@ -544,8 +533,8 @@ // System.out.println("bufSize="+bufSize); // rfb.bufResetSend(bufSize); - - + + if(rfb.createBimgFlag){ // bimg = createBufferedImage(rawPixelsImage); bimg = createBufferedImage(memImage); @@ -554,6 +543,7 @@ rfb.sendPngImage(); rfb.createBimgFlag = false; } + /* boolean result = false;
--- a/src/myVncProxy/acceptThread.java Mon Jun 06 16:53:31 2011 +0900 +++ b/src/myVncProxy/acceptThread.java Thu Jun 23 04:47:53 2011 +0900 @@ -16,7 +16,8 @@ Socket newCli = rfb.accept(); rfb.sendInitData(newCli); rfb.createBimgFlag = true; - rfb.addSockTmp(newCli); +// rfb.addSockTmp(newCli); + rfb.addSock(newCli); } catch (IOException e) { e.printStackTrace(); System.out.println(e);