diff src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplayWidth.java @ 301:ae7deb002b5f

send and receive single display size
author oc
date Sun, 18 Jan 2015 08:36:06 +0900
parents 9c5874d0f37e
children
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplayWidth.java	Sat Jan 17 04:58:03 2015 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/RequestSingleDisplayWidth.java	Sun Jan 18 08:36:06 2015 +0900
@@ -2,12 +2,10 @@
 
 import com.glavsoft.exceptions.TransportException;
 import com.glavsoft.rfb.client.ClientToServerMessage;
-import com.glavsoft.rfb.encoding.EncodingType;
 import com.glavsoft.transport.Writer;
 
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
-import java.util.LinkedList;
 
 /**
  * Created by OcBookPro on 15/01/10.
@@ -23,7 +21,7 @@
     public void send(Writer writer) throws TransportException {
         ByteBuffer out = ByteBuffer.allocate(2);
         out.order(ByteOrder.BIG_ENDIAN);
-        out.put(REQUEST_SINGLE_DISPLAY_WIDTH);
+        out.put(REQUEST_SINGLE_DISPLAY_SIZE);
         out.put((byte)0); // padding
         writer.write(out.array(), 0, out.position());
         writer.flush();