Mercurial > hg > Applications > TreeVNC
view src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 35:1b81deb0abb3
write a little part reconnection.
author | one |
---|---|
date | Wed, 12 Sep 2012 13:16:47 +0900 |
parents | f70008073a03 |
children | 0ae87c7e767c |
line wrap: on
line source
package com.glavsoft.rfb.protocol; import jp.ac.u_ryukyu.treevnc.MyRfbProto; 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, MyRfbProto rfb) { super(reader, repaintController, clipboardController, decoders, context, rfb); //super(reader, new NullRepaintController(), clipboardController, decoders,context, true); Decoder decoder = new ZRLEESender(rfb); decoders.setDecoderByType(EncodingType.ZLIB, decoder); decoders.setDecoderByType(EncodingType.ZRLE, decoder); decoders.setDecoderByType(EncodingType.ZRLEE, 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(); * */ }