# HG changeset patch # User e085711 # Date 1303384109 -32400 # Node ID dc7e0c6fd208379985a43f5282e193d649ffc1b4 # Parent 3610164767834aaf515cfe62b4963e02f0520186 VncProxyService diff -r 361016476783 -r dc7e0c6fd208 src/ProxyVncCanvas.java --- a/src/ProxyVncCanvas.java Thu Apr 21 19:17:31 2011 +0900 +++ b/src/ProxyVncCanvas.java Thu Apr 21 20:08:29 2011 +0900 @@ -359,14 +359,18 @@ } */ + + 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); @@ -523,7 +527,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 361016476783 -r dc7e0c6fd208 src/VncProxyService.java --- a/src/VncProxyService.java Thu Apr 21 19:17:31 2011 +0900 +++ b/src/VncProxyService.java Thu Apr 21 20:08:29 2011 +0900 @@ -71,8 +71,7 @@ rfbThread = new Thread(this); rfbThread.start(); - Thread accept = new Thread(new acceptThread(rfb)); - accept.start(); + }