view src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 28:18fad65bc447

Create MyRfbProto.java MyRfbProto.java is a summary of the intersection of MyRfbClient and MyRfbProxy.
author one
date Sat, 01 Sep 2012 19:24:07 +0900
parents 85958cba5d15
children 57eb5575e6c4
line wrap: on
line source

package com.glavsoft.rfb.protocol;

import jp.ac.u_ryukyu.treevnc.client.MyRfbProtoClient;
import jp.ac.u_ryukyu.treevnc.server.MyRfbProtoProxy;

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);
		//super(reader, new NullRepaintController(), clipboardController, decoders,context, true);
		Decoder decoder = new ZRLEESender(rfb);
		decoders.setDecoderByType(EncodingType.ZLIB, decoder);
		decoders.setDecoderByType(EncodingType.ZRLE, decoder);
	}
	
	public TreeTask(Reader reader, IRepaintController repaintController,
			ClipboardController clipboardController,
			DecodersContainer decoders, ProtocolContext context, MyRfbProtoClient rfb) {
		super(reader, repaintController, clipboardController, decoders, context);
		Decoder decoder = new ZRLEESender(rfb);
	}
	/*  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();    
	 *  	
	 */
}