comparison src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 29:57eb5575e6c4

MyRfbProto for client and proxy.
author one
date Sat, 01 Sep 2012 20:08:03 +0900
parents 18fad65bc447
children 758d025ee24b
comparison
equal deleted inserted replaced
28:18fad65bc447 29:57eb5575e6c4
1 package com.glavsoft.rfb.protocol; 1 package com.glavsoft.rfb.protocol;
2 2
3 import jp.ac.u_ryukyu.treevnc.client.MyRfbProtoClient; 3 import jp.ac.u_ryukyu.treevnc.client.MyRfbProtoClient;
4 import jp.ac.u_ryukyu.treevnc.server.MyRfbProtoProxy; 4 import jp.ac.u_ryukyu.treevnc.server.MyRfbProtoProxy;
5 import jp.ac.u_ryukyu.treevnc.test.MyRfbProto;
5 6
6 import com.glavsoft.rfb.ClipboardController; 7 import com.glavsoft.rfb.ClipboardController;
7 import com.glavsoft.rfb.IRepaintController; 8 import com.glavsoft.rfb.IRepaintController;
8 import com.glavsoft.rfb.encoding.EncodingType; 9 import com.glavsoft.rfb.encoding.EncodingType;
9 import com.glavsoft.rfb.encoding.decoder.Decoder; 10 import com.glavsoft.rfb.encoding.decoder.Decoder;
14 public class TreeTask extends ReceiverTask { 15 public class TreeTask extends ReceiverTask {
15 final static String versionMsg_3_855 = "RFB 003.855\n"; 16 final static String versionMsg_3_855 = "RFB 003.855\n";
16 17
17 public TreeTask(Reader reader, IRepaintController repaintController, 18 public TreeTask(Reader reader, IRepaintController repaintController,
18 ClipboardController clipboardController, 19 ClipboardController clipboardController,
19 DecodersContainer decoders, ProtocolContext context, MyRfbProtoProxy rfb) { 20 DecodersContainer decoders, ProtocolContext context, MyRfbProto rfb) {
20 super(reader, repaintController, clipboardController, decoders, context); 21 super(reader, repaintController, clipboardController, decoders, context);
21 //super(reader, new NullRepaintController(), clipboardController, decoders,context, true); 22 //super(reader, new NullRepaintController(), clipboardController, decoders,context, true);
22 Decoder decoder = new ZRLEESender(rfb); 23 Decoder decoder = new ZRLEESender(rfb);
23 decoders.setDecoderByType(EncodingType.ZLIB, decoder); 24 decoders.setDecoderByType(EncodingType.ZLIB, decoder);
24 decoders.setDecoderByType(EncodingType.ZRLE, decoder); 25 decoders.setDecoderByType(EncodingType.ZRLE, decoder);