Mercurial > hg > Applications > TreeVNC
view src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 27:85958cba5d15
Create new constructor in TreeTask
author | one |
---|---|
date | Fri, 31 Aug 2012 18:21:20 +0900 |
parents | 73b13bc335c2 |
children | 18fad65bc447 |
line wrap: on
line source
package com.glavsoft.rfb.protocol; import jp.ac.u_ryukyu.treevnc.server.*; import com.glavsoft.rfb.ClipboardController; import com.glavsoft.rfb.IRepaintController; import com.glavsoft.rfb.encoding.EncodingType; import com.glavsoft.rfb.encoding.decoder.Decoder; import com.glavsoft.rfb.encoding.decoder.DecodersContainer; import com.glavsoft.transport.Reader; import com.glavsoft.rfb.encoding.decoder.ZRLEESender; public class TreeTask extends ReceiverTask { final static String versionMsg_3_855 = "RFB 003.855\n"; public TreeTask(Reader reader, IRepaintController repaintController, ClipboardController clipboardController, DecodersContainer decoders, ProtocolContext context, MyRfbProtoProxy rfb) { super(reader, repaintController, clipboardController, decoders,context, true); //super(reader, new NullRepaintController(), clipboardController, decoders,context, true); Decoder decoder = new ZRLEESender(rfb); decoders.setDecoderByType(EncodingType.ZLIB, decoder); decoders.setDecoderByType(EncodingType.ZRLE, decoder); } /* public void framebufferUpdateMessage() throws CommonException { * * (non-Javadoc) * proxy * no Repaint * decoder!=0 ZRLE -> ZRLEE * readSendData(); * client * Repaint * no context.send(); * if necessary ZRLEE -> ZRLE * readSendData(); * */ }