Mercurial > hg > Members > nobuyasu > tightVNCProxy
diff src/myVncProxy/ProxyVncCanvas.java @ 151:db5f735fd2b4
add xml-rpc.jar
author | e085711 |
---|---|
date | Sat, 10 Sep 2011 04:13:50 +0900 |
parents | 8bdbed4c4505 |
children | 4fca6f516880 |
line wrap: on
line diff
--- a/src/myVncProxy/ProxyVncCanvas.java Tue Sep 06 16:42:41 2011 +0900 +++ b/src/myVncProxy/ProxyVncCanvas.java Sat Sep 10 04:13:50 2011 +0900 @@ -358,8 +358,9 @@ // long count = 0; + long buf = 0; while (true) { - // System.out.println("\ncount=" + count); + System.out.println("\ncount=" + count); count++; @@ -367,8 +368,15 @@ /** * read Data from parents and send Data to Client. */ - rfb.sendDataToClient(); + + + +// rfb.sendDataToClient(); +// long kbitsPerSecond = rfb.kbitsPerSecond(); +// System.out.println("Throughput " + kbitsPerSecond + " kbit/s"); + +/* if(rfb.returnMsgtype() == RfbProto.FramebufferUpdate ) { boolean fullUpdateNeeded = false; int w = rfb.framebufferWidth; @@ -376,7 +384,9 @@ rfb.writeFramebufferUpdateRequest(0, 0, w, h, !fullUpdateNeeded); continue; } - +*/ + + long numBytesRead = rfb.getNumBytesRead(); // Read message type from the server. @@ -388,11 +398,12 @@ rfb.readSpeedCheck(); break; case RfbProto.FramebufferUpdate: +/* if(msgType == RfbProto.FramebufferUpdate){ rfb.is.reset(); break; } - +*/ if (statNumUpdates == viewer.debugStatsExcludeUpdates && !statsRestarted) { resetStats(); @@ -414,8 +425,8 @@ statNumTotalRects++; int rx = rfb.updateRectX, ry = rfb.updateRectY; int rw = rfb.updateRectW, rh = rfb.updateRectH; -// System.out.println("rx = "+ rx + " ry = "+ry+"\nrw = "+rw+" rh = "+rh); -// System.out.println("encoding = "+ rfb.updateRectEncoding); + System.out.println("rx = "+ rx + " ry = "+ry+"\nrw = "+rw+" rh = "+rh); + System.out.println("encoding = "+ rfb.updateRectEncoding); if (rfb.updateRectEncoding == rfb.EncodingLastRect) break; @@ -480,7 +491,10 @@ } rfb.stopTiming(); +// long kbitsPerSecond = rfb.kbitsPerSecond(); +// System.out.println("Throughput " + kbitsPerSecond + " kbit/s"); + statNumPixelRects++; statNumBytesDecoded += rw * rh * bytesPixel; statNumBytesEncoded += (int) (rfb.getNumBytesRead() - numBytesReadBefore); @@ -543,8 +557,12 @@ - int bufSize = (int)(rfb.getNumBytesRead() - numBytesRead); +// int bufSize = (int)(rfb.getNumBytesRead() - numBytesRead); + long bufSize = rfb.getNumBytesRead() - numBytesRead; System.out.println("bufSize="+bufSize); + + buf += rfb.getNumBytesRead() - numBytesRead; + System.out.println("total buf = " + buf); // rfb.bufResetSend(bufSize);