Mercurial > hg > Applications > TreeVNC
view src/main/java/jp/ac/u_ryukyu/treevnc/CheckDelay.java @ 269:05f59c18cdca
fix --filterSingleDisplay option
author | oc |
---|---|
date | Tue, 09 Dec 2014 11:08:32 +0900 |
parents | 49762c621bd6 |
children | 42fcc9419498 |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import com.glavsoft.rfb.encoding.EncodingType; public class CheckDelay { private ByteBuffer msg; public CheckDelay(int i, int j, int width, int height, long time, EncodingType checkDelay) throws UnsupportedEncodingException { msg = ByteBuffer.allocate(24).order(ByteOrder.BIG_ENDIAN); msg.put((byte) 0); // FrameBufferUpdate msg.put((byte) 0); // padding msg.putShort((short) 1); // number of rectangle msg.putShort((short) i); msg.putShort((short) j); msg.putShort((short) width); msg.putShort((short) height); msg.putInt(checkDelay.getId()); msg.putLong(time); msg.flip(); } public ByteBuffer getMessage(){ return msg; } }