Mercurial > hg > trac > TreeVNC > TreeVNC
view src/main/java/jp/ac/u_ryukyu/treevnc/UpdateRectangleMessage.java @ 97:44f5cdc63a76
don't create Rfb and VNC proxy on change server on root.
author | oc |
---|---|
date | Thu, 22 May 2014 19:45:59 +0900 |
parents | 76e49dd9c9c5 |
children | 8f4c45c1b396 |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc; import java.nio.ByteBuffer; import java.nio.ByteOrder; import com.glavsoft.rfb.encoding.EncodingType; public class UpdateRectangleMessage { private ByteBuffer msg = ByteBuffer.allocate(16).order(ByteOrder.LITTLE_ENDIAN); public UpdateRectangleMessage(int i, int j, int width, int height, EncodingType desktopSize) { 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(desktopSize.getId()); msg.flip(); } public ByteBuffer getMessage(){ return msg; } }