comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java @ 378:60abae693629

Compare SerialNumber flag
author innparusu
date Tue, 01 Sep 2015 15:04:10 +0900
parents b6665f7f18d1
children aef5cbdd84ab
comparison
equal deleted inserted replaced
377:877008c86e85 378:60abae693629
91 } 91 }
92 } 92 }
93 93
94 public boolean isTreeManager() { 94 public boolean isTreeManager() {
95 return isTreeManager; 95 return isTreeManager;
96 }
97
98 public boolean isAddSerialNum() {
99 return addSerialNum;
96 } 100 }
97 101
98 public ProtocolContext getContext() { 102 public ProtocolContext getContext() {
99 return context; 103 return context;
100 } 104 }
680 public void readSendData(int dataLen, Reader reader, byte[] bytes, FramebufferUpdateRectangle rect) 684 public void readSendData(int dataLen, Reader reader, byte[] bytes, FramebufferUpdateRectangle rect)
681 throws TransportException, UnsupportedEncodingException { 685 throws TransportException, UnsupportedEncodingException {
682 LinkedList<ByteBuffer> bufs = new LinkedList<ByteBuffer>(); 686 LinkedList<ByteBuffer> bufs = new LinkedList<ByteBuffer>();
683 ByteBuffer header = multicastqueue.allocate(16); 687 ByteBuffer header = multicastqueue.allocate(16);
684 ByteBuffer serial = multicastqueue.allocate(4+8); 688 ByteBuffer serial = multicastqueue.allocate(4+8);
685 if (!isTreeManager()) { 689 if (!isTreeManager() && addSerialNum) {
686 reader.readBytes(serial.array(),0,4+8); 690 reader.readBytes(serial.array(),0,4+8);
687 serial.limit(4+8); 691 serial.limit(4+8);
688 } 692 }
689 reader.mark(dataLen); 693 reader.mark(dataLen);
690 reader.readBytes(header.array(), 0, 16); 694 reader.readBytes(header.array(), 0, 16);