Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 20:361016476783
not print out message version. ProxyVncCanvas
author | e085711 |
---|---|
date | Thu, 21 Apr 2011 19:17:31 +0900 |
parents | 3a8e75cb0743 |
children | dc7e0c6fd208 |
files | src/MyRfbProto.java src/ProxyVncCanvas.java src/VncProxyService.java |
diffstat | 3 files changed, 9 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/MyRfbProto.java Tue Apr 19 17:21:30 2011 +0900 +++ b/src/MyRfbProto.java Thu Apr 21 19:17:31 2011 +0900 @@ -117,9 +117,9 @@ cliList.remove(cli); } } - System.out.println("cliSize="+cliSize()); +// System.out.println("cliSize="+cliSize()); }catch(Exception e){ - System.out.println("cliSize 0"); +// System.out.println("cliSize 0"); } } boolean ready() throws IOException {
--- a/src/ProxyVncCanvas.java Tue Apr 19 17:21:30 2011 +0900 +++ b/src/ProxyVncCanvas.java Thu Apr 21 19:17:31 2011 +0900 @@ -359,18 +359,14 @@ } */ - // multi thread - Thread accept = new Thread(new acceptThread(rfb)); - accept.start(); - while (true) { - System.out.println("\ncount=" + count); +// System.out.println("\ncount=" + count); count++; rfb.regiFramebufferUpdate(); - rfb.printFramebufferUpdate(); +// rfb.printFramebufferUpdate(); rfb.mark(10000000); @@ -527,7 +523,7 @@ throw new Exception("Unknown RFB message type " + msgType); } bufSize = (int)rfb.getNumBytesRead() - bufSize; - System.out.println("bufSize="+bufSize); +// System.out.println("bufSize="+bufSize); rfb.bufResetSend(bufSize); } }
--- a/src/VncProxyService.java Tue Apr 19 17:21:30 2011 +0900 +++ b/src/VncProxyService.java Thu Apr 21 19:17:31 2011 +0900 @@ -70,6 +70,10 @@ rfbThread = new Thread(this); rfbThread.start(); + + Thread accept = new Thread(new acceptThread(rfb)); + accept.start(); + } // @@ -83,7 +87,6 @@ doProtocolInitialisation(); vc = new ProxyVncCanvas(this, 0, 0); - processNormalProtocol();// main loop @@ -237,14 +240,6 @@ rfb.writeClientInit(); rfb.readServerInit(); - /* - * if (rfb.MYVNC) { rfb.initServSock(5550); - * - * try { Socket newCli = rfb.accept(); rfb.sendInitData(newCli); - * rfb.addSock(newCli); } catch (IOException e) { } - * - * } - */ System.out.println("Desktop name is " + rfb.desktopName); System.out.println("Desktop size is " + rfb.framebufferWidth + " x "