# HG changeset patch # User e085711 # Date 1303381051 -32400 # Node ID 3610164767834aaf515cfe62b4963e02f0520186 # Parent 3a8e75cb0743e3d032d7c87a43736b35f2b903b1 not print out message version. ProxyVncCanvas diff -r 3a8e75cb0743 -r 361016476783 src/MyRfbProto.java --- 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 { diff -r 3a8e75cb0743 -r 361016476783 src/ProxyVncCanvas.java --- 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); } } diff -r 3a8e75cb0743 -r 361016476783 src/VncProxyService.java --- 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 "