comparison src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 380:aef5cbdd84ab

Fix compare SerialNumber flag
author innparusu
date Wed, 02 Sep 2015 17:33:06 +0900
parents 60abae693629
children 6a8b661367c6
comparison
equal deleted inserted replaced
379:ea324e42bc78 380:aef5cbdd84ab
229 if(numberOfRectangles != 1) 229 if(numberOfRectangles != 1)
230 System.out.println("numberofrectangle : " + numberOfRectangles); 230 System.out.println("numberofrectangle : " + numberOfRectangles);
231 while (numberOfRectangles-- > 0) { 231 while (numberOfRectangles-- > 0) {
232 FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); 232 FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle();
233 rect.fill(reader); 233 rect.fill(reader);
234 long time = System.currentTimeMillis(); 234 if(rfb.isTreeManager() && rfb.checkDelay) {
235 if(rfb.isTreeManager() && rfb.checkDelay) 235 long time = System.currentTimeMillis();
236 System.out.println(time + " : size : " + rect.width * rect.height); 236 System.out.println(time + " : size : " + rect.width * rect.height);
237 }
237 Decoder decoder = decoders.getDecoderByType(rect.getEncodingType()); 238 Decoder decoder = decoders.getDecoderByType(rect.getEncodingType());
238 logger.finest(rect.toString() + (0 == numberOfRectangles ? "\n---" : "")); 239 logger.finest(rect.toString() + (0 == numberOfRectangles ? "\n---" : ""));
239 if (decoder != null) { 240 if (decoder != null) {
240 try { 241 try {
241 decoder.decode(reader, renderer, rect); // TreeVNC processing here 242 decoder.decode(reader, renderer, rect); // TreeVNC processing here
363 364
364 private void getLost(Reader reader) throws Exception { 365 private void getLost(Reader reader) throws Exception {
365 int addSerialNumFlag = reader.readInt32(); 366 int addSerialNumFlag = reader.readInt32();
366 long num = reader.readInt64(); 367 long num = reader.readInt64();
367 if (addSerialNumFlag == 1) { 368 if (addSerialNumFlag == 1) {
368 rfb.setAddSerialNum(true);
369 if(num != ++checkCounter) { 369 if(num != ++checkCounter) {
370 System.out.println("LostData" + (num - checkCounter)); 370 System.out.println("LostData" + (num - checkCounter));
371 checkCounter = num; 371 checkCounter = num;
372 } 372 }
373 } 373 }